diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 562415d26..ade688048 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -399,7 +399,7 @@ jobs: needs: [benchmarks, benchmarks-distributed, benchmarks-mpi] runs-on: ubuntu-latest timeout-minutes: 10 - if: ${{ always() && github.event_name == 'pull_request' }} + if: ${{ !cancelled() && github.event_name == 'pull_request' }} permissions: contents: read steps: diff --git a/AGENTS.md b/AGENTS.md index ad8c5740e..697a7b346 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1217,3 +1217,12 @@ this section verbatim). Each entry is one bullet starting with `- `. the protocol alone is not enough for them. Test with a remote reader *and* a remote writer, in both orders: in one process every slot is the argument itself, so none of this is visible. + +109. **Report upstream failures without surviving workflow cancellation.** A + job guarded by `always()` remains eligible after cancellation. Superseded + PR runs were left queued on the combined benchmark summary and held their + per-ref concurrency slots; normal cancellation left that summary queued. + Use `!cancelled()` with the event condition for failure-reporting jobs. + This explicit status check still permits reports after ordinary upstream + failures, while allowing cancelled workflows to finish. Workflow-level + policy about which refs cancel older runs is a separate decision.