shuke987 opened a new pull request, #70901: URL: https://github.com/apache/doris/pull/70901
### Background The review runner requests changes for P0 and P1 findings and publishes a separate commit status for the PR and base it reviewed. The required `code-review` status aggregates those results across open PRs sharing a head commit. ### What problem does this PR solve? Issue Number: None Related PR: #68622 (example of a dismissed P1 result) PR Type: Build/CI/Chore Problem Summary: A maintainer can dismiss the bot's review on GitHub and still see a failing code-review check. This change lets a maintainer accept a converged P1-only review using GitHub's Dismiss review button. The check links to the dismissed review, and the runner's original failure and findings remain available. ### Details - **Change map:** 225 changed production lines wire review identity through delivery, verify the dismissal from a trusted workflow, and recompute the gate. 133 changed test lines cover eligibility, authorization, and timing. - **Affected:** The automated review runner and status workflows in GitHub Actions, including reviews on fork PRs. - **Behavior change:** Dismissal applies to the latest eligible review for its PR, head, and base. P0, incomplete coverage, another active AI change request on the same head, and blockers on another open PR sharing the commit still block this path. - **Developer and release impact:** A review produced before rollout must be rerun to publish its review ID. - **CI permissions and secrets:** The fork workflow has an empty permissions set. The default-branch workflow uses numeric IDs as lookup hints, reads the PR and dismissal timeline, matches the human actor, and checks repository write/admin permission before recording a status scoped to the review. Existing repository permissions suffice. - **License and third-party:** None. - **Rollback:** Revert the change. The previous resolver ignores dismissal records. Recalculate affected checks to restore the previous verdict. ### Testing - Ran the Python script suite locally on macOS with `RUN_GH_HTTP_TESTS=1`: 437 passed, 20 skipped. Cases cover early dismissal during delivery, reruns, P0 and incomplete reviews, other active reviews, and shared heads. - Replayed #68622 with its GitHub review, timeline, and collaborator permission. Simulated the open PR context and intercepted the status write locally. The old run link kept the check red. The verified review link turned it green. - Validated the four workflows with actionlint, excluding its existing diagnostic for `concurrency.queue`. Live fork event delivery requires the new workflows on the default branch. ### Release note None. ### Check List (For Author) - Behavior changed: Yes (see Details). - Does this need documentation: No. - Pre-submission status: Partially verified: live fork event delivery awaits deployment to the default branch. ### AI Disclosure - Tool: OpenAI Codex (GPT-6.2 Astra). - Generated: Implementation, tests, and PR description. - Human review: The requester approved the proposed behavior. Human review of the generated patch is pending. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
