Skip to content

Use !cancelled() in required-status-check#18296

Closed
trask wants to merge 1 commit into
open-telemetry:mainfrom
trask:pr-workflow-alt
Closed

Use !cancelled() in required-status-check#18296
trask wants to merge 1 commit into
open-telemetry:mainfrom
trask:pr-workflow-alt

Conversation

@trask

@trask trask commented Apr 25, 2026

Copy link
Copy Markdown
Member

Simpler alternative to #18295

When the build is cancelled by concurrency (e.g. a 'test *' label
triggers a rebuild via rebuild-pull-request-on-label.yml), the
superseded run's required-status-check used to run with always() and
report failure (because needs.*.result was 'cancelled'). Branch
protection then showed the PR as red until the rebuild completed.

Switching to !cancelled() makes the superseded check-run be reported
as skipped instead, and branch protection resolves the same-named
check from the rebuild.
@trask trask added the test native This label can be applied to PRs to trigger them to run native tests label Apr 25, 2026
@trask trask closed this Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant