Repository navigation
Conversation
akhilp117
changed the base branch from
akhilpindiprolu/eng-8866-add-api-findings-scan
to
akhilpindiprolu/eng-8866-put-every-existing-api-flake-error
November 16, 2026 19:49
akhilp117
force-pushed
the
akhilpindiprolu/eng-9043-build-a-per-team-api-report-card-v0
branch
2 times, most recently
from
November 16, 2026 20:55
2f4dd66 to
33040d8
Compare
DominikB2014
approved these changes
Nov 17, 2026
DominikB2014
left a comment
Contributor
There was a problem hiding this comment.
lgtm, i'm not sure if we need so many tests, particularly for the format output as i imagine we'll iterate on that, but i suppose it's fine to keep
akhilp117
force-pushed
the
akhilpindiprolu/eng-8866-put-every-existing-api-flake-error
branch
from
November 18, 2026 03:51
6403615 to
a8383f4
Compare
akhilp117
force-pushed
the
akhilpindiprolu/eng-9043-build-a-per-team-api-report-card-v0
branch
from
November 18, 2026 03:54
33040d8 to
63ac012
Compare
Contributor
Sentry Snapshot Testing
|
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 63ac012. Configure here.
akhilp117
force-pushed
the
akhilpindiprolu/eng-8866-put-every-existing-api-flake-error
branch
from
November 18, 2026 04:34
dbba651 to
e3b773c
Compare
akhilp117
force-pushed
the
akhilpindiprolu/eng-9043-build-a-per-team-api-report-card-v0
branch
from
November 18, 2026 04:34
63ac012 to
da903bf
Compare
Base automatically changed from
akhilpindiprolu/eng-8866-put-every-existing-api-flake-error
to
master
November 18, 2026 04:48
akhilp117
force-pushed
the
akhilpindiprolu/eng-9043-build-a-per-team-api-report-card-v0
branch
from
November 18, 2026 04:49
147e306 to
c9f8fcd
Compare
akhilp117
deleted the
akhilpindiprolu/eng-9043-build-a-per-team-api-report-card-v0
branch
November 18, 2026 05:00
akhilp117
added a commit
that referenced
this pull request
Nov 18, 2026
…mpare (#131407) [Linear issue](https://linear.app/getsentry/issue/ENG-9065) The report card now reads `exceptions.json` instead of scanning `src/` every time, so it's instant and doesn't need the owner map or Redis (this PR is stacked on #131135) - Counts and owners come straight from each entry, so the report card shows exactly what's recorded in the file - `--compare older.json` shows what's new, fixed, or changed count since an older `exceptiuons.json`, grouped by team - `exceptions.json` now has a `generated` date at the top, so the report card can say when the file is from and what it's comparing against - Moved the entry helpers (`diff_entries`, `merge_entries`, `describe_entry`) into `entries.py` so the generator and the report card share them
BYK
added a commit
that referenced
this pull request
Nov 20, 2026
Refs #131073 Our OpenAPI docs drift from what endpoints actually return, and nothing catches it. This compares the responses tests get from **public** operations with the schema drf-spectacular generates from the code: - **S036**: the status isn't in the operation's `responses` - **S037**: the JSON body doesn't match that status's schema 304, 429 and 5xx are exempt: a 304 only answers a conditional request, the rate limiter can return a 429 from any endpoint, and a 5xx is a bug rather than part of the contract. S035 is taken by #130924. This stands alone and doesn't touch the API guidelines work in #131117 → #131088 → #131135 → #131407. Findings use the same signature (endpoint file, `EndpointClass.method`, `status:<code>`, owner) and entry shape as that stack's `exceptions.json`, which is where the baseline goes once the stack lands. The pytest plugin is opt-in, with two modes. Report mode records findings and annotates endpoints whose findings aren't baselined. Strict mode also fails the test that got one. The schema is generated while xdist workers start, so it always matches the code and doesn't need node. A new baseline tool adds a run's findings to a baseline file. It only touches the endpoint methods that run called, and keeps reviewed statuses. Backend CI runs in report mode, so nothing blocks merges. CI moves to strict mode together with the baseline. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3A3bcd89ea85721d16b9af505e --> -- [View Session](https://junior-prod.sentry.dev/conversations/local%3Aweb%3A3bcd89ea85721d16b9af505e) [[Sentry]](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A3bcd89ea85721d16b9af505e/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
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.

Linear issue
Stacked on #131117 (the shared scan and owner lookup) so that one needs review firstt.
This adds
make api-report-card, which shows each team its existing API lint findings, so every piece of API debt has a visible owner. It scanssrc/withcollect_findingsand finds each finding's team withowner_for. It doesn't need a baseline or any exceptions.What it prints
unowned, so a stale map is easy to spotunownedis always its own row, last, even when it's 0Options (through
ARGS)ARGS="--team issues-feed": that team's findings, one per line (file:line rule key in Class.method), sorted by file and lineARGS="--format markdown": the same table as markdown, for docs and PR commentsOn master today: 293 findings in 78 files across 18 teams, plus 24
unownedfindings in 7 files undersrc/sentry/core/endpoints/Not in v0: the legacy vs new split and statuses (they depend on how exceptions get stored), trends over time, and running in CI (which needs a decision on where the owner map comes from)