-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Output reloading flaky test: Log when test fails #18071
Conversation
❕ Build Aborted
Expand to view the summary
Build stats
Test stats 🧪
Log outputExpand to view the last 100 lines of log output
|
Pinging @elastic/integrations-services (Team:Services) |
471648c
to
f6dd27d
Compare
jenkins, test this please |
t.Errorf("expected %d traces, got %d", numBatches, len(transactions)) | ||
} | ||
} | ||
|
||
type bufLogger struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why introduce a buffer instead of directly logging to t
? In order to minimize noise in test output? In that case maybe add a comment explaining the why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly. So we only emit the log entries if the test fails, not if it succeeds. I will add the comment, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 96b39e7.
What does this PR do?
Add logging when output reloading test fails.
Why is it important?
While we made some concurrency fixes to the output reloading code path in #17381, it appears there might still be a race condition somewhere. So far we have only seen this show up occasionally in CI (see test failures captured in #17965) and have not been able to reproduce it locally. So this PR will allow us to see logs of what was happening when the output reloading test fails.
Related issues