Repository navigation
ci(acceptance): Re-run on the override selective testing label - #131408
Merged
Merged
Conversation
Adding the Trigger: Override Selective Testing label now starts a full acceptance run without a new push. Other label events skip the run, use their own concurrency group, and report under a different check name. A skipped job counts as passing, so this keeps them from replacing a real Acceptance result. Refs DI-2885 Co-Authored-By: Joshua Li <[email protected]>
joshuarli
approved these changes
Nov 17, 2026
joshuarli
marked this pull request as ready for review
November 17, 2026 00:20
jan-auer
added a commit
that referenced
this pull request
Nov 17, 2026
…-store * ref/inline-payload-defaults: (2542 commits) feat(classifiers): Support search syntax in classifier list query (#131423) ref(settings): Update settings tour entry copy (#131424) fix(conversations): Track tab switch from the View Timeline button (#131196) ref(sourcemaps): Read has_debug_ids in the source map debugger (#130425) ci(acceptance): Re-run on the override selective testing label (#131408) feat(inbox): Include inbox URLs in item responses (#131406) ref(flags): Remove `organizations:jira-explicit-mapping-removals` (frontend) (#130393) ci(acceptance): Select acceptance tests on pull requests (#131325) fix(audit-log): Render legacy internal integration token entries (#131042) ref(api): Drop the isRecord guard from SentryApiError body reads (#131394) ref: bump sentry-protos to 0.120.1 (#131396) feat(inbox): add URL configuration for inbox events (#131336) fix(circuit-breaker): Don't raise from record_error or record_success when redis fails (#131364) fix(redis): Let cluster client_args set the per-node connection limit (#131355) fix(sentry-apps): Stop retrying service hooks to blocked or unreachable URLs (#131171) fix(charts): Stop tooltip errors when a chart refresh removes series (#131341) perf(crons): Make the check-in timeout index partial (#131376) feat(api): Know per-operation error codes and read top-level codes (#131362) feat(api): Generate error codes and challenge fields from the spec (#131287) feat(apidocs): Mark auth-challenge error codes in the error component (#131346) ... # Conflicts: # src/sentry/conf/server.py # src/sentry/event_manager.py # src/sentry/ingest/consumer/attachment_event.py # src/sentry/ingest/consumer/processors.py # src/sentry/processing/backpressure/topology.py # src/sentry/tasks/store.py # tests/sentry/ingest/ingest_consumer/test_ingest_consumer_kafka.py # tests/sentry/ingest/ingest_consumer/test_ingest_consumer_processing.py # tests/sentry/processing/backpressure/test_checking.py # tests/sentry/processing/backpressure/test_monitoring.py # tests/sentry/tasks/test_post_process.py # tests/sentry/tasks/test_store.py # tests/sentry/tasks/test_symbolication.py
joshuarli
added a commit
that referenced
this pull request
Nov 19, 2026
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 <!-- junior-request-attribution:start --> via @joshuarli. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3ACTJL7358X%3A1795105768.817939 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3ACTJL7358X%3A1795105768.817939) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3ACTJL7358X%3A1795105768.817939/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Joshua Li <[email protected]>
xb18
pushed a commit
to xb18/sentry
that referenced
this pull request
Nov 22, 2026
…defaults * origin/master: (2542 commits) feat(classifiers): Support search syntax in classifier list query (getsentry#131423) ref(settings): Update settings tour entry copy (getsentry#131424) fix(conversations): Track tab switch from the View Timeline button (getsentry#131196) ref(sourcemaps): Read has_debug_ids in the source map debugger (getsentry#130425) ci(acceptance): Re-run on the override selective testing label (getsentry#131408) feat(inbox): Include inbox URLs in item responses (getsentry#131406) ref(flags): Remove `organizations:jira-explicit-mapping-removals` (frontend) (getsentry#130393) ci(acceptance): Select acceptance tests on pull requests (getsentry#131325) fix(audit-log): Render legacy internal integration token entries (getsentry#131042) ref(api): Drop the isRecord guard from SentryApiError body reads (getsentry#131394) ref: bump sentry-protos to 0.120.1 (getsentry#131396) feat(inbox): add URL configuration for inbox events (getsentry#131336) fix(circuit-breaker): Don't raise from record_error or record_success when redis fails (getsentry#131364) fix(redis): Let cluster client_args set the per-node connection limit (getsentry#131355) fix(sentry-apps): Stop retrying service hooks to blocked or unreachable URLs (getsentry#131171) fix(charts): Stop tooltip errors when a chart refresh removes series (getsentry#131341) perf(crons): Make the check-in timeout index partial (getsentry#131376) feat(api): Know per-operation error codes and read top-level codes (getsentry#131362) feat(api): Generate error codes and challenge fields from the spec (getsentry#131287) feat(apidocs): Mark auth-challenge error codes in the error component (getsentry#131346) ... # Conflicts: # tests/sentry/ingest/ingest_consumer/test_ingest_consumer_processing.py # tests/sentry/tasks/test_reprocessing2.py # tests/sentry/tasks/test_store.py # tests/sentry/tasks/test_symbolication.py
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.
Adding
Trigger: Override Selective Testingto a pull request now starts a full acceptance run right away. Before, it only took effect on the next push, because thepull_requesttrigger inacceptance.ymlleft outlabeled.Workflow triggers can't filter by label name, so every label event starts a run:
detect what files changedis skipped, so every acceptance job skips.Acceptance (ignored label event).GitHub counts a job skipped by a condition as passing for required checks. A skipped job named
Acceptancecould replace a real failure, or a run still in progress, on the same commit. The rename keeps ignored runs off theAcceptancecheck.Trade-offs:
ifand jobnamecan't read workflowenv.Open question: none of the
labeledpaths has run on a real label event yet.Related: #131325, #131325 (comment)
Refs DI-2885
via @joshuarli.
--
View Session [Sentry]