mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-26 18:04:31 +01:00
Reused CI runs that passed only after a re-run are now marked instead of shown as clean passes (GST-3054) (#4473)
When /ship reuses a CI run that passed only after its failed jobs were re-run, its CI line and its final summary line now add `rerun= attempts=`. Why: gbrain's CI now records which test files passed on a re-run (gbrain#9690), and a pass on a re-run must read as flaky, never as clean. Nothing to do: runs without that record print as before; a malformed record is refused with `CI_CARRY_RERUN_MALFORMED`. 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/outside-voice#2 reader=outside-voice Review-Finding: p1/adversarial-native#2 reader=adversarial-native Review-Finding: p1/red-team#1 reader=red-team
This commit is contained in:
1 parent
237371474b
commit
0a6bb42e74
17 files changed
+270
-17
No files matched your search
@@ -7251,6 +7251,23 @@ pass the `gstack-review-scope summary` file as `--review-loop`, put the printed
|
||||
line in the PR body, and write again
|
||||
([ship-policy.md](ship-policy.md#ship-receipt)).
|
||||
|
||||
<a id="ci-carry-rerun-malformed"></a>
|
||||
### `CI_CARRY_RERUN_MALFORMED`
|
||||
|
||||
**Meaning.** A CI run's `tree.json` names `rerun_files` or `attempts`, the
|
||||
fields that say some test files passed only on a re-run attempt, but in a shape
|
||||
gstack cannot read: `rerun_files` is not a list of file paths, or `attempts` is
|
||||
not a list of attempt numbers of 1 or more. gstack fails closed: that run is not
|
||||
evidence, the carry refuses it (`rerun_malformed` in the `CI_CARRY: none` or
|
||||
`no_verified_run` detail), and the lane runs here instead. A well-formed record
|
||||
is accepted and marked `rerun=<files> attempts=<list>`
|
||||
([ship-policy.md](ship-policy.md#ci-carry-rerun)).
|
||||
|
||||
**Fix.** Fix the workflow step that writes `tree.json` so it writes
|
||||
`"rerun_files": ["test/a.test.ts", …]` and `"attempts": [1, 2]`, or leaves both
|
||||
out. Then dispatch a fresh run at the same head and rerun
|
||||
`gstack-ci-carry wait`.
|
||||
|
||||
<a id="receipt-carry-tree-mismatch"></a>
|
||||
### `RECEIPT_CARRY_TREE_MISMATCH`
|
||||
|
||||
|
||||
Reference in new issue
Block a user