shuke987 opened a new pull request, #70973:
URL: https://github.com/apache/doris/pull/70973

   ### Background
   
   The community `/review` command runs code review in GitHub Actions. 
Maintainers want to exercise the cloud review service on individual PRs and use 
its verified verdict in the same merge gate.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: #70901 (manual dismissal of blocking automated reviews)
   PR Type: Build/CI/Chore
   
   Problem Summary:
   
   A maintainer can opt in by posting `run debugreview` as a standalone PR 
comment. Actions submits the current head and base to the cloud service and 
tracks its receipt. A verified publication updates the existing `code-review` 
gate. A preview or a result for an obsolete snapshot cannot pass the gate.
   
   ### Details
   
   - **Change map:** 231 added lines implement dispatch, polling and status 
updates. Nine added lines adapt the dismissal and aggregation paths to the 
publishing App. The remaining 123 added lines cover the command and dismissal 
in tests.
   - **Affected:** The cloud and existing review jobs share a per-PR 
concurrency group.
   - **Behavior change:** A converged P0/P1 result links to its exact GitHub 
review so a maintainer can dismiss it through the existing workflow.
   - **Developer and release impact:** The opt-in job occupies an Actions 
runner while waiting. Before rollout, deploy the service receipt fields and 
publisher bundle for #70901 and set the repository variable 
`DORIS_REVIEW_APP_BOT` to the App's bot login.
   - **CI permissions and secrets:** The command uses the same commenter 
permissions as `/review`. Only the cloud execution job receives OIDC and 
status-write permissions. It uses a review-specific audience and checks the 
run, PR and commit pair before recording a verdict. Actions remains the trusted 
writer of dismissal receipts.
   - **License and third-party:** Python standard library and the existing 
GitHub API helper.
   - **Rollback:** Stop using the opt-in command or revert this change. 
Maintainers can continue using `/review`.
   
   ### Testing
   
   - Ran the Actions Python suite locally on macOS. Of 484 tests, 462 passed 
and 22 were skipped. Focused tests covered a passing review, P1 failure, 
incomplete coverage, stale receipts, token renewal and dismissal for the 
configured App.
   - Checked open and closed PR snapshots and ran `actionlint` on all four 
affected workflows, filtering its unsupported `concurrency.queue` diagnostic.
   - Ran the companion service and FC tests locally. The service suite passed 
28 tests and skipped two optional Codex tests. All 22 FC trigger tests passed.
   
   ### Release note
   
   Authorized reviewers can request a cloud review with `run debugreview` after 
the workflow and service updates are deployed.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes (see Details).
   - Does this need documentation: No public product documentation change. The 
service runbook covers rollout.
   - Pre-submission status: Partially verified. A live GitHub OIDC run and 
public review require the workflow on the default branch and a configured 
publishing App.
   
   ### AI Disclosure
   
   - Tool: OpenAI Codex (GPT-6).
   - Generated: Implementation, tests and PR description.
   - Human review: The requester confirmed the command and its authority to 
update the merge gate. Code review 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]

Reply via email to