Repository navigation
ci: emit the CI/gate commit status via the suite reusable; rename the in-workflow job to Proven suite verdict #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hyperpolymath
wants to merge
17
commits into
main
Choose a base branch
from
claude/sweet-edison-yp088x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
154e3e3
ci: add CI gate caller emitting the CI/gate commit status (interim)
claude c32981d
ci: re-pin the CI gate caller to the suite PR head 1d657fe
claude 4ba8bd9
ci: drop the concurrency block from the CI gate caller
claude bab5b42
ci: re-pin the CI gate caller to the suite PR head c77a66d
claude a1c0a17
ci: re-pin the CI gate caller to the suite PR head 0862fe8
claude b8bca3e
Merge branch 'main' into claude/sweet-edison-yp088x
hyperpolymath 443bf0f
Merge branch 'main' into claude/sweet-edison-yp088x
hyperpolymath 851050c
ci: scheduled CI/gate sweep and a typed status mapping in the squabbl…
claude 0039844
perf(required-contexts): parse status publishers in-process with Bun.…
claude 410c7df
Merge remote-tracking branch 'origin/main' into claude/sweet-edison-y…
claude 6eccbb5
ci(ci-gate): start CI/gate on pull_request and add the gate tamper gu…
claude 0fa4059
test(ci-gate): assert the caller shape and document the pull_request …
claude 8e1f333
fix(required-contexts): check every job that calls the suite ci-gate …
claude f44c85b
fix(required-contexts): read local reusable targets, reject duplicate…
claude f7f520c
ci(ci-gate): pin the suite reusable at the #139 squash commit 4e9e680…
claude 9e5ad99
Merge branch 'main' into claude/sweet-edison-yp088x
hyperpolymath 5b52740
fix(required-contexts): require the local reusable to declare a strin…
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # Gate tamper guard - thin caller of the suite's reusable guard; installed as .github/workflows/ci-gate-tamper-guard-caller.yml. pull_request_target runs this file from the | ||
| # DEFAULT branch, so a pull request cannot edit it; the job never checks out or runs pull request code | ||
| # (it reads the changed-file list through the API). The pin is a full SHA, never @main or a tag. | ||
| # A pull request that touches gate files fails this check until the OWNER applies the label | ||
| # `gate-change-approved` after the newest commit. AGENTS MUST NEVER APPLY THAT LABEL. | ||
| # No `secrets:` line, minimal permissions. See docs/CI-GATE.adoc, "Tamper guard". | ||
| name: Gate tamper guard | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, synchronize, edited, labeled, unlabeled] | ||
|
|
||
| permissions: | ||
| pull-requests: read | ||
| contents: read | ||
|
|
||
| jobs: | ||
| guard: | ||
| uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/ci-gate-tamper-guard.yml@4e9e680b0dfd842a457cf23271f9e005a88f766c # cicd-suite tamper guard |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # CI gate — thin caller of the estate's interim gate, which lives in | ||
| # hyperpolymath/proven-cicd-and-workflows as a reusable workflow. Do not copy | ||
| # its jobs in here: a copy freezes at one cicd-suite commit and never receives | ||
| # a fix. | ||
| # | ||
| # It emits the commit status `CI/gate`, which the Branch-Floor ruleset | ||
| # requires. It is a COMMIT STATUS, not a check run, because a job inside a | ||
| # reusable workflow gets the check-run name `<caller job> / <called job>` | ||
| # (see rust-ci-caller.yml: `rust-ci / Cargo test`), which always contains | ||
| # " / " and can never equal `CI/gate`. | ||
| # | ||
| # It triggers on workflow_run, schedule and workflow_dispatch, all of which GitHub runs from the | ||
| # DEFAULT branch: a pull request cannot alter this file, its pin or its list. The consequence: | ||
| # the pull request that adds this caller can never receive `CI/gate` itself, and | ||
| # would be merged past the gate once (owner action) without the gate-pr job at the end. There is no | ||
| # pull_request start here except the gate-pr job at the end (docs/CI-GATE.adoc, "The pull_request start"), | ||
| # whose shape tests/ci-gate.sh asserts. | ||
| # | ||
| # `schedule` and `workflow_dispatch` run a SWEEP: the reusable lists the open pull requests and the | ||
| # default branch head and re-evaluates each distinct head SHA with the same guarded publisher. A stale state | ||
| # then normally lasts until the next sweep. It is still last-writer-wins, a sweep is itself an evaluator, | ||
| # and GitHub may delay or skip scheduled runs (docs/CI-GATE.adoc, "Residual limit"). The cron below runs at minutes | ||
| # 7, 22, 37 and 52 of every hour; keep the minutes off :00 and :30, where scheduled load is highest. | ||
| # The sweep reads open pull requests, so the caller must grant `pull-requests: read`. | ||
| # | ||
| # It also fires when a workflow run STARTS (`in_progress`, which GitHub also sends for a rerun): | ||
| # any active run makes the verdict pending, so a rerun replaces a stale success with pending, | ||
| # approximating a native required check. `completed` then re-evaluates it (last-writer-wins; see docs/CI-GATE.adoc, "Residual limit"). | ||
| # | ||
| # The required-check list is NOT in this repository: it lives in | ||
| # proven-cicd-and-workflows/profiles/ci-gate/<owner>/<repo>.json at the pinned | ||
| # SHA below, selected by github.repository. A repository with no profile there | ||
| # fails the gate closed until one is added to the suite. | ||
| # | ||
| # The job id MUST stay `gate`. The pin is a full SHA, never `@main` or a tag: | ||
| # the account enforces sha_pinning_required. An A3 `estate-gate` replaces this | ||
| # interim gate by changing ONE pin and ONE context (`with: context`) here. | ||
| # | ||
| # ONBOARDED in actions.lock (workflow key plus a leaf dependency record for the | ||
| # suite reusable) because this repository's lock-sync gate requires every | ||
| # job-level reusable ref to be keyed there; see the suite README, "Consumers | ||
| # with a lock-sync gate". The record's ref is the symbolic `main`, never the SHA. | ||
| # | ||
| # There is deliberately NO `concurrency:` block: serialising per SHA would delay the | ||
| # in_progress caller behind a running evaluation that then writes a stale success. Instead the | ||
| # reusable re-reads the runs just before it writes and re-evaluates when they moved | ||
| # (scripts/ci-gate-publish.sh; tests/ci-gate.sh asserts the template has no concurrency). | ||
| # | ||
| # No `secrets:` line: the reusable consumes none. | ||
| name: CI gate | ||
|
|
||
| on: | ||
| pull_request: | ||
| workflow_run: | ||
| workflows: ["**", "!CI gate"] | ||
| types: [completed, in_progress] | ||
| schedule: | ||
| - cron: "7,22,37,52 * * * *" | ||
| workflow_dispatch: {} | ||
|
|
||
| permissions: | ||
| statuses: write | ||
| actions: read | ||
| contents: read | ||
| pull-requests: read | ||
|
|
||
| jobs: | ||
| gate: | ||
| if: github.event_name != 'pull_request' && (github.event_name != 'workflow_run' || github.event.workflow_run.name != 'CI gate') | ||
| uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/ci-gate.yml@4e9e680b0dfd842a457cf23271f9e005a88f766c # cicd-suite ci-gate | ||
| with: | ||
| context: "CI/gate" | ||
| # timeout_minutes: 180 # how long a missing check keeps the gate pending | ||
|
|
||
| # The pull_request start. workflow_run, schedule and workflow_dispatch run only from the default | ||
| # branch, so without this job the pull request that adds or changes the gate never gets the status | ||
| # and a ruleset requiring it blocks that very pull request. This job runs from the pull request's own | ||
| # branch and posts the same verdict, waiting (bounded) for the checks named in the profile to report. | ||
| # Same-repository branches only: a fork's or Dependabot's pull_request token cannot write statuses, | ||
| # and those are covered by the workflow_run job. No trust decision uses github.actor. | ||
| # Because a pull request can edit this file, the Gate tamper guard (ci-gate-tamper-guard.yml, run from | ||
| # the default branch) fails a pull request that touches gate files unless the owner has approved it. | ||
| gate-pr: | ||
| if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | ||
| uses: hyperpolymath/proven-cicd-and-workflows/.github/workflows/ci-gate.yml@4e9e680b0dfd842a457cf23271f9e005a88f766c # cicd-suite ci-gate | ||
| with: | ||
| context: "CI/gate" |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.