Skip to content

Commit ed2c188

Browse files
EvangelinkCopilot
andauthored
Fix agentic review failures on large PR diffs and stale test-quality assertion (#12560)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent f934651 commit ed2c188

6 files changed

Lines changed: 24 additions & 10 deletions

File tree

‎.github/scripts/test_gh_aw_runtime_contracts.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,11 @@ def test_centralized_review_number_is_delivered_to_each_compiled_prompt(self) ->
740740

741741
def test_required_diff_failure_has_terminal_incomplete_prompt_delivery(self) -> None:
742742
prompt = " ".join(authored("shared/review-shared.md")[1].split())
743-
self.assertIn("If the required diff cannot be read, call `report_missing_data` with the concrete reason, "
744-
"then `report_incomplete`, and stop without claiming that the review was delegated or completed.", prompt)
743+
self.assertIn("If `get_diff` fails only because the response exceeds the MCP size limit", prompt)
744+
self.assertIn("call `pull_request_read` with `method: \"get_files\"` and a small `perPage`", prompt)
745+
self.assertIn("Only if the changed-file list or the patches of hand-authored files cannot be read, "
746+
"call `report_missing_data` with the concrete reason, then `report_incomplete`, "
747+
"and stop without claiming that the review was delegated or completed.", prompt)
745748
for index, name in enumerate(CONSUMERS):
746749
with self.subTest(case=f"consumer_{index}"):
747750
document = compiled(name)

‎.github/workflows/review-after-autofix.agent.lock.yml‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/review-on-open.agent.lock.yml‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)