Repository navigation
fix(github): report total inline suggestion fallback failure - #3232
Merged
IsmaelMartinez merged 1 commit intoSep 9, 2026
Merged
IsmaelMartinez merged 1 commit into
IsmaelMartinez merged 1 commit into
Conversation
Contributor
Author
|
/agentic_review |
Contributor
IsmaelMartinez
approved these changes
Sep 9, 2026
IsmaelMartinez
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, and threading a real count back through the fallback is the right shape: the caller can now tell "nothing to do" from "everything failed", which is what made the old unconditional True misleading.
Suite 4389 to 4395, and the revert probe is red at 3 failed and 36 passed. #3219 does the same for CodeCommit and Gerrit, so the two together close the family.
This was referenced Sep 9, 2026
Closed
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.
Title
fix(github): report total inline suggestion fallback failure
Description
Fixes #3223
Summary
Fix GitHub code-suggestion publication reporting when the initial batch review fails with HTTP 422 and the verification fallback drops every comment.
Previously,
GithubProvider.publish_code_suggestions()returnedTruewheneverpublish_inline_comments()completed without raising, even if the 422 fallback ultimately published zero comments. This causedPRCodeSuggestionsto treat the run as successful and skip its existing retry path.Changes
_publish_inline_comments_fallback_with_verification().Falsewhen the 422 fallback publishes zero comments.Truefor partial fallback success to avoid duplicate retries of suggestions that already landed.publish_code_suggestions()return the actual result frompublish_inline_comments()instead of unconditionally returningTrue.Scope
This change is intentionally limited to the GitHub provider.
It does not modify:
PRCodeSuggestionsValidation
tests/unittest/test_github_provider_comments.py: 39 passedtests/unittest/test_inline_comment_dedup.py: 41 passedgit diff --check: clean