-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[WIP] TEST: junitxml: write_captured_output: assert for flakiness #5959
Conversation
@@ -207,6 +207,8 @@ def write_captured_output(self, report): | |||
else: | |||
content = content_err | |||
|
|||
# XXX: flaky in test suite, trying to figure out why. | |||
assert content, repr([content, content_log, content_err]) | |||
if content: |
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.
@nicoddemus
Any idea why this might be Falsy during tests?
Does this happen during failures of outer tests then only?
Does it make sense to cover this branch, or should we either assert it here then always (probably a bad idea since it is covered sometimes), or just ignore it for coverage (# pragma: no branch
)?
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.
Not sure, do you have an example failure?
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.
No.
(@blueyed please use |
@nicoddemus |
Yeah I've noticed. I did not notice though it coming from junitxml, but I've often seen flaky coverage in capture.py: |
I assume that is only the case before all jobs have finished then? |
No description provided.