Skip to content

fix(ci): Report Acceptance on every label event - #131904

Merged
joshuarli merged 1 commit into
masterfrom
ci/acceptance-report-on-label-events
Nov 19, 2026
Merged

joshuarli merged 1 commit into
masterfrom
ci/acceptance-report-on-label-events

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Since #131408, a label event other than Trigger: Override Selective Testing starts an acceptance run where every job skips and the aggregator reports as Acceptance (ignored label event). If that run is the newest acceptance run on a commit, the merge box keeps waiting for the required Acceptance check, even though an older run on the same commit passed. Re-running the older run doesn't help, because it is still not the newest run.

This hits PRs where a person adds a label after the last push. The common case is Seer and bot PRs that need Trigger: getsentry tests added again after each push. #131004, reported by @gggritso, is one example: Acceptance passed twice on its head commit, the PR is approved, and it still shows as blocked. #131456 shows the same pattern.

This change handles label events the way backend.yml already does:

  • They share the PR's concurrency group.
  • They run selective acceptance as usual.
  • They report Acceptance.

The override label keeps working, because skip_selective_testing still reads the PR's labels.

Trade-off: each manual label added to a PR now starts a selective acceptance run and cancels any run in progress, just like backend. #131408 used the ignored-label path to avoid that cost.

Open question: the claim that the merge box only counts the newest run per workflow is inferred from the check and merge state of the PRs above, not from GitHub docs.

Refs DI-2885

via @joshuarli.

--

View Session [Sentry]

A label event that isn't the override label started a run whose jobs all
skipped and whose aggregator reported as `Acceptance (ignored label
event)`. When that run was the newest acceptance run on a commit, the
merge box kept waiting for `Acceptance`, even though an older run on the
same commit passed. Re-running the older run didn't unblock it.

Label events now run like any other pull_request event and report
`Acceptance`, the same way backend.yml handles them.

Refs DI-2885

Co-Authored-By: Joshua Li <[email protected]>
@linear-code

linear-code Bot commented Nov 19, 2026

Copy link
Copy Markdown

DI-2885

@joshuarli
joshuarli marked this pull request as ready for review November 19, 2026 20:33
@joshuarli
joshuarli requested a review from a team as a code owner November 19, 2026 20:33
@joshuarli
joshuarli merged commit 43fe71a into master Nov 19, 2026
73 checks passed
@sentry-junior
sentry-junior Bot requested a review from joshuarli November 19, 2026 20:33
@joshuarli
joshuarli deleted the ci/acceptance-report-on-label-events branch November 19, 2026 20:33
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