Skip to content

ci: run no checks on pull requests - #9760

Draft
kixelated wants to merge 3 commits into
mainfrom
chore/no-pr-checks
Draft

kixelated wants to merge 3 commits into
mainfrom
chore/no-pr-checks

Conversation

@kixelated

@kixelated kixelated commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

CI still checks pull requests: check.yml and release-gate.yml build and test every PR into release, fanning out to about 20 reusable workflows. That work duplicates the checks the PR's author (usually an agent) already ran locally, and the merge queue is the only gate main needs. Nightly's Gate job also runs on the merge queue's self-hosted runner, though it is async work on a public repository, which belongs on GitHub's runners.

Approach

No workflow checks a pull request. Agents run just ci before pushing (and just gate, plus just api-diff --deny for a backport, before pushing a PR into release), the merge queue gates main, and Nightly covers what the queue's diff selection skips.

  • Delete check.yml and release-gate.yml. Every reusable workflow Nightly calls stays.
  • Delete what only they used: uring.yml (Nightly's rs uring runs the suite), the uring mode of sh/rs/select.sh and its just rs uring-changed recipe and test, and sh/gh/ts-paths.py with its ts_paths dispatch module and test (it kept the Release gate's TS path filter in sync).
  • Drop the workflow_call trigger from interop.yml, moq-sh.yml, obs.yml, ts.yml, and video.yml, whose only caller was the Release gate, and every pull_request branch in the remaining workflows: api-diff.yml (now Nightly's additive-phase --deny only), interop.yml, moq-sh.yml, obs.yml, oss-scanner.yml, platform.yml (always --all), release-kt-lib.yml, smoke.yml, ts.yml.
  • quest.yml validates the quest tree on pushes to release only, no longer on quest/** branches, which are PR heads.
  • Nightly's Gate (just gate) moves from [self-hosted, moq-queue] to ubuntu-24.04-arm, the runner the rest of Nightly uses, and reads the B2 Rust cache without writing it. That is the configuration in which release PRs' Check ran the same just ci --all on hosted arm in 19 to 45 minutes this week (45697488827, 45315526870, 45128175580). The cold read-write run that filled the disk (moq-dev/moq#9033) is what moved it off hosted runners. arm rather than x86_64: the B2 cache that hosted jobs warm is arm, and an x86_64 build would start cold. Nothing it runs needs KVM or perf counters: dispatch.sh probes for KVM only on x86_64, and the release Check ran every module on hosted arm. It loses the queue host's 32 cores and x86_64; the queue itself still checks x86_64 per diff.
  • Docs (README, CONTRIBUTING, RELEASE, doc/setup/dev.md, harness READMEs, recipe comments) and quests no longer describe PR CI. CONTRIBUTING drops "dispatch platform.yml on the branch": to run macOS or Windows tests before merging, use a host with that OS over SSH.
  • sh/gh/queue.test.ts now asserts that no workflow but queue-pr.yml runs on pull_request and that no Nightly job is self-hosted. sh/gh/setup.test.ts drops its check.yml tests.

Kept:

  • queue-pr.yml: builds nothing. Its Queue job skips on a pull request, which posts the Queue context main's ruleset requires so GitHub's merge queue admits the PR; a dispatch posts the same skipped check run on an open main PR's head.
  • dependabot.yml (pull_request_target): not a check. It checks out main (never the PR head), refuses a lock-only smoke update, and runs quest merge <pr> --land <head> with a moq-bot token from the bot Environment to request a pinned landing.
  • queue.yml runs only on merge_group, and queue-build.yml only on workflow_call from it, building only when the event is merge_group.

The release path becomes async. A cut PR's head is main, which Nightly already checks in full, so a cut runs just gate and the readiness checks locally and reads Nightly's results at the candidate SHA. release keeps its own check.yml and release-gate.yml until the next cut merges main into it (a pull_request run reads workflows from the PR's merge commit), so backports keep their gate until then, and the cut needs the ruleset change below first. After the cut, a backport's author runs just gate and just api-diff --deny, and pushes to release still run platform.yml, obs.yml, quest.yml, and each publisher's own checks. See Waiting.

Impact

None. CI and docs only. No public API or wire change.

Alternatives

  • Convert the Release gate to a post-merge push: release workflow: it would run after release-plz has already published, so it gates nothing, and policy deletes PR jobs rather than moving them.
  • Nightly's Gate on x86_64 ubuntu-24.04 to match the queue: a cold cache on a smaller disk, the failure that moved it off hosted runners.
  • A larger hosted runner for the Gate: billed, and unnecessary while the read-only setup fits.

Validation

  • CHECK_MODULES="gh tooling markdown biome python shell quest text justfile large_files toml" quest gate nix develop --command just ci origin/main passes: actionlint, zizmor, alert coverage, sh/gh/queue.test.ts (queue event policy passed), sh/gh/setup.test.ts, sh/dispatch-query.test.py, sh/rs/select.test.py, and quest check (562 documents).
  • Not run: the full just ci (the justfile change selects every module; this diff changes no Rust, JS, or build input) and Nightly itself. The next scheduled Nightly's Gate job is the real check of the runner move.
  • Merges cleanly with current main and with every open PR's head, including moq-dev/moq#9751, which edits nightly.yml's tests matrix (lines 442 to 460); this PR leaves that hunk alone.
  • Remaining triggers: pull_request only queue-pr.yml (plus workflow_dispatch); pull_request_target only dependabot.yml; merge_group only queue.yml. Everything else runs on schedule, workflow_dispatch, workflow_call from Nightly or a release coordinator, workflow_run, or push to main (cache.yml, gstreamer-ci.yml, smoke.yml), release (moq-sh, obs, platform, quest, release-go, release-js, release-kt-lib, release-py, release-rs, release-swift-lib), or release tags.

Waiting

  • kixel-ai/dotfiles bin/repo-settings drops the required Check and Release gate contexts from the release ruleset; until then every PR into release waits on contexts nothing reports. main's required Queue stays.
  • kixel-ai/dotfiles drops nightly.yml from the moq-queue runner group's allowed workflows, which now admits queue-build.yml alone.
  • Maintainer: a backport into release no longer runs the Release gate's suites before merging, and release has no merge queue. How should it be gated?
    • Kixel Quest's merge queue takes release too, running just gate and just api-diff --deny on the queue host (Recommended) - restores a synchronous gate within policy
    • Nightly also runs on pushes to release - a post-merge signal only, after release-plz may already have published
    • Local checks only - the author's just gate and just api-diff --deny are the whole gate

Follow-ups

Quests changed for the policy: quest/m3/mbx-release-cache.md deleted (release PRs no longer run Check); quest/m3/gpu-ci.md and quest/m4/video-quality/gpu-runners.md gain a Waiting decision, since both plan per-repository self-hosted GPU runners; quest/m5/userspace-tcp runs its privileged XDP tests under sudo on GitHub's runners instead of a self-hosted one; quest/m4/lint-examples.md targets the merge gate rather than PR CI.

quest/m3/release-check.md plans a Kixel Quest status context required on cut PRs into release. It builds nothing, but it is a synchronous PR gate outside the merge queue; left unchanged for the maintainer to confirm.

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown

(Written by Claude Opus 5.5)

Review

Rewritten by quest review after each round.

  • Head: e22c6b2

  • Base: origin/main at 17fe706

  • Risk: high, it changes .github/workflows/android.yml, which is always high, as are 22 more of its paths: workflows run with the repository's secrets

  • Classified: high by the always-high paths

  • Risk file: bb7b1c0de60b

  • Reviewer: Codex, gpt-6.2-sol, medium effort

  • Session: 01a21ccd-b652-7110-85a3-f62d12084568, round 3

  • Score: 10/10, The release runbook now specifies which checks apply before and after the first cut, and the follow-up introduces no new findings.

  • Rounds: 3; first round 1 (high 1); findings 1 (medium 1): fixed 1, refuted 0, open 0

  • Findings: none

  • The last round's findings, at a7d049b:

    • Fixed: medium, RELEASE.md:15: Apply the local backport checks only after the first cut; `RELEASE.md:15` directs pre-cut backports to the existing `Check` and `Release gate` workflows and starts the local `just gate` and `just api-diff --deny` procedure once the cut lands.
  • Reviewer: Claude Code, claude-opus-5-5, medium effort, second

  • Session: 31812614-92fa-4f9e-aee5-a356ab0aa83b, round 3

  • Score: 9/10, This round only changes wording in CONTRIBUTING.md and RELEASE.md: the local `just gate` / `api-diff --deny` step for `release` now applies only after the next cut, and until then backports rely on `release`'s own `Check` and `Release gate` runs, which matches how the workflows actually behave.

  • Rounds: 3; first round 1 (high 1); findings 1 (high 1): fixed 0, refuted 1, open 0

  • Findings: none

Delete check.yml and release-gate.yml, the only workflows that built or
tested pull requests (PRs into `release`). Agents run `just ci` (and
`just gate` for a release PR) before pushing, the merge queue gates
`main`, and Nightly covers what the queue's diff selection skips.

Drop what only those workflows used: uring.yml, the `uring` selector
mode, ts-paths.py and its dispatch module, and every pull_request branch
in the remaining workflows. quest.yml no longer checks quest branches.

Nightly's Gate moves off the merge queue's self-hosted runner onto a
GitHub-hosted arm runner that reads the B2 Rust cache, as the release
Check job ran the same `just ci --all`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated and others added 2 commits November 27, 2026 03:43
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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