Repository navigation
Let cancelled CI runs stop benchmark summaries - #863
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 --checkpasses. Actionlint is unavailable; no new hosted cancellation experiment is claimed.Written by an AI agent on jpsamaroo's review feedback.