mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-24 09:01:28 +01:00
A skipped CI run no longer blocks reusing a passing run on the same commit (GST-3514) (#4695)
When one commit gets two runs of the same workflow and the newer one skipped every job, the passing run can now be reused, and the CI wait no longer reports that commit red. gbrain hit this when a pull request run that skipped all its jobs, created in the same second as a passing manual run, blocked that passing run. Nothing to do: a newer failed, cancelled or still-running run still blocks reuse exactly as before. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=red-team
This commit is contained in:
1 parent
25bf93c4e2
commit
7530280407
6 files changed
+27
-3
No files matched your search
+5
-1
@@ -914,7 +914,11 @@ once:
|
||||
(`tree_mismatch` otherwise). The API answers with
|
||||
the newest attempt, so an earlier green attempt under a newer red one is
|
||||
refused, and the run is read again after the evidence is collected: a new
|
||||
attempt meanwhile is `run_changed`.
|
||||
attempt meanwhile is `run_changed`. A newer run of the same workflow on the
|
||||
head, of any event, vetoes it (`newer_run_vetoes`) when that run failed, was
|
||||
cancelled or is still running. A newer green run doesn't, and neither does a
|
||||
newer skipped run, which ran no job and so says nothing about the tree
|
||||
(GST-3514).
|
||||
- Every job the profile names appears exactly once in that attempt and
|
||||
succeeded. Jobs and runs are read across every page.
|
||||
- `tree.json` (an artifact of at most 8 MiB) names this run, attempt, event and
|
||||
|
||||
Reference in new issue
Block a user