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

   ### Background
   
   Maintainers can run a cloud review on a PR with `run debugreview`. The cloud 
publisher verifies the GitHub review and its inline comments. A GitHub Actions 
job polls for that result and normally contributes it to the required 
`code-review` status.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: #70973 (introduced the cloud review command), #70901 (manual 
dismissal)
   PR Type: Bugfix
   
   Problem Summary: If polling stops after dispatch, a later `/review` can pass 
before the cloud service publishes a P1 on the same head and base. The gate can 
then stay green. This change lets the publisher record its verified verdict 
directly. The receipt triggers the existing aggregate workflow even when the 
original job has exited.
   
   ### Details
   
   - **Frequency:** Requires an interrupted poller and overlapping results on 
the same PR snapshot. Reproduced locally. Production frequency is unknown.
   - **Root cause:** The cloud publisher persisted its result outside GitHub. 
Only the original polling job connected that result to the aggregate status.
   - **Why existing tests missed it:** The Actions tests covered poll responses 
and source ordering separately. They did not deliver a cloud blocker after the 
polling job had stopped. Database regression suites do not execute GitHub 
workflows.
   - **Fix:** The publisher records a commit status scoped to the run, PR and 
base after verifying delivery on the head commit. Retries reuse the first 
receipt. The resolver checks its author and review link, preserves the order of 
subsequent verdicts and accepts a dismissal through the existing verified 
Actions receipt.
   - **Other paths and branches:** The default-branch workflow serves PRs 
targeting release branches too. Existing publishers keep using polling until 
upgraded. Previews produce no receipts. Local PASS and authorized skip keep 
their existing precedence.
   - **Behavior change:** A late cloud P0/P1 updates the gate even after 
Actions stops polling. For rollout, configure `DORIS_REVIEW_APP_BOT`, grant the 
publishing App Commit statuses write access, and deploy the controller with the 
updated helper and the original workflow run ID in `cloud_receipt_run_id`.
   
   ### Testing
   
   - On the parent commit, the late-P1 regression returned `success` where it 
expected `failure`. It passes on this branch, including dismissal, stale base, 
replay and a later automated pass.
   - Ran the Actions Python suite locally: 466 passed, 22 skipped. Both changed 
workflows passed `actionlint`.
   - Ran the companion controller tests with the pinned candidate helpers: 28 
passed, three optional dependency tests skipped. The offline integration 
published one P1, simulated a restart and verified one review and one status 
receipt.
   
   ### Release note
   
   A verified cloud review can update the merge gate after its GitHub Actions 
polling job exits.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes (see Details)
   - Does this need documentation: No
   - Pre-submission status: Partially verified: live App delivery and 
status-event aggregation require a default-branch rollout.
   
   ### AI Disclosure
   
   - Tool: OpenAI Codex (GPT-6)
   - Generated: Implementation, tests and PR description.
   - Human review: 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