-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bazel: TestLint/TestGCAssert
fails when run under Bazel
#65485
Comments
98011: bazel: add `gcassert` job in TC r=healthy-pod a=rickystewart This simple job generates code then runs `gcassert` as a standalone binary. Closes #65485. Epic: none Release note: None Co-authored-by: Ricky Stewart <[email protected]>
Not actually done, this job was flaky in TC and is skipped. |
* redirect 'go build' output to a temp. file * report 'go build' error * fixup unit tests [1] cockroachdb/cockroach#65485
TL;DR The reason it's failing under bazel is due to the missing ReproducingLet's use the PR [1] which captures "go build" output,
Upon closer examination of
Thus, during type-checking a native (transitive) dependency is unresolved, causing FixingGenerate zcgo files,
Run,
AppendixIt would be nice to save the 'go build' output in CI, for ease of debugging future issues. Also, we should run the (gcassert) unit tests and bail out early if they fail. There is some sensitivity to compiler version; e.g., master has two failing unit tests (both fixed in [1]). |
Previously, we only needed to gen cgo files using `dev` so that was were that logic lived. Now, we need to gen cgo files outside dev to fix an issue with gcassert [see cockroachdb#65485]. This code change externalizes the code into a separate binary and let's `dev gen cgo` point to it. Release note: None Epic: None Informs cockroachdb#65485
Release note: None Epic: none Closes cockroachdb#65485
Release note: None Epic: none Closes cockroachdb#65485
Previously, we only needed to gen cgo files using `dev` so that was were that logic lived. Now, we need to gen cgo files outside dev to fix an issue with gcassert [see cockroachdb#65485]. This code change externalizes the code into a separate binary and let's `dev gen cgo` point to it. Release note: None Epic: None Informs cockroachdb#65485
Previously, we only needed to gen cgo files using `dev` so that was were that logic lived. Now, we need to gen cgo files outside dev to fix an issue with gcassert [see cockroachdb#65485]. This code change externalizes the code into a separate binary and let's `dev gen cgo` point to it. Release note: None Epic: None Informs cockroachdb#65485
104554: dev,generate-cgo: externalize cgo files gen into a seperate binary r=healthy-pod a=healthy-pod Previously, we only needed to gen cgo files using `dev` so that was were that logic lived. Now, we need to gen cgo files outside dev to fix an issue with gcassert [see #65485]. This code change externalizes the code into a separate binary and let's `dev gen cgo` point to it. Release note: None Epic: None Informs #65485 Co-authored-by: healthy-pod <[email protected]>
This code change pulls changes from jordanlewis/gcassert#11 and jordanlewis/gcassert#12 to let gcassert use bazel to build if the `--use-bazel` flag is set. It now checks if inline directives passed by inspecting object files because the compiler output is missing some inline statements when invoked through `bazel`. Release note: None Epic: CRDB-8349 Closes cockroachdb#65485
103471: gcassert: fix issues when running under bazel r=rickystewart a=healthy-pod This code change fixes issues when running gcassert under bazel by ensuring that we generate go and cgo files, and pass a path to C and C++ compilers to the lint test process. With these changes, `gcassert` can run as part of the `Lint` build config and doesn't need its own build config so the gcassert build config scripts are deleted. Release note: None Epic: CRDB-8349 Closes #65485 Co-authored-by: healthy-pod <[email protected]>
Previously, we only needed to gen cgo files using `dev` so that was were that logic lived. Now, we need to gen cgo files outside dev to fix an issue with gcassert [see cockroachdb#65485]. This code change externalizes the code into a separate binary and let's `dev gen cgo` point to it. Release note: None Epic: None Informs cockroachdb#65485
ensuring that we generate go and cgo files, and pass a path to C and C++ compilers to the lint test process. With these changes, `gcassert` can run as part of the `Lint` build config and doesn't need its own build config so the gcassert build config scripts are deleted. Release note: None Epic: CRDB-8349 Closes cockroachdb#65485
We see a lot of error output like this:
The same errors don't appear when the lint test is run outside the Bazel context. We're not sure if these errors are spurious or false alarms.
Epic CRDB-8349
Jira issue: CRDB-7629
The text was updated successfully, but these errors were encountered: