Repository navigation
[CI][BugFix] Fix AI review startup for triage reviewers and stuck pending statuses - #23318
Conversation
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:
If CI fails, you can run linting and testing checks locally according Contributing and Testing. 🤖 How to trigger CI
Note Until the CI gate has run on a commit, the required Tip 💡 Consider Linking a Related Issue or RFCYour PR title contains the [BugFix] tag, indicating a bug fix or new feature. Linking a related issue or RFC in the PR description is strongly encouraged — it gives reviewers helpful context and speeds up the review. You can use any of these keywords:
🙏 Thanks for helping us keep the project well-organized! |
|
Last updated: 2026-11-26 10:48 UTC+8 for commit
|
What this PR does / why we need it?
AI review hit two problems on #23299. An allowlisted reviewer with the
triagerole applied theai-reviewlabel, but the bot rejected the request because the reviewer lacked repository write access. A later request passed authorization, butgit fetchfailed before the model started. The Actions job ended while the commit’sai-reviewstatus still showedpending. [Bot response](#23299 (comment)) · [Failed Actions job](https://github.com/vllm-project/vllm-ascend/actions/runs/45740541953/job/139644529048)This PR fixes three parts of that flow.
Let allowlisted reviewers start a review by applying the label. GitHub already checks who can manage PR labels. The bot now checks whether the person who applied
ai-reviewis on the pilot allowlist. If they are, the first review starts. If they are outside the pilot, the bot explains why and removes the label. Removingai-reviewdirectly also stops the session and clearsai-review-passed. Comment permissions stay the same. The PR author or someone with write access can request a follow-up with/ai-review. The/ai-review-stopand/ai-review-waivecommands still require write access.Make the checkout usable by the review script.
actions/checkoutadded the workspace to its temporary Git configuration. The next step ran with a different configuration, so Git rejected the directory withdetected dubious ownership. All three fetch attempts failed for the same reason. The prepare step now explicitly trusts$GITHUB_WORKSPACEbefore fetching the commits and computing the PR diff.Set
pendingwhen the model review starts. A failure during preparation no longer leaves a pending status behind. If the model call or result publication fails, the script attempts to mark the reviewed commit aserrorand preserves the original exception in the Actions log. It also clearspendingon the reviewed commit if the review stops, the PR closes, or the result is discarded after the code changes. Round counting still follows the published summary. A failure before publication costs no round, while a published discard notice counts as one round for the reviewed version.Does this PR introduce any user-facing change?
How was this patch tested?
Checklist
Testing
Boundary / edge-case coverage: I reviewed whether this change involves
boundary conditions (e.g. empty input, single/zero element, min/max values,
off-by-one, sequence-length limits, integer overflow). Where applicable, I
added unit tests covering these edge cases in
tests/ut/ortests/e2e/.Regression test: If this PR fixes a bug, I added a regression test
that would fail without the fix.
Error / failure path coverage: I covered abnormal paths (exceptions,
timeouts, out-of-range, division by zero) in addition to the happy path.
Meaningful & reliable tests: New tests assert real behavior and are
not written merely to satisfy CI.
Performance impact: If this PR touches a performance-sensitive path,
I attached benchmark results and added performance regression tests.
vLLM main: vllm-project/vllm@c410543