Skip to content

[v3-4-test] Keep cancelled CI runs from showing a failed CI passed check (#75720) - #75738

Merged
potiuk merged 1 commit into
apache:v3-4-testfrom
shahar1:backport-8eb5357-v3-4-test
Oct 27, 2026
Merged

potiuk merged 1 commit into
apache:v3-4-testfrom
shahar1:backport-8eb5357-v3-4-test

Conversation

@shahar1

@shahar1 shahar1 commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Backport of #75720 to v3-4-test. The automatic backport failed, but the commit cherry-picks cleanly.

v3-4-test has the same !cancelled() step from #75578 (backported in #75618), so cancelled duplicate runs show a failed "CI passed (run cancelled)" check there too. This moves the timeout check into the check-timed-out-jobs job, same as on main.

(cherry picked from commit 8eb5357)


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Opus 5.5

Generated-by: Claude Opus 5.5 following the guidelines

…eck (apache#75720)

* Keep cancelled CI runs from showing a failed CI passed check

The step meant to fail CI passed when a job hit its timeout tested
`!cancelled()`. Inside the `always()` gate job, a step's `cancelled()` is
false even when the run itself was cancelled, because the job starts after
the cancellation. So every duplicate run that concurrency cancelled, and
every run cancelled by hand, showed a failed "CI passed (run cancelled)"
check next to the passing run of the same commit (runs 40442992585 and
40453574496).

Only a job-level `if` sees that the run was cancelled, so the timeout check
moves into a job of its own. A job that hits its timeout while the run goes
on still fails the gate, which the scheduled canary's Slack report relies
on, and the failed check is now the required CI passed instead of
"CI passed (run cancelled)".

* Check the timed-out-jobs needs only when that job exists

Removing check-timed-out-jobs alone already fails the hook, because the
gate still needs it. Requiring the job as well forced every existing test
case to carry it.

(cherry picked from commit 8eb5357)
@potiuk
potiuk merged commit 1409c90 into apache:v3-4-test Oct 27, 2026
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants