-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39159: testutils/lint: convert some checkers to go/analysis r=mjibson a=mjibson Convert float, unconvert, and timer to go/analysis (https://godoc.org/golang.org/x/tools/go/analysis). This is the new, official static analysis framework for Go. These were previously disabled. Although now they work again, they are not yet hooked up. It appears difficult to run these from inside a test. The Go people apparently are steering us toward using the CLI instead. Hence, roachlint. Add roachlint, a program to run these checkers. Not yet hooked up to TestLint. See #33669. Although that mentions using honnef.co/go/tools, that tool now uses go/analysis: https://staticcheck.io/changes/2019.2#go-analysis. Release note: None 39386: distsqlrun: clean up the materializer r=yuzefovich a=yuzefovich This commit fixes a bug of not using the context that was updated during `Flow.startInternal` to run the last processor in the flow. This removes the necessity of having an additional `ctxCancel` function in the materializer. Additionally, `outputToInputColIdx` has been removed from the materializer since it's always a mapping such that o[i] = i. I believe it is a remnant of early days of the vectorized engine, and since then we've been using projection operators to serve the purpose that was initially envisioned for this mapping. Fixes: #39384. Release note: None Co-authored-by: Matt Jibson <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
51 changed files
with
500 additions
and
411 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2019 The Cockroach Authors. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
package main | ||
|
||
import ( | ||
"github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/hash" | ||
"github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/timer" | ||
"github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/unconvert" | ||
"golang.org/x/tools/go/analysis/multichecker" | ||
) | ||
|
||
func main() { | ||
multichecker.Main( | ||
hash.Analyzer, | ||
timer.Analyzer, | ||
unconvert.Analyzer, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.