Skip to content

Test races: [ answer ] press retry and kept baseline sync (Arkho #79, #80, 7.157.2) - #199

Merged
SSFSKIM merged 1 commit into
mainfrom
arkho-79-80-test-races
Oct 16, 2026
Merged

SSFSKIM merged 1 commit into
mainfrom
arkho-79-80-test-races

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 16, 2026

Copy link
Copy Markdown
Owner

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_open replaces 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: kept baseline race (tests/sminos/test-bridge-control.sh). Before the ok:false baseline is sampled, the test waits with until_true for the earlier recovery to reach $WATCHK (two kept ok:true events 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 third ok:true and 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 stray ctl.py supervisor processes after any of the six.
  • live-walk-check.py --only press, 3 live runs, all 3 of 3 checks passed:
    • run 1: load about 78 to 108, 1 press;
    • run 2: with 8 CPU burners, load 119 to 174, 1 press;
    • run 3: load 83, 1 press, after the review fix.
  • The retry paths (opens on the 2nd press, never opens, label absent, dialog already open) are checked with a stubbed pane and no model calls. Those runs gave the expected results and messages.
  • Reviewed once with reviewer-medium. Its one finding (a dialog already open before any press passed without a press) was fixed. Review stopped there.

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant