Fix PR AI review for MIMO gateway#202
Merged
Merged
Conversation
PR AI Review / PR AI 语义预检中文
AI 语义预检未得到可解析结果,需要 maintainer 人工审核。 影响范围
黄金链路
风险项
测试缺口
English
AI semantic review did not return a parseable result; maintainer review is required. Affected Areas
Golden Path
Findings
Test Gaps
|
PR Preflight Summary / PR 预检汇总中文
English
PR Policy Preflight / PR 规则预检PR Policy Preflight / PR 规则预检中文
规则命中
English
Findings
PR Flutter Quality / Flutter 质量预检PR Flutter Quality / Flutter 质量预检中文
English
Flutter Analyzer Baseline
No new analyzer issues introduced by this PR. Flutter Test Baseline
No new Flutter test failures introduced by this PR. |
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.
What changed
PR AI ReviewClaude Code runs tomimo-v2.5-profor the configured MIMO Anthropic-compatible gateway.--json-schemadependence because the gateway/model completes successfully but does not populate Claude Agent SDKstructured_output.scripts/extract_claude_structured_review.pyto extract the final review JSON from Claude Code Action'sexecution_file.pull_request_targeton trusted default-branch checkout, while allowingworkflow_dispatchbranch testing to checkout the selected ref.Why
Manual testing on #198 showed the initial workflow could run but fell back to "AI review unavailable":
API Error: 400 Param Incorrectwith the gateway;structured_outputstayed empty;execution_fileproduced the intended structured AI review result.Validation
python3 -m unittest tests.tools.test_extract_claude_structured_review tests.tools.test_pr_ai_review_report tests.tools.test_pr_policy_check tests.tools.test_pr_preflight_summary_commentpython3 -m py_compile scripts/extract_claude_structured_review.py scripts/pr_ai_review_report.py scripts/pr_policy_check.py scripts/pr_preflight_summary_comment.pygit diff --checkruby -e 'require "yaml"; YAML.load_file(".github/workflows/pr-ai-review.yml"); puts "ok"'Result from #198 smoke test
lowfalsepossible/record_capture