Skip to content

fix: require completed tests in the repeat lane - #2393

Merged
yansfil merged 2 commits into
mainfrom
ci/repeat-hand-run-zero-tests
Nov 10, 2026
Merged

yansfil merged 2 commits into
mainfrom
ci/repeat-hand-run-zero-tests

Conversation

@yansfil

@yansfil yansfil commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Decide: Preserve ci: repeat the tests a pull request adds or changes #2377's final rule: a PR helper or all-ignored module selects its crate's whole it binary.
  • Risky files: repeat.yml and web-e2e.yml carry completion outputs into the final failure path.
  • Risky files: ci-repeat.py rejects missing decisions, missing reports, skipped jobs and zero completed runs.

Tests

  • Layer: Python unit and CLI tests cover selection, native report parsing and the final lane verdict.
  • Catches: A successful zero-run job; removing that guard caused four hand/PR and web/Rust regression failures.
  • Repeat: Eight existing web tests x 10 on Linux.
  • Repeat: Eight existing web tests x 10 on Windows.
  • Waits: No test waits added; the verdict and report steps have bounded CI hang guards.

Evidence

  • Verified: 139 focused Python tests pass; PR verify rejects a failed repeat lane through its existing aggregate.
  • Verified: Zero-match grep fails both web and verdict.
  • Verified: Linux Rust ran one hided:seat test x 3.
  • Verified: PR policy checks pass; independent review passed.
  • Not verified: macOS dispatch and live cancellation were not exercised; remaining PR CI is pending.
Verification record

@yansfil yansfil left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@yansfil
yansfil added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit a096ded Nov 10, 2026
56 checks passed
@yansfil
yansfil deleted the ci/repeat-hand-run-zero-tests branch November 10, 2026 16:25
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 12, 2026
…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.
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