Skip to content

ref(ci): Always run apidocs error code tests in selective testing - #131482

Merged
joshuarli merged 1 commit into
masterfrom
ref/selective-tests-always-run-error-codes
Nov 17, 2026
Merged

joshuarli merged 1 commit into
masterfrom
ref/selective-tests-always-run-error-codes

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

tests/sentry/apidocs/test_error_codes.py (added in #131285) reads SentryAPIException subclass source with ast instead of executing it, so selective selection can't map exception edits to it. This adds it to ALWAYS_RUN_TESTS, next to similar source-parsing entries.

via @joshuarli.

--

View Session [Sentry]

test_error_codes.py finds SentryAPIException subclasses at collection
time and parses their __init__ source instead of running it, so coverage
can't link an exception change to this test.

Co-Authored-By: Joshua Li <[email protected]>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 17, 2026
@joshuarli
joshuarli marked this pull request as ready for review November 17, 2026 19:51
@joshuarli
joshuarli requested a review from a team as a code owner November 17, 2026 19:51
@sentry-junior
sentry-junior Bot requested a review from joshuarli November 17, 2026 19:51
@joshuarli
joshuarli merged commit 72575a9 into master Nov 17, 2026
72 checks passed
@joshuarli
joshuarli deleted the ref/selective-tests-always-run-error-codes branch November 17, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant