Repository navigation
fix(github): Let PR descriptions keep the failure that the change fixes - #4619
Closed
sentry-junior[bot] wants to merge 3 commits into
Closed
sentry-junior[bot] wants to merge 3 commits into
sentry-junior[bot] wants to merge 3 commits into
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This comment has been minimized.
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.
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. |
This branch was successfully 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.
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
bodyparam 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
bodyparam rules and the GitHub plugin docs say the same.Bodies that list the tests a PR adds are still rejected, on purpose.
via ale.
--
View Session [Sentry]