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

build/roachtest: do not exit with code 11 on cluster creation failure #109463

Conversation

renatolabs
Copy link
Contributor

roachtest will exit with code 11 if creating any clusters during a test run failed. However, that is not ideal for a few reasons:

For these reasons, this commit updates the script used by TeamCity to invoke roachtest to also ignore exit code 11 (just like it currently does for exit code 10). This makes roachtest build failures stand out more, as they will mean roachtest was unable to run all tests.

Epic: none

Release note: None

roachtest will exit with code 11 if creating any clusters during a
test run failed. However, that is not ideal for a few reasons:

* Cluster creation often fails, partly because of temporary
unavailability of a resource type in a data center; and partly because
of issues in roachtest itself (see cockroachdb#104029).
* Exiting with code 11 causes the build to be marked and reported as a
failrue on TeamCity/Slack and that's disruptive. We already get
cluster creation failure notifications on GitHub. By reporting them as
build failures on TeamCity, we mask actually serious issues like the
test runner crashing in the middle of the build and not running every
test (for a recent example, see cockroachdb#109279).

For these reasons, this commit updates the script used by TeamCity to
invoke roachtest to also ignore exit code 11 (just like it currently
does for exit code 10). This makes roachtest build failures stand out
more, as they will mean roachtest was unable to run all tests.

Epic: none

Release note: None
@renatolabs renatolabs requested review from a team as code owners August 24, 2023 21:02
@renatolabs renatolabs requested review from herkolategan and srosenberg and removed request for a team August 24, 2023 21:02
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@renatolabs renatolabs added the backport-23.1.x Flags PRs that need to be backported to 23.1 label Aug 24, 2023
@renatolabs
Copy link
Contributor Author

TFTRs!

bors r=srosenberg,herkolategan

@craig
Copy link
Contributor

craig bot commented Aug 25, 2023

Build succeeded:

@craig craig bot merged commit 35397b9 into cockroachdb:master Aug 25, 2023
@renatolabs renatolabs deleted the rc/roachtest-no-exit-11-on-cluster-creation-failure branch August 25, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants