Skip to content

ci: shard the hosted packaged gate across two Macs - #370

Merged
SSFSKIM merged 1 commit into
masterfrom
packaged-hosted-shards
Oct 30, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
packaged-hosted-shards

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

The direct hosted packaged gate now runs as two jobs, packaged 1/2 and packaged 2/2, each building the unsigned app and running its half of the bare Playwright collection. Every self-hosted route still builds once and runs the unsharded suite.

Why

The hosted bare suite is approaching the job's 45-minute timeout. Master run 41020368991 collected 452 tests, with 213 passed and 239 skipped in 30.5 minutes before the small checks. An O3-D run reached test 382 of 456 before the timeout, with nothing failed. Two hosted Macs supply parallel capacity without putting a second build on the mini.

What changes

  • The plan emits packaged_shards, following the unit job's matrix pattern. Only admitted direct-hosted placement gets two entries. Mirror, unlisted jobs, Linux lane fallback and reserved final refs retain one unsharded entry.
  • Both hosted jobs build, verify fuses and run pnpm e2e:packaged --shard=k/2. Shard 1 owns the supervisor, daemon-shape and voice checks, preserving their existing order and running each exactly once. Every job retains the launchd sweep. fail-fast: false lets the other shard finish if one fails.
  • Reports upload as e2e-packaged-1of2 and e2e-packaged-2of2; self-hosted retains e2e-packaged. The launcher downloads all artifacts into separate artifact directories, so no download selector changes are needed.
  • A refusal/relaunch summary keeps the individual job names but collapses failed packaged shards back to one --gates packaged. Preemption handling already preserves whole job names and excludes hosted runners; a regression test covers those shard names.

Verification

Head c84125a8aff59df4de8f8bb4b118dff4c54c20d5 (base c7d9c9750).

  • Focused local tests: 160 passing across .github/scripts/gate-plan.test.mjs, scripts/ci-gate-alerts.test.mjs, scripts/ci-gate-refusals.test.mjs and scripts/ci-gate-preemptions.test.mjs. Tests first failed on the missing matrix and invalid relaunch gate names; both now pass. The legacy mirror snapshot remains unchanged after separately checking its newly added one-job matrix output.
  • Static + packaged run 41051180387, green on attempt 1, launched through the detached origin/master worktree with --runner macos --class1a pool --peer none --hosted-route direct --label packaged-shards.
    • packaged 1/2: 24m15s job wall time; bare suite 98 passed + 132 skipped = 230, in 17.4m. Supervisor: 1 passed/1 skipped; daemon shape: 1 passed/1 skipped; voice: 1 passed.
    • packaged 2/2: 19m49s job wall time; bare suite 115 passed + 107 skipped = 222, in 15.7m. All three small-check steps skipped, as intended.
    • Both jobs ran on separate macos-26 runners, passed fuse verification and launchd cleanup. Combined bare collection: 213 passed + 239 skipped = 452, exactly matching baseline 41020368991. The baseline and this head have no diff in e2e/, playwright.config.ts or package.json.
    • Baseline packaged wall time was 37m52s; the new longest shard is 24m15s, 13m37s shorter and 20m45s clear of the 45-minute timeout. Static passed in 2m29s.
  • No automatic PR checks are configured: gh pr checks --watch reports no checks and the PR's statusCheckRollup is empty. This repository's only workflow runs on ci/** pushes or manual dispatch; the linked acceptance run is the verification.
  • No full local suites or mirror route were run; no Mac configuration, Decision Log or tech-debt tracker was changed.

For the architect

The small checks stay together on shard 1 because they are short and keeping their existing sequence avoids changing their interaction. Sharding leaves the 45-minute timeout and the one-worker Playwright configuration unchanged. Review the placement matrix and the shard-to-gate normalization together.

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

Build once per hosted shard, keep every self-hosted route unsharded, and preserve shard identities in reports and relaunch summaries.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T11:56:38.907979Z c84125a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 7af107a into master Oct 30, 2026
@SSFSKIM
SSFSKIM deleted the packaged-hosted-shards branch October 30, 2026 12:21
SSFSKIM added a commit that referenced this pull request Oct 30, 2026
…370); the mirror route's runs-on also matches the EC2 Mac desktop

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 30, 2026
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