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: collect cluster logs after timed out tests #38740

Merged
merged 1 commit into from
Jul 8, 2019

Conversation

andreimatei
Copy link
Contributor

Before this patch, a timed out test that wasn't reacting to its ctx
cancelation was not attempting to collect node logs.

Release note: None

@andreimatei andreimatei requested a review from tbg July 8, 2019 19:49
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -700,12 +679,42 @@ func (r *testRunner) runTest(
panic("expected success=false after a timeout")
}
case <-time.After(5 * time.Minute):
return false, fmt.Errorf("test timed out and afterwards failed to respond to cancelation")
msg := "test timed out and afterwards failed to respond to cancelation"
Copy link
Member

Choose a reason for hiding this comment

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

cancellation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Before this patch, a timed out test that wasn't reacting to its ctx
cancelation was not attempting to collect node logs.

Release note: None
@andreimatei
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Jul 8, 2019
38740: roachtest: collect cluster logs after timed out tests r=andreimatei a=andreimatei

Before this patch, a timed out test that wasn't reacting to its ctx
cancelation was not attempting to collect node logs.

Release note: None

Co-authored-by: Andrei Matei <andrei@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Jul 8, 2019

Build succeeded

@craig craig bot merged commit 506025d into cockroachdb:master Jul 8, 2019
@andreimatei andreimatei deleted the roachtest.logs branch July 8, 2019 20:42
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.

3 participants