Repository navigation
fix: require completed tests in the repeat lane - #2393
Conversation
yansfil
left a comment
There was a problem hiding this comment.
Round 1: PASS. No blocking or minor findings.
Reviewed the full diff against origin/main from a detached checkout of head 49ed978e8a2a56f6dbee3306a1f3e139ae565f53 (merge base 77315ee1a7c7d6598091346bc7fe60bfd372d4d2).
Correctness, fragmentation, simplicity, module boundaries, ownership and limits, and tests were covered.
| Path | Reviewed outcome |
|---|---|
| Hand run: web only, Rust only, or both | Explicit decisions select every requested leg and preserve the requested repeat count. |
| PR: a selected web or Rust leg lists zero tests, or its count is missing | Selection fails; the final verdict rejects the unsuccessful count job. |
| Selected leg is skipped, cancelled, or fails before reporting | The final verdict rejects its result or missing completed count. |
| Selected leg succeeds but reports zero completed tests | The report reader and final verdict reject zero; the unit suite fixes the hand-run and PR cases for both legs. |
| PR selects nothing | Both legs may skip with repeat zero; the final verdict passes. |
The completion outputs come from execution reports rather than the requested repeat count.
The final verdict is a job of the reusable repeat workflow; pr.yml includes that workflow in the required aggregate, which rejects a planned repeat lane that fails, skips, or is cancelled.
The existing PR rule expanding a helper module with no listed tests to its crate's whole integration binary is preserved.
Report file count and byte limits are explicit and fail on overflow.
Evidence checked at the exact reviewed head:
- Linux web: eight distinct tests each completed ten times,
80 passed,completed=80, final verdict succeeded. - Windows web: the same eight tests each completed ten times,
80 passed,completed=80, final verdict succeeded. - Linux Rust: one selected test passed in all three stress iterations,
completed=3, final verdict succeeded. - Zero-match hand run: no tests found; both the web leg and final verdict failed.
- Independently ran
python3 -m unittest scripts.tests.test_ci_repeat: 45 tests passed. - Additional value-level probes covered 72 successful and rejected selection/verdict paths, including both legs selected and unsuccessful count jobs.
No local end-to-end or Rust execution was performed.
macOS, a combined web/Rust dispatch, and real cancellation were not exercised live in this review; their wiring and failure decisions were inspected.
This verdict does not replace the PR's required CI result.
…with-hide#2398) Related: with-hide#2376 (added the restart wait), with-hide#2393 (blocked by this) ## Summary Every web e2e test that restarts hided fails on main with `timed out after 15000 ms waiting for the restarted core's engine and saved Workspace` (main run 42838673383, and 115 times in with-hide#2393's run 42835956543). The shared restart wait added in with-hide#2376 reads the engine state as `status.herdr.state`, but the snapshot names it `status.engine.state` since the web shell's engine identifiers were renamed; the two pull requests passed apart and broke together. This reads the field under its current name, the same one `web/src/App.tsx` and `web/src/navigation.ts` read. ## Review - **Risky files**: `web/e2e/hided-fixture.ts` - the restart boundary every restart test shares; the wait itself is unchanged. ## Tests - **Layer**: e2e fixture; no test is added or changed. - **Catches**: the restart specs (read-across-restart, s7, desk-lane, overview-modal, hide-ai-origin) fail on main without this. - **Waits**: none added; the existing snapshot wait now reads a field that exists. ## Evidence - Confirmed: `git grep` on main finds `status?.engine?.state` in `web/src` and only this fixture still reading `status.herdr`. - Not run locally: the web e2e lanes; this PR's CI is the check.
Summary
Fixes the hand run of #2377, which could pass after skipping every named test.
Manual runs now select their web and Rust jobs explicitly on the requested system.
An always-run verdict requires each chosen job to succeed and report actual completed tests.
Review
itbinary.repeat.ymlandweb-e2e.ymlcarry completion outputs into the final failure path.ci-repeat.pyrejects missing decisions, missing reports, skipped jobs and zero completed runs.Tests
Evidence
hided:seattest x 3.Verification record
49ed978e8a2a56f6dbee3306a1f3e139ae565f53.77315ee1a7c7d6598091346bc7fe60bfd372d4d2.python3 -m unittest scripts.tests.test_ci_repeat scripts.tests.test_ci_plan: 139 tests, exit 0.80 passed,completed=80, verdict passed.80 passed,completed=80, verdict passed.No tests found.3/3iterations passed,completed=3.