Skip to content

ci: gatekeeper 1.7.0; light gates on a PR, full once merge-ready (#421) - #428

Open
jirathip-k wants to merge 6 commits into
stagingfrom
issue-421
Open

jirathip-k wants to merge 6 commits into
stagingfrom
issue-421

Conversation

@jirathip-k

@jirathip-k jirathip-k commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #421

For humans

Pull requests now run only the quick checks on each push; the long platform runs (web, bench, Apple) start once the PR is labelled merge-ready, and every push to staging or main still runs everything.
CI moves to gatekeeper 1.7.0, the first release with the light scope.

What changed

  • .gatekeeper/config.toml: [pin] 1.0.0 → 1.7.0, both target sha256s from the v1.7.0 release's SHA256SUMS.

  • .github/workflows/ci.yml: gates.yml@49e65a3c0e634088282c783f1f16211a7156fc75 # v1.7.0; pull_request.types: [opened, synchronize, reopened, labeled]; scope: ${{ contains(github.event.pull_request.labels.*.name, 'merge-ready') && 'full' || 'light' }}.

  • Forced by 1.7.0's config checks (without them gatekeeper list exits 2, so every CI run would fail):

    • 14 local gates read $CI to skip on a lane's host; 1.7.0 refuses that. They now read GATEKEEPER_HOST (always lane or ci), same behaviour: [ -z "${CI:-}" ] → [ "${GATEKEEPER_HOST:-}" != ci ], [ "${CI:-}" = true ] → [ "${GATEKEEPER_HOST:-}" = ci ].
    • [legs.swift] is refused because swift is now a gatekeeper pack name; the leg is renamed apple (same macOS platform and gates; the leg's CI job is now named apple).
  • Fix round 1 (CI red at f9ae871: 1.7.0 adds gates this repo had no setup for):

    • core/arch: [docs] moved out of .drover/arch.toml, as 1.7.0 asks: skip goes to .gatekeeper/config.toml [docs], paths dropped.
    • core/duplication, core/test-health, core/test-sleeps, ts/complexity, rust/complexity, rust/dead-code: first baselines from ./.gatekeeper/run baseline <gate> (ceilings and lists that only shrink).
    • rust/dead-code: budget 180 s (CI took 62.4 s against the 60 s default).
    • core/hygiene: ci.yml passes secrets.PRIVATE_NAMES as gates.yml's private-names (a public repo's hygiene gate fails with no list).
  • Fix round 2: core/test-sleeps baseline adds web/react/test/title.test.ts: setTimeout( #1, which the first baseline missed.

  • Fix round 3: swift-glance.toml (new on staging from compact size class: one block's island and widget forms (leading, trailing, expanded, small, medium) drawn by BlocksUI (ADR first) #412) gets the same migration as the other swift gates: leg = "apple", skip on [ "${GATEKEEPER_HOST:-}" != ci ]. Without it 1.7.0's ci plan exits 2 and gates / done is red.

Decisions

  • v1.7.0: gatekeeper PR kind: chart: draggable points on #132's chart, sent as one action #139 (closing kind: editable grid (cell edit, row reorder, live totals) on table #138) says "release 1.7.0"; v1.6.0 was cut before it merged.
  • GATEKEEPER_HOST reads, not needs = ["quiet-host"]: keeps each gate's own skip message and line, smallest diff; quiet-host fits only perf/soak's reason.
  • Leg name apple: lowercase, not a pack name, names the platform.
  • Baselines over fixing 100+ existing findings: the issue is a pin bump; fixing them is each gate's own ratchet work.
  • Not done, owner call: .github/workflows/ci.yml is in .drover/arch.toml frozen, and core/arch reads that list from the base, so the with:/secrets: lines the issue asks for fail core/arch on this PR whatever this PR changes. It needs ci.yml unfrozen on staging first: unfreezing it in this PR does nothing (gatekeeper's frozen-at-the-base-dropped-at-the-head fixture; rerun confirmed), and squeezing the lines into the old count with flow-style YAML still fails, and would only dodge the guard. The PRIVATE_NAMES Actions secret must also exist (the owner writes it from the fleet's private names).

Evidence (at da79556)

  • ./.gatekeeper/run ci plan → exit 0 at the head (matrix includes the apple leg); with this round's change set aside, exit 2 with .gatekeeper/gates/swift-glance.toml: \run` reads `CI` ...`, the same error as CI run 46193042637.
  • ./.gatekeeper/run list → exit 0, local/swift-glance listed.
  • cargo fmt --check and drover arch-check: run by drover turn done at this head.
  • Earlier rounds' evidence (pin, light/full plans, baselines, test-sleeps, actionlint) still holds; this round changed only swift-glance.toml.

Not verified: green CI. core/arch stays red until ci.yml is unfrozen on staging (owner, Q4250: still frozen at staging e1aa341); the PRIVATE_NAMES secret is set. Also not verified: a labelled full run.

src/ net +0 (budget +0): CI config only.

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