Skip to content

ci: Add the fact sheet for the PR classifiers - #8392

Merged
sentrivana merged 2 commits into
masterfrom
ci/classifiers-fact-sheet
Nov 26, 2026
Merged

sentrivana merged 2 commits into
masterfrom
ci/classifiers-fact-sheet

Conversation

@stephanie-anderson

Copy link
Copy Markdown
Contributor

Add .github/classifiers.toml, the fact sheet the PR classifiers use to label a pull request risk: low, risk: medium or risk: 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:

  • The classifier reads this file from a pull request's base branch, never from the pull request itself, and a pull request that changes this file is never labelled low.
  • The file was written against the commit named on its first line. Paths added since then are unmapped, which is safe (an unmapped path blocks low) but worth a look while reviewing.
  • When you add a module, a test root or a build file in a new place, add it here in the same pull request. Non-shipping patterns (tests, samples, docs) should be anchored to the roots where those files really live, not written as **/test/**.

#skip-changelog

🤖 Generated with Claude Code

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>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 59457 passed | ⏭️ 3119 skipped | Total: 62576 | Pass Rate: 95.02% | Execution Time: 158m 2s

📊 Comparison with Base Branch

Metric Change
Total Tests —
Passed Tests 📈 +1
Failed Tests 📉 -1
Skipped Tests —

➖ Removed Tests (1)

View removed tests
  • test_openfeature_integration_threaded
    • File: tests.integrations.openfeature.test_openfeature

All tests are passing successfully.

✅ Patch coverage is 100.00% (no changed executable lines found; target 80%).
Project statement coverage is 90.12% (unchanged from base (80a9b6b) to head (ac58dc9)).

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        +1

Generated by Coverage Action

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 25, 2026 12:06
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner November 25, 2026 12:06

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread .github/classifiers.toml

[[kind]]
paths = ["scripts/**", "pyproject.toml", "setup.py", "MANIFEST.in", "renovate.json", ".python-version"]
kind = "build-release"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit bf23b2c. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Fix All in Cursor

❌ 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.

Comment thread .github/classifiers.toml
"setup.py", "pyproject.toml", "uv.lock",
]
families = ["server"]
shared_core = true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ac58dc9. Configure here.

sentrivana pushed a commit that referenced this pull request Nov 26, 2026
### 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>
@sentrivana
sentrivana enabled auto-merge (squash) November 26, 2026 09:05
@sentrivana
sentrivana merged commit 3d406f4 into master Nov 26, 2026
329 of 332 checks passed
@sentrivana
sentrivana deleted the ci/classifiers-fact-sheet branch November 26, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants