Repository navigation
ci: shard e2e, gate it, run in the merge queue and never cancel main - #141
Merged
8 commits merged intoNov 22, 2026
Merged
8 commits merged into
8 commits merged into
Conversation
- The chromium project runs in three shards and perf on its own runner (--no-deps, one worker); "Playwright (Chromium)" now always runs, merges the blob reports and passes only if every shard and perf passed. - Pull requests that change only docs/** or Markdown (not desktop/**) skip the browser suites; the gate still reports them as passing. - A merge_group trigger lets the main ruleset require the merge queue. - Only pull request runs are cancelled by a newer push, so a started run on main always finishes and can deploy.
Parallel pull requests each add an Unreleased entry; merging origin/main into a branch now keeps both instead of conflicting.
This was referenced Nov 22, 2026
GitHub's merge check ignores merge drivers, and a local union merge keeps both versions of a line edited on both sides without a conflict, so a visible conflict is safer.
2 of 3 tasks
…queue # Conflicts: # .github/workflows/ci.yml # AGENTS.md # CHANGELOG.md # docs/operations/deploy-runbook.md # tests/TESTING.md # tests/unit/ci/ci-workflow.test.ts
HMarzban
marked this pull request as ready for review
November 22, 2026 08:52
…queue # Conflicts: # .github/workflows/ci.yml # CHANGELOG.md
HMarzban
enabled auto-merge
November 22, 2026 10:20
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 22, 2026
8232f90
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR 2 of the CI split. Draft: held for the Bun CI review plan. PR 1 (no-cancel on
mainandmerge_group) is #143. That part is repeated here until #143 lands; this branch will then mergeorigin/main.mainruns are never cancelled.cancel-in-progressis now${{ github.event_name == 'pull_request' }}. Runs onmainqueue in commit order, and each one finishes and can deploy. Before this change a merge cancelled the previous commit's run, so 29f6faf and e64ae84 never deployed. GitHub keeps one waiting run per group, so a third push while one is running drops the middle waiting run. The newest commit still deploys and includes it. The concurrency group stays per ref, not per SHA, so an older commit can never deploy after a newer one.merge_group. The owner turns the queue on once; the steps are indocs/operations/deploy-runbook.md→ CI checks and the merge queue. Queue runs never deploy: their event ismerge_groupon agh-readonly-queue/...branch, and Deploy acts only onpushruns onmain.Playwright shard 1/3,2/3and3/3, each with--retries=1andfail-fast: false.perfruns in its own job,Playwright perf (typing budget), on its own runner, using--no-depsand one worker.Playwright (Chromium)is now an always-run gate job that needs every shard and perf. It merges their blob reports (githubandhtmlreporters), so a failure is annotated at its file and line and the HTML report is uploaded. It passes only if every shard and perf passed.Changed filesjob lists the PR's paths. If every path is underdocs/or is a*.mdfile, and none is underdesktop/, the shards and perf are skipped and the gate passes with a notice. Pushes, the merge queue and manual runs always run everything.merge=union. It was tried here and dropped (chore: merge CHANGELOG.md with the union driver #145): GitHub's merge check ignores merge drivers, and a local union merge silently keeps both versions of a line that both sides edited.tests/unit/ci/ci-workflow.test.tspins this shape. It checks both required names on exactly one job each, the shards,--no-deps, the gate'sif: always()andneeds, and runs the real Decide and Verdict scripts against a table of cases.workflow-permissions.test.tsnow also requires explicit read-only permissions on every job of apull_requestormerge_groupworkflow.Required checks (unchanged names)
Lint, typecheck, unit tests, buildPlaywright (Chromium)Do not require the shard, perf or
Changed filesjobs.Timing
mainruns (ed2a7cd, 08b7663, 1ed981e, f9cfc3a, 6841489)workflow_dispatchrun 44999283346Per job in the after run:
The critical path is now the slowest shard. Each shard spends about 1 min on setup: install, Chromium,
make devand warm-up. A 4th shard would save about 1.5 min but cost another runner.Docs-only skip, shown on throwaway #142 (CHANGELOG.md only, now closed):
Changed filespassed;Playwright (Chromium)passed.Cosmetic: a skipped matrix job shows its unexpanded name (
Playwright shard ${{ matrix.shard }}/3). It is not a required check.Owner steps (once, after merge)
See the runbook section. In short: in ruleset Protect main, add Require merge queue with these settings:
Keep the two required checks as they are. A
gh apione-liner is in the runbook.Test plan
workflow_dispatchrun on this branch: 3 shards, perf and the gate all pass, in 7.5 min.Playwright (Chromium)passed.bun test tests/unit/cipasses (81 tests).🤖 Generated with Claude Code