Skip to content
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

teamcity-trigger: ensure that race tag is only passed once #110309

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

healthy-pod
Copy link
Contributor

By running under -race, the go command defines the race build tag for us [1].

Previously, we defined it under TAGS to let the issue poster know that this is a failure under race and indicate that in the issue.

At the time, defining the tag twice didn't cause issues but after #109773, it led to build failures [2].

To reproduce locally:

bazel test -s --config=race pkg/util/ctxgroup:all --test_env=GOTRACEBACK=all --define gotags=bazel,gss,race

As a follow-up, we should find another way to let the issue poster know that a failure was running under race.

[1] https://go.dev/doc/articles/race_detector#Excluding_Tests
[2] #109994 (comment)

Epic: none
Release note: None

By running under `-race`, the go command defines the `race`
build tag for us [1].

Previously, we defined it under `TAGS` to let the issue poster
know that this is a failure under `race` and indicate that in
the issue.

At the time, defining the tag twice didn't cause issues
but after cockroachdb#109773, it led to build failures [2].

To reproduce locally:
```
bazel test -s --config=race pkg/util/ctxgroup:all --test_env=GOTRACEBACK=all --define gotags=bazel,gss,race
```

As a follow-up, we should find another way to let the issue
poster know that a failure was running under `race`.

[1] https://go.dev/doc/articles/race_detector#Excluding_Tests
[2] cockroachdb#109994 (comment)

Epic: none
Release note: None
@healthy-pod healthy-pod requested a review from a team as a code owner September 9, 2023 19:32
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@renatolabs renatolabs left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @srosenberg)

@healthy-pod healthy-pod linked an issue Sep 11, 2023 that may be closed by this pull request
@healthy-pod
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 11, 2023

Build succeeded:

@craig craig bot merged commit 5fc80c3 into cockroachdb:master Sep 11, 2023
3 checks passed
@rickystewart rickystewart mentioned this pull request Sep 13, 2023
@jlinder jlinder mentioned this pull request Sep 13, 2023
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.

: failed
4 participants