Skip to content

Let cancelled CI runs stop benchmark summaries - #863

Merged
jpsamaroo merged 1 commit into
masterfrom
jps/fix-benchmark-summary-cancellation
Dec 2, 2026
Merged

jpsamaroo merged 1 commit into
masterfrom
jps/fix-benchmark-summary-cancellation

Conversation

@jpsamaroo

Copy link
Copy Markdown
Member

The combined benchmark summary remained eligible after obsolete PR workflows were cancelled, keeping their per-ref concurrency slots occupied and delaying replacement runs. Guard the summary with !cancelled() so ordinary benchmark failures still produce a report while cancelled workflows can finish. The existing PR event filter remains in place.

This follows GitHub's documented status-check semantics. Validation: all nine existing benchmark report/comment Node tests pass in an isolated sandbox, parsed YAML differs only at this job condition, and git diff --check passes. Actionlint is unavailable; no new hosted cancellation experiment is claimed.

Written by an AI agent on jpsamaroo's review feedback.

The combined summary used always(), so obsolete PR runs could keep a queued
summary eligible after cancellation and hold the per-ref concurrency slot.
This delayed replacement runs for #817 and #819 until the old runs were
force-cancelled.

Use GitHub's documented !cancelled() status condition. It still permits the
summary after ordinary upstream benchmark failures without keeping the job
eligible when the workflow is cancelled. Keep the PR event filter and all
concurrency, permissions, benchmark jobs and reporting steps unchanged.

Validation: all nine existing benchmark report/comment Node tests pass in a
credential-free, network-isolated sandbox; parsed YAML differs only at the
summary job predicate; git diff --check passes. No new hosted cancellation
experiment is claimed, and actionlint is unavailable.

Written by an AI agent on jpsamaroo's review feedback.
@jpsamaroo
jpsamaroo merged commit 67f586b into master Dec 2, 2026
55 of 61 checks passed
@jpsamaroo
jpsamaroo deleted the jps/fix-benchmark-summary-cancellation branch December 2, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant