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

EngineTest.test_trace_multi is flaky #6829

Closed
stuhood opened this issue Nov 28, 2018 · 4 comments
Closed

EngineTest.test_trace_multi is flaky #6829

stuhood opened this issue Nov 28, 2018 · 4 comments

Comments

@stuhood
Copy link
Member

stuhood commented Nov 28, 2018

Because the root of a request fails fast while additional work continues to run, trace will only ever observe two failures simultaneously if multiple failures occur between the time when the root fails and the time when trace is called. This causes the structure (and semantics) of test_trace_multi to be inherently flaky.

One way to fix the test would be to move the test down a level into the graph crate. Another way would be to leave the test where it is, and to make the semantics of fast and slow failure more explicit, possibly by adding a pants global option that waits until the graph below a Session's roots have stabilized (no running nodes) before rendering a trace. It might even be a good default (or not require an option at all?)

@stuhood
Copy link
Member Author

stuhood commented Dec 6, 2018

Seen again in #6876.

@jsirois
Copy link
Contributor

jsirois commented Dec 10, 2018

And again fixing flaky #6877.

@jsirois
Copy link
Contributor

jsirois commented Dec 11, 2018

And again, this time on master and on both python 2 and 3 unit test shards.

jsirois added a commit to jsirois/pants that referenced this issue Dec 11, 2018
The test is known to be inherently flakey as descrbed in pantsbuild#6829.
jsirois added a commit that referenced this issue Dec 11, 2018
The test is known to be inherently flakey as descrbed in #6829.
@jsirois jsirois self-assigned this Mar 24, 2020
jsirois added a commit to jsirois/pants that referenced this issue Mar 25, 2020
This brings our skip count up from 7 python and 2 rust to 25 python and
4 rust, hopefully in the name of stability as outlined in pantsbuild#9386.

Also updates the How to Contribute docs with a pointer to pantsbuild#9386 for
the latest procedure.

Includes flaky tests from:
 pantsbuild#9313 pantsbuild#9312 pantsbuild#8679 pantsbuild#8678 pantsbuild#8520 pantsbuild#8520 pantsbuild#8520 pantsbuild#8405 pantsbuild#8193 pantsbuild#8171 pantsbuild#7836 pantsbuild#7622
 pantsbuild#7573 pantsbuild#7572 pantsbuild#7554 pantsbuild#7547 pantsbuild#7457 pantsbuild#7168 pantsbuild#7149 pantsbuild#6838 pantsbuild#6829 pantsbuild#6787 pantsbuild#6114

[ci skip-jvm-tests]  # No JVM changes made.
jsirois added a commit that referenced this issue Mar 25, 2020
This brings our skip count up from 7 python and 2 rust to 25 python and
4 rust, hopefully in the name of stability as outlined in #9386.

Also updates the How to Contribute docs with a pointer to #9386 for
the latest procedure.

Includes flaky tests from:
 #9313 #9312 #8679 #8678 #8520 #8520 #8520 #8405 #8193 #8171 #7836 #7622
 #7573 #7572 #7554 #7547 #7457 #7168 #7149 #6838 #6829 #6787 #6114
@jsirois jsirois removed their assignment Mar 25, 2020
@Eric-Arellano
Copy link
Contributor

Closing because this has too much code rot now, so I'm deleting the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants