Repository navigation
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
Open
jirathip-k wants to merge 6 commits into
jirathip-k wants to merge 6 commits into
Conversation
…t baselines, private-names secret (#421)
This branch has not been deployed
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.
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 listexits 2, so every CI run would fail):$CIto skip on a lane's host; 1.7.0 refuses that. They now readGATEKEEPER_HOST(alwayslaneorci), same behaviour:[ -z "${CI:-}" ]→[ "${GATEKEEPER_HOST:-}" != ci ],[ "${CI:-}" = true ]→[ "${GATEKEEPER_HOST:-}" = ci ].[legs.swift]is refused becauseswiftis now a gatekeeper pack name; the leg is renamedapple(same macOS platform and gates; the leg's CI job is now namedapple).Fix round 1 (CI red at f9ae871: 1.7.0 adds gates this repo had no setup for):
[docs]moved out of.drover/arch.toml, as 1.7.0 asks:skipgoes to.gatekeeper/config.toml[docs],pathsdropped../.gatekeeper/run baseline <gate>(ceilings and lists that only shrink).ci.ymlpassessecrets.PRIVATE_NAMESas gates.yml'sprivate-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'sci planexits 2 andgates / doneis red.Decisions
GATEKEEPER_HOSTreads, notneeds = ["quiet-host"]: keeps each gate's own skip message and line, smallest diff; quiet-host fits only perf/soak's reason.apple: lowercase, not a pack name, names the platform..github/workflows/ci.ymlis in.drover/arch.tomlfrozen, and core/arch reads that list from the base, so thewith:/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'sfrozen-at-the-base-dropped-at-the-headfixture; rerun confirmed), and squeezing the lines into the old count with flow-style YAML still fails, and would only dodge the guard. ThePRIVATE_NAMESActions 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 theappleleg); 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-glancelisted.cargo fmt --checkanddrover arch-check: run bydrover turn doneat this head.Not verified: green CI. core/arch stays red until ci.yml is unfrozen on staging (owner, Q4250: still frozen at staging e1aa341); the
PRIVATE_NAMESsecret is set. Also not verified: a labelled full run.src/ net +0 (budget +0): CI config only.