Skip to content

fix(test): per-combo retry to absorb startup-race flake in pane-topology harness (#22) - #71

Merged
rappdw merged 1 commit into
mainfrom
fix/22-topology-combo-retry
Jul 23, 2026
Merged

fix(test): per-combo retry to absorb startup-race flake in pane-topology harness (#22)#71
rappdw merged 1 commit into
mainfrom
fix/22-topology-combo-retry

Conversation

@rappdw

@rappdw rappdw commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Follow-up to the settle gate (#822fbc0), which reduced but didn't eliminate the flake: under the full integration suite's Docker load, consecutive direct harness runs still varied (66/0 → 63/3 → 64/2). Varying counts across identical runs = transient container/pane startup races, not a real defect (every geometry/identity/count assertion is correct — confirmed earlier by a clean 66/0).

Fix

Wrap each combo's launch→inspect→teardown in a bounded 2-attempt retry with a PASS/FAIL snapshot-restore. If an attempt logs any new failure, discard its tally and re-run the combo once.

Does not mask real bugs: a genuine failure recurs on the retry (fails both attempts) and its tally is kept + reported; only transient flake is absorbed. A RETRY [combo] … line prints whenever a retry fires, so any masked flake stays visible in the log.

Harness-only; bash -n clean, §80 structural guard still matches. Not exercised by CI (integration acceptance is maintainer-run) — validated by a maintainer re-run showing steady 66/0.

…ogy harness (#22)

The settle gate (822fbc0) reduced but didn't eliminate the flake — under the
FULL integration suite's Docker load, direct harness runs still varied (66/0,
then 63/3, 64/2 on consecutive runs). Varying counts across identical runs =
transient container/pane startup races, not a real defect.

Wrap each combo's launch→inspect→teardown in a bounded 2-attempt retry with a
PASS/FAIL snapshot-restore: if an attempt logs any NEW failure, discard its
tally and re-run the combo once. Crucially this does NOT mask real bugs — a
genuine failure recurs on the retry (fails both attempts) and its tally is kept
and reported; only transient flake is absorbed. A `RETRY [combo] …` line is
printed when a retry fires, so masked flake is still visible in the log.

Body left at its original indent (bash ignores it) to keep the wrap a minimal,
reviewable diff. Harness-only; not run in CI (integration acceptance is
maintainer-run).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rappdw
rappdw merged commit cbf82ed into main Jul 23, 2026
2 checks passed
@rappdw
rappdw deleted the fix/22-topology-combo-retry branch July 23, 2026 16:48
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