ci(selective): force Seer public API matrix on publish_status edits - #122950
Draft
sentry-junior[bot] wants to merge 3 commits into
Draft
ci(selective): force Seer public API matrix on publish_status edits#122950sentry-junior[bot] wants to merge 3 commits into
sentry-junior[bot] wants to merge 3 commits into
Conversation
Selective testing only follows coverage and static imports, so flipping an endpoint to ApiPublishStatus.PUBLIC can land green on PRs while master fails the Seer agent-token public-mutation matrix. Detect publish_status in changed source files and always include that matrix test. Co-Authored-By: Dan Fuller <dfuller@sentry.io>
Co-Authored-By: Dan Fuller <dfuller@sentry.io>
Replace content scanning for publish_status with a path trigger on src/sentry/**/endpoints/**.py so selection stays path-based like the rest of this script. Co-Authored-By: Dan Fuller <dfuller@sentry.io>
wedamija
approved these changes
Aug 27, 2026
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.
Summary
When a PR only flips
publish_statustoPUBLIC(no handler rewrite), selective testing often never importstests/sentry/seer/endpoints/test_organization_agent_token.py. Master still runs the full Seer public-mutation matrix, which auto-discovers every PUBLIC mutation and fails if the endpoint 404s behind a feature/plan gate.That gap greened the issue-views publish PRs and then broke Backend on master (and blocked s4s2 checks).
Change
If any changed non-test
.pyfile declarespublish_status, always include:tests/sentry/seer/endpoints/test_organization_agent_token.pyTest plan
test_compute_sentry_selected_tests.py(62 passed)Context
OrganizationGroupSearchViewsEndpointPOSTRequested by dan.
--
View Junior Session [Sentry]