Skip to content

ci: retry direct hosted e2e once and keep flakes visible - #294

Merged
SSFSKIM merged 3 commits into
masterfrom
hosted-e2e-retries
Oct 28, 2026
Merged

SSFSKIM merged 3 commits into
masterfrom
hosted-e2e-retries

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

What changes

Permit one retry only for direct GitHub-hosted macOS e2e jobs. This addresses the hosted Macs' timing-flake long tail without relaxing the mini's original zero-retry policy (GO DL 140).

  • The plan grants retry eligibility only to direct hosted entries outside notHosted; the shared test step also checks the actual runner environment, macOS, and the e2e job identity.
  • The mini, guest (e2e-vm), Linux pool, packaged, measured, live and secret groups remain at zero. The mirror route remains at zero; maws-app is untouched. Root/dashboard and desk-web-hub configs consume the opt-in; desk-web's ordinary config remains zero.
  • Each retry-only pass appears as flaky: <spec>:<line> in the job summary and beside ci-gate.sh's final verdict, even when the gate is green.
  • Reporting writes the locations under RUNNER_TEMP, then emits one aggregate notice in a dedicated always-run hosted step. This avoids GitHub's ten-annotations-per-type/per-step cap without downloading job logs at every verdict.
  • The tail reader checks all attempts so a later infrastructure rerun does not hide earlier flakes. Each API call has a 15-second hard timeout; skipped/unstarted jobs are ignored; a failed job read preserves other results and warns with the unreadable job names.

Architect's acceptance conditions

(a) Only direct GitHub-hosted macOS e2e jobs retry, once. The mini, guest, Linux pool, packaged, measured, live and secret groups stay at zero; measured/live/secret groups remain ineligible even if their placement changes. The mirror fallback remains at zero and maws-app is untouched.

(b) Retry-only passes are visible where the lander reads them: the job summary and flaky: <spec>:<line> lines beside ci-gate.sh's final verdict, not only annotations.

Real runner proof

Hosted aggregate proof: GREEN 40705165896. Job 122875303128 ran on macos-26 (GitHub Actions 1000021377). Twelve explicit throwaway tests each failed at testInfo.retry === 0 and passed at 1. The job reported 12 flaky. The dedicated Publish flaky tests step passed, and the check-run API contains exactly one MAWS flaky notice holding all twelve locations. All twelve are also visible in the rendered job summary, verified in Chrome.

The branch's real tail reader, run against that run, printed:

flaky: e2e/hosted-retry-proof.spec.ts:3
flaky: e2e/hosted-retry-proof.spec.ts:4
flaky: e2e/hosted-retry-proof.spec.ts:5
flaky: e2e/hosted-retry-proof.spec.ts:6
flaky: e2e/hosted-retry-proof.spec.ts:7
flaky: e2e/hosted-retry-proof.spec.ts:8
flaky: e2e/hosted-retry-proof.spec.ts:9
flaky: e2e/hosted-retry-proof.spec.ts:10
flaky: e2e/hosted-retry-proof.spec.ts:11
flaky: e2e/hosted-retry-proof.spec.ts:12
flaky: e2e/hosted-retry-proof.spec.ts:13
flaky: e2e/hosted-retry-proof.spec.ts:14

Self-hosted no-retry proof: expected RED 40700571745. Job 122859041454, on ci-kit-gce-hskmw2hbf4 with [self-hosted, ci-kit-pool, cpus-4], ran the same first-attempt-fails fixture through the real shared workflow and root Playwright config. It logged only retry-proof attempt=0 retries=0, then 1 failed; there was no retry. The temporary desk-web command selected the root fixture to exercise the same retry config without using a Mac lane.

The original single-flake hosted proof was also green: 40700557446. The later twelve-flake run above re-proves the revised aggregate workflow, not merely the original reporter.

All runs used the master worktree's launcher. Because master cannot yet print this branch's new tail output, the new reader was exercised separately against the completed real hosted runs, as agreed. Throwaway commits 606b782ce and 1446dc990 were dropped; no proof fixture or narrowed package command remains in this PR.

Final verification

  • Static GREEN 40706982718 on final head 2c676d281, through the master launcher with --gates static --class1a pool --peer none.
  • Focused retry/reporting tests: 4/4. The twenty-location regression traverses reporter file → aggregate workflow command → tail reader and checks summary output. A real stalled fake-gh process is killed after 15 seconds while another job's flaky result is preserved.
  • Existing gate-plan test file: 80/80 after rebase.
  • TDD: retry eligibility/reporting failed before implementation; the review regressions then failed for per-item annotations, discarded partial results, and an unbounded stalled read before the fix wave.
  • Rebased onto master including ci: warn when non-doc changes omit the unit gate #293; all three initial review findings are addressed.

Independent review history

  • Initial reviewer-medium review of a8611da28..9721dd090: three P2s (per-item annotation cap, unbounded reads/skipped placeholders, and losing successful results after one API failure). Fixed together in ceeea516e after rebase.
  • Re-review of 191520918..ceeea516e: the production fixes check out. Its test-only P2 (Node-path interpolation into shell source) is fixed in 2c676d281: the fixture passes the executable through NODE and expands "$NODE". An executable path containing an apostrophe and a space failed before the change and passed afterward; the focused file passes 4/4. The publisher also documents that the job summary is the complete record beyond GitHub's annotation message-size limit. The final static run above verifies this follow-up.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit 26252e2 into master Oct 28, 2026
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
…y, and a pass on the retry is printed where the lander reads (#294)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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