Skip to content

[CI][BugFix] Fix AI review startup for triage reviewers and stuck pending statuses - #23318

Merged
wangxiyuan merged 1 commit into
vllm-project:mainfrom
MrZ20:fix_ai_review_1
Nov 26, 2026
Merged

wangxiyuan merged 1 commit into
vllm-project:mainfrom
MrZ20:fix_ai_review_1

Conversation

@MrZ20

@MrZ20 MrZ20 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it?

AI review hit two problems on #23299. An allowlisted reviewer with the triage role applied the ai-review label, but the bot rejected the request because the reviewer lacked repository write access. A later request passed authorization, but git fetch failed before the model started. The Actions job ended while the commit’s ai-review status still showed pending. [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.

  1. 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-review is 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. Removing ai-review directly also stops the session and clears ai-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-stop and /ai-review-waive commands still require write access.

  2. Make the checkout usable by the review script. actions/checkout added the workspace to its temporary Git configuration. The next step ran with a different configuration, so Git rejected the directory with detected dubious ownership. All three fetch attempts failed for the same reason. The prepare step now explicitly trusts $GITHUB_WORKSPACE before fetching the commits and computing the PR diff.

  3. Set pending when 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 as error and preserves the original exception in the Actions log. It also clears pending on 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/ or tests/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

Signed-off-by: MrZ20 <2609716663@qq.com>
@MrZ20
MrZ20 requested a review from wangxiyuan as a code owner November 26, 2026 02:34
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@github-actions

Copy link
Copy Markdown
Contributor

👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:‌‌

  • A PR should do only one thing, smaller PRs enable faster reviews.
  • Every PR should include unit tests and end-to-end tests ‌to ensure it works and is not broken by other future PRs.
  • Write the commit message by fulfilling the PR description to help reviewer and future developers understand.

If CI fails, you can run linting and testing checks locally according Contributing and Testing.

🤖 How to trigger CI

CI runs automatically when the PR is opened or reopened. Pushing a new commit no longer re-runs the E2E CI (to save NPU runner resources), so use the comment commands below when needed. They are available to the PR author and users with triage permission or above:

  • /run — run the full PR CI gate on the latest commit.
  • /rerun — re-run the failed CI jobs (e.g. after a flaky failure).
  • /e2e — run selected E2E tests instead of the full gate.
  • /nightly / /presmoke / /weekly — run the corresponding large-scale tests (triage permission or above; blocked during the nightly maintenance window).
  • /cancel — cancel a running CI on this PR.

Note

Until the CI gate has run on a commit, the required ci-gate check stays pending and the PR cannot merge — remember to comment /run after pushing.


Tip

💡 Consider Linking a Related Issue or RFC

Your 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:

  • Fixes #<issue_number>
  • Closes #<issue_number>
  • Resolves #<issue_number>
  • Refs #<rfc_or_issue_number> (for RFCs)

🙏 Thanks for helping us keep the project well-organized!

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Last updated: 2026-11-26 10:48 UTC+8 for commit eb9c1a9.

ci-gate failed Resolved: the ci-gate passed for commit eb9c1a9. Keeping this comment so the history stays visible; it will be updated again if a later run on this commit fails.

@wangxiyuan
wangxiyuan enabled auto-merge (squash) November 26, 2026 02:46
@wangxiyuan
wangxiyuan merged commit 11577d4 into vllm-project:main Nov 26, 2026
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants