Repository navigation
ci: Add the fact sheet for the PR classifiers - #8392
Conversation
The PR classifiers label a pull request's risk from a map of this repository's paths: which ship, where that code runs, and which are tests, docs or build configuration. That map lived in the internal classifiers repository and now lives here, so it can change together with the code it describes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Coverage Results 📊✅ 59457 passed | ⏭️ 3119 skipped | Total: 62576 | Pass Rate: 95.02% | Execution Time: 158m 2s 📊 Comparison with Base Branch
➖ Removed Tests (1)View removed tests
All tests are passing successfully. ✅ Patch coverage is 100.00% (no changed executable lines found; target 80%). Coverage diff@@ Coverage Diff @@
## master #8392 +/-##
==========================================
Coverage 90.12% 90.12% —%
==========================================
Files 201 201 —
Tracked lines 22199 22199 —
Branches 7784 7784 —
==========================================
Hits 20005 20005 —
Misses 2194 2194 —
- Partials 1282 1283 +1Generated by Coverage Action |
|
|
||
| [[kind]] | ||
| paths = ["scripts/**", "pyproject.toml", "setup.py", "MANIFEST.in", "renovate.json", ".python-version"] | ||
| kind = "build-release" |
There was a problem hiding this comment.
Shipping script classified as build-release
Medium Severity
scripts/** is labelled build-release, so it also matches scripts/init_serverless_sdk.py. That file is copied into the AWS Lambda layer customers run and is listed as shipping in the first [[area]], but it is not shared_core. A non-shipping kind on that path can let Lambda handler-only changes be labelled risk: low.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit bf23b2c. Configure here.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ac58dc9. Configure here.
| "setup.py", "pyproject.toml", "uv.lock", | ||
| ] | ||
| families = ["server"] | ||
| shared_core = true |
There was a problem hiding this comment.
Lockfile marked as shared core
Medium Severity
uv.lock is listed in the shared-core shipping [[area]], so lockfile-only changes are treated as code every customer inherits. This file only pins dev, test, and docs groups; published install_requires live in setup.py, and the Lambda layer install does not consume the lockfile. Renovate lockfile bumps would therefore get a high-risk shared-core label.
Reviewed by Cursor Bugbot for commit ac58dc9. Configure here.
### Description Adds `.github/workflows/pr-classifiers.yml`, which runs the shared `getsentry/github-workflows/pr-classifiers` action (getsentry/github-workflows#188), the same workflow as the other backend SDK repositories. It gives every pull request an advisory risk label (`risk: low`, `risk: medium` or `risk: high`) and keeps one summary comment that explains the label. The label is only a hint. It approves nothing and should not become a required check. The action gets a short-lived GitHub App token that can only read the internal getsentry/classifiers repository, checks it out at a pinned commit and runs the classifier from there. It never checks out or runs code from the pull request. The action is pinned to a full commit SHA. **Merge order:** merge #8392 (the fact sheet at `.github/classifiers.toml`) first. The classifier reads the fact sheet from the pull request's base branch and skips repositories without one. **Before merging**, this repository needs the `CLASSIFIERS_APP_CLIENT_ID` Actions variable, the `CLASSIFIERS_APP_KEY` and `AI_GATEWAY_API_KEY` Actions secrets, and the classifiers GitHub App's access to getsentry/classifiers. Without them, every PR shows a failing (non-required) "PR classifiers" check. The workflow runs on `pull_request_target`, so it does not run with this change on this PR and takes effect after merge. To undo it, revert this PR. #skip-changelog <!-- junior-request-attribution:start --> via @dingsdax. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3Ad53e7f3f9d4c1313e2fafc28 --> -- [View Session](https://junior-prod.sentry.dev/conversations/local%3Aweb%3Ad53e7f3f9d4c1313e2fafc28) [[Sentry]](https://sentry.sentry.io/explore/conversations/local%3Aweb%3Ad53e7f3f9d4c1313e2fafc28/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: johdax <114897+dingsdax@users.noreply.github.com>


Add
.github/classifiers.toml, the fact sheet the PR classifiers use to label a pull requestrisk: low,risk: mediumorrisk: high.The fact sheet maps this repository's paths: which ship to customers, where that code runs, what is shared core, and which files are tests, samples, docs, dependencies or build configuration. It used to live in the internal getsentry/classifiers repository, where every change to it needed a pull request from someone outside this team. It now lives next to the code it describes (getsentry/classifiers#12).
This repository does not run the PR classifiers workflow yet, so this file has no effect until that workflow is added.
Things to know as its new owners:
**/test/**.#skip-changelog
🤖 Generated with Claude Code