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

roachtest: fix handling of test panics #78013

Merged
merged 2 commits into from
Mar 17, 2022
Merged

roachtest: fix handling of test panics #78013

merged 2 commits into from
Mar 17, 2022

Conversation

tbg
Copy link
Member

@tbg tbg commented Mar 17, 2022

  • roachtest: fix handling of test panics
  • roachtest: gracefully fail in sst-corruption test

@tbg tbg requested a review from a team as a code owner March 17, 2022 07:53
@tbg tbg requested review from stevendanna, erikgrinaker and a team and removed request for a team March 17, 2022 07:53
@cockroach-teamcity
Copy link
Member

This change is Reviewable

tbg added 2 commits March 17, 2022 13:39
Previously, if a test panicked, the test runner would terminate,
preventing most of the test suite to be run.

Release justification: testing infra fix
Release note: None
Prior to this commit, the test would panic ungracefully (at least some
of the time). Now it will fail via a call to `t.Fatalf`.

This fix isn't strictly necessary since the test harness now handles
tests panicking. However, in times of stability probably better not
to take any chances, especially since this also affects `release-22.1`.

Release note: None
@tbg
Copy link
Member Author

tbg commented Mar 17, 2022

bors r=erikgrinaker

Owner: OwnerUnitTest,
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
sl := []int{0}
// We need to throw the RoachVet linter off our scent since it's pretty
Copy link
Member

Choose a reason for hiding this comment

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

:)

@craig
Copy link
Contributor

craig bot commented Mar 17, 2022

Build succeeded:

@craig craig bot merged commit 1a35e55 into cockroachdb:master Mar 17, 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.

4 participants