Repository navigation
ci: Add PR risk workflow - #8277
Draft
sentry-junior[bot] wants to merge 1 commit into
Draft
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Johannes Daxboeck <114897+dingsdax@users.noreply.github.com>
Contributor
Coverage Results 📊✅ 139266 passed | ⏭️ 7853 skipped | Total: 147119 | Pass Rate: 94.66% | Execution Time: 430m 26s All tests are passing successfully. ✅ Patch coverage is 100.00% (no changed executable lines found; target 80%). Coverage diff@@ Coverage Diff @@
## master #8277 +/-##
==========================================
- Coverage 90.24% 90.21% -0.03%
==========================================
Files 203 203 —
Tracked lines 27335 27335 —
Branches 10246 10246 —
==========================================
- Hits 24667 24660 -7
- Misses 2668 2675 +7
Partials 1559 1559 —Generated by Coverage Action |
This branch has not been deployed
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.
Why: this extends the PR risk experiment (already running in sentry-dotnet, junior, and toolkit) to sentry-python. Reviewers get an advisory
risk: low|medium|highlabel on each non-draft PR, so we can compare the signal across backend SDKs.How it works
main, the Jev classifier).github-scriptstep reads the JSON result and publishes the label. It skips publishing if the PR moved after classification, and it clears stale risk labels. The logic is the same as getsentry/toolkit'spr-risk-jev.yml.pull_request_targetgives fork PRs a write token for labels. No step checks out or runs PR code.editedtriggers a re-run because the title and description go into the classifier.Nothing here gates merges: the job is advisory and isn't a required check.
Open decision: the job needs an
AI_GATEWAY_API_KEYActions secret in this repo, and I couldn't check whether it's set. Without it, runs end unclassified and the advisory job fails.#skip-changelog
via @dingsdax.
--
View Session [Sentry]