Skip to content

fix(github): Let PR descriptions keep the failure that the change fixes - #4619

Closed
sentry-junior[bot] wants to merge 3 commits into
mainfrom
fix/pr-description-check-failure-evidence
Closed

sentry-junior[bot] wants to merge 3 commits into
mainfrom
fix/pr-description-check-failure-evidence

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Refs #4611.

The PR description check from #3217 rejects bodies with check results, test plans, work logs or request talk. Most of its rejections are intended. This PR fixes one kind that is not: it also rejects evidence of the failure that the change fixes.

Root cause. The "check results" question counts any report of how tests or CI went, "locally or in CI". For a bug or flaky-test fix, the failing CI runs, the failure rate and the repro are the reason for the change. So the check rejects them, and the next body drops them. Flaky-test fixes hit a rejection far more often than other PRs. The fix text ("Remove check results … and commands") does not say what to keep. The body param rules from #3668 say "omit your own test or CI results", but the question has no "own" limit, so a body that follows the rules can still fail.

Example: the second body of #4063 linked the two CI runs that failed on main, and the check rejected it. The body that passed had no failing run in it.

Change

Bodies that list the tests a PR adds are still rejected, on purpose.

via ale.

--

View Session [Sentry]

The description check rejected the failing CI runs, failure rates, and
repros that explain why a test or CI fix is needed, and its fix told the
agent only to remove check results. The check now counts only the
author's own runs on the change, and the fix says to keep the failure
evidence.

Refs #4611

Co-Authored-By: ale <alexandra.cota@sentry.io>
@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 27, 2026 4:02pm UTC

Request Review

@blacksmith-sh

This comment has been minimized.

"Attribution and the footer are added" made the create and update PR
tools match "add" in tool search, which changed the candidates for
"add a comment to an issue". Say "appends" again.
The work log question also rejected the failed runs and repro of a
flaky test fix on some runs, so say that failure evidence does not
count there either.
@sentry-junior

sentry-junior Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Closing: the impact is too small to spend review time on. No PRs were lost, only a few extra calls and thinner bug-fix descriptions.

@sentry-junior sentry-junior Bot closed this Nov 27, 2026

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 8568f23e Deployed Nov 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants