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: improve error reporting for tests that time out #114565

Closed
renatolabs opened this issue Nov 16, 2023 · 1 comment · Fixed by #115286
Closed

roachtest: improve error reporting for tests that time out #114565

renatolabs opened this issue Nov 16, 2023 · 1 comment · Fixed by #115286
Labels
A-testing Testing tools and infrastructure C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) E-quick-win Likely to be a quick win for someone experienced. T-testeng TestEng Team

Comments

@renatolabs
Copy link
Contributor

renatolabs commented Nov 16, 2023

When a test times out, it's often that case that something else also fails: the context is canceled, which causes the cockroach processes to die, and tests often see errors as a consequence of that. This makes the current error reporting logic confusing: multiple errors are displayed in the GitHub issue, often taking attention away from the fact that the test timed out.

A recent example is #114501.

Error reporting could use a lot of improvements, but an immediate change we could make here is to not display any other errors if the test timed out, as that is always going to be the main error we should pay attention to.

Jira issue: CRDB-33567

@renatolabs renatolabs added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) A-testing Testing tools and infrastructure T-testeng TestEng Team labels Nov 16, 2023
Copy link

blathers-crl bot commented Nov 16, 2023

cc @cockroachdb/test-eng

@renatolabs renatolabs added the E-quick-win Likely to be a quick win for someone experienced. label Nov 17, 2023
craig bot pushed a commit that referenced this issue Dec 1, 2023
115286: roachtest: no longer show other errors if a test times out r=renatolabs a=DarrylWong

When a test times out, it often leads to other failures (i.e. context cancelled). However, these are often just noise and distract from the root cause of the failures, the timeout.

This change makes it so when a timeout failure is added, it suppresses future errors from being shown in github posts and the test failure message. They are still logged in their respective failure.log files.

Epic: none
Release note: none
Fixes: #114565

Co-authored-by: DarrylWong <darryl@cockroachlabs.com>
@craig craig bot closed this as completed in 74e7332 Dec 1, 2023
blathers-crl bot pushed a commit that referenced this issue Dec 1, 2023
When a test times out, it often leads to other failures
(i.e. context cancelled). However, these are often just
noise and distract from the root cause of the failures,
the timeout.

This change makes it so when a timeout failure is added,
it suppresses future errors from being shown in github posts
and the test failure message. They are still logged in their
respective failure.log files.

Epic: none
Release note: none
Fixes: #114565
blathers-crl bot pushed a commit that referenced this issue Dec 1, 2023
When a test times out, it often leads to other failures
(i.e. context cancelled). However, these are often just
noise and distract from the root cause of the failures,
the timeout.

This change makes it so when a timeout failure is added,
it suppresses future errors from being shown in github posts
and the test failure message. They are still logged in their
respective failure.log files.

Epic: none
Release note: none
Fixes: #114565
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testing Testing tools and infrastructure C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) E-quick-win Likely to be a quick win for someone experienced. T-testeng TestEng Team
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant