Skip to content

bazel: set GORACE variable appropriately when testing w/ race#87130

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rickystewart:gorace
Aug 31, 2022
Merged

bazel: set GORACE variable appropriately when testing w/ race#87130
craig[bot] merged 1 commit intocockroachdb:masterfrom
rickystewart:gorace

Conversation

@rickystewart
Copy link
Copy Markdown
Collaborator

By default the race data is output to stderr, which means it ends up
in the test.log file but NOT the test.xml file. Changing it to
stdout means that this instead ends up test.xml as well as
test.log and any output JSON files.

Closes #74105.

Release justification: Non-production code changes
Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

By default the `race` data is output to `stderr`, which means it ends up
in the `test.log` file but NOT the `test.xml` file. Changing it to
`stdout` means that this instead ends up `test.xml` as well as
`test.log` and any output JSON files.

Closes cockroachdb#74105.

Release justification: Non-production code changes
Release note: None
Copy link
Copy Markdown
Member

@srosenberg srosenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this also resolve the nightly stressrace job? I believe it gets its parameters from env.EXTRA_BAZEL_FLAGS If both are addressed, then in theory this longstanding issue should be resolved: #69534

@rickystewart
Copy link
Copy Markdown
Collaborator Author

Will this also resolve the nightly stressrace job? I believe it gets its parameters from env.EXTRA_BAZEL_FLAGS If both are addressed, then in theory this longstanding issue should be resolved: #69534

Yes, my understanding is that #69534 should be taken care of by this as well.

@rickystewart
Copy link
Copy Markdown
Collaborator Author

bors r=rail,srosenberg

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 30, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 31, 2022

Build succeeded:

@craig craig bot merged commit d07bea8 into cockroachdb:master Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: for bazel build configs, reported data races don't show up in test.xml file

4 participants