Repository navigation
Test races: [ answer ] press retry and kept baseline sync (Arkho #79, #80, 7.157.2) - #199
Merged
Merged
Conversation
…eline syncs on the recovery first (Arkho #79, #80, 7.157.2) live-walk-check: press_open finds the label again each attempt after the pane settles and presses up to 3 times (10 s each) while no dialog is open; a failure says whether the label never appeared or was pressed N times with no dialog. test-bridge-control: the kept baseline is sampled only after both earlier recoveries have reached the watch stream; the final recovery assertion counts instead of matching an earlier line.
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.
Closes #79, #80. Two test-only changes, so a failure of either means the code under test is really broken (version 7.157.2).
#79:
[ answer ]press check (tests/mods/live-walk-check.py).press_openreplaces the single press and 10 s wait. Each attempt waits for the pane to settle, finds the label again, presses it, and waits up to 10 s for the dialog. It makes at most 3 presses and sends none once the dialog is open. A dialog already open before any press fails the check, so the button is always exercised. The failure detail says which case happened: the label never appeared, the dialog was open before any press, or the label was pressed N times and no dialog opened. The assertions are unchanged: the press opens the dialog, Enter settles it as the terminal's answer, and the answer is delivered.#80:
keptbaseline race (tests/sminos/test-bridge-control.sh). Before theok:falsebaseline is sampled, the test waits withuntil_truefor the earlier recovery to reach$WATCHK(twokept ok:trueevents by then), then asserts that count. A recovery always follows the failure it recovers from, so both earlier events are in the file by that point. The later "the recovery is said on the stream too" assertion previously matched an earlier recovery line and could never fail. It now waits for the thirdok:trueand asserts the count is exactly 3.Evidence
test-bridge-control.sh, 7 runs in a row, all "all 80 bridge control assertions passed". Run 1 had a 1-minute load of about 84 (before the loop); the six loop runs had loads of 156, 151, 146, 82, 59.5 and 58. No strayctl.py supervisorprocesses after any of the six.live-walk-check.py --only press, 3 live runs, all 3 of 3 checks passed: