mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 17:41:35 +01:00
/ship can clear its test gate from CI on a branch stacked on another branch (GST-3381) (#4689)
When a branch is stacked on another branch, /ship can now clear its test gate from a green CI run instead of refusing with `base_mismatch`. Teams that ship stacked branches were stuck: the record named the stacked base, but the check read run profiles from the default branch. Nothing to do: branches based on main behave exactly as before. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/adversarial-native#3 reader=adversarial-native
This commit is contained in:
1 parent
54723680fc
commit
9d9ba2f057
6 files changed
+154
-17
No files matched your search
+5
-2
@@ -963,8 +963,11 @@ once:
|
||||
|
||||
Then, for the lane:
|
||||
|
||||
- pregate.json was recorded against this repository's base, whose profiles
|
||||
apply (`base_mismatch` otherwise).
|
||||
- The run profiles come from the base pregate.json was recorded against (its
|
||||
`base` field), so a branch stacked on another branch clears from that
|
||||
branch's profiles, and so does the CI carry inside a `--base <branch>` run.
|
||||
`clear --base <branch>` naming any other branch refuses (`base_mismatch`).
|
||||
A stamp-only substitution still reads `origin/HEAD`'s stamp rule, as above.
|
||||
- Each profile gets its own run (a run id given twice is a usage error), and
|
||||
every run verifies under its profile. The assignment is searched, so a run
|
||||
valid for two profiles cannot starve the other. A lane with a profile needs
|
||||
|
||||
@@ -5035,8 +5035,9 @@ as attested rather than validated.
|
||||
|
||||
`gstack-pregate clear --run <id|url>` refusals use this code too: the line
|
||||
reads `gstack-pregate clear: receipt refused — REUSE: refused reason=<code> —
|
||||
…`, and the GitHub Actions runs offered did not verify against the base
|
||||
branch's `run_profiles`. Each reason code and
|
||||
…`, and the GitHub Actions runs offered did not verify against the
|
||||
`run_profiles` of the base `pregate.json` was recorded against (`--base`
|
||||
naming another branch refuses `base_mismatch`). Each reason code and
|
||||
what it checks is listed in [run evidence](pregate.md#run-evidence).
|
||||
|
||||
`gstack-pregate clear --remote <workflow.yml/job> --run-url <url>` on a lane
|
||||
|
||||
Reference in new issue
Block a user