Repository navigation
ci(format): Fail Format Code when it had to format code - #6824
Open
runningcode wants to merge 1 commit into
Open
runningcode wants to merge 1 commit into
runningcode wants to merge 1 commit into
Conversation
Format Code pushed a formatting commit and then passed, so unformatted code showed a green check and the job could not gate a merge. It now fails after pushing the fix. The push uses GITHUB_TOKEN, which starts no workflows, so the formatting commit is checked once the author pushes again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
Contributor
|
can we make it start workflow runs? 👀 I believe we solved it in the main sentry repo with frontend/backend formatting job somehow |
runningcode
marked this pull request as ready for review
December 1, 2026 16:21
runningcode
requested review from
markushi and
romtsn
and removed request for
a team
December 1, 2026 16:21
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.
📜 Description
Format Code now fails when it had to format code. It still pushes the formatting commit as before, then exits 1 with an error that says to pull that commit and push again.
💡 Motivation and Context
Until now, Format Code pushed a fix and then passed, so a PR with unformatted code showed a green check. That means the job can't be made a required check: it never fails on the problem it exists to catch.
We want automated review where LLM reviewers never comment on what a formatter decides, and that only works if formatting is enforced.
The push uses
GITHUB_TOKEN, and pushes made with it don't start workflow runs. So the formatting commit gets no checks until the author pushes again, which is how it already worked; the error message now says so.💚 How did you test it?
bash -non the script. The failing path only runs on a PR with unformatted code.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Make Format Code a required check in the
mainruleset. Today onlyBuild Job ubuntu-latestandenforce-license-complianceare required.🤖 Generated with Claude Code
#skip-changelog