Repository navigation
test(#451): a batch that one test leaves collected no longer reaches the recorder of the next - #485
Merged
Merged
Conversation
…the next test's recorder The 10 s wait for a hand-over on windows-x64 (run 45056236348) was a cascade of the failure before it. The test before the order test failed on two equal due times with 2 records still collected and a linger time of 0.1 s. Its linger thread handed them over through extras._call, which by then was the recorder of the order test, so the count of that test went past the expected one in its first round and its wait could never end. The library fixture now stops every executor made under it before the patches are undone. A new test leaves a batch collected and checks that the next recorder sees nothing; it fails without the teardown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
It explains and fixes the third failure of the first red run in #451, the 10 s wait for a hand-over on windows-x64 (run 45056236348). It is a fault of the unit tests, not of the executor, and it was a cascade of the failure before it.
test_the_entry_of_an_earlier_batch_does_not_cut_a_later_batch_shortfailed on two equal due times (fixed by Async batch unit tests: no thread count across tests, a clock step between two batches, and the state of a hand-over that does not come #455) with 2 records still collected and a linger time of 0.1 s. In the artifact it took 0.002 s.extras._call, which by then was the recorder of the next test,test_the_order_of_the_calls_holds_across_linger_hand_overs_and_flush_points.The
libraryfixture now stops every executor made under it before the patches are undone.src/is not touched.Related issues
Closes #451. The other failures of that issue: the thread count and the equal due times are fixed by #455, and the vector race is #409 with the rerun of #463.
Docs
None needed: a test-only change.
Checklist
uvx pre-commit run --files <changed files>passesI ran these on Linux, Python 3.12, with no JVM and no native library (the file needs neither):
076d6d5, clock in 15.625 ms steps, the first test made to fail where it failed on Windows, the second delayed past the left due timeThe first row forces the timing. On its own, with only the clock step, the order test passed.