Repository navigation
Give every refusing handoff kill test a failed handoff whatever the timing - #24
Merged
Merged
Conversation
…iming The refusing kill tests required at least one failed handoff, but whether a random refusal landed during a handoff depended on the machine's timing: Linux x86_64 CI got none (8 runs, 0 backoffs) and failed. The first iteration now refuses and lets its runners finish, so each of these seeds always backs off at least once, and the backoff checks always run. The other seeds draw the same random sequence as before. A program that was never admitted has no state, which the state check now accepts; it showed up only with very few iterations.
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.
Why: `random_kills_of_two_runners_with_an_expiring_program_never_hand_off_after_it` failed on Linux x86_64 in #23's CI (`8 runs: 5 failed; 0 backoffs`, then `the seed hits a failed handoff`). The refusing kill tests assert that a failed handoff happened, but whether a random refusal landed during a handoff depended on timing, so the fixed seed didn't settle it.
Change (test only):
Tested: the whole `automation_handoffs` suite passes with `HANDOFF_KILLS=3` (where the forced iteration supplies the only backoffs) and with the default 50. Clippy is clean.