inerasable0203 commented on PR #24325:
URL: https://github.com/apache/kafka/pull/24325#issuecomment-7047764127

   **Problem**
   On my PR #24308, every review triggered a failed "Workflow Requested" run 
and a
   failure email ("Could not find the PR that triggered this workflow request"),
   e.g. https://github.com/apache/kafka/actions/runs/44784403138.
   For `pull_request_review` events, `workflow_run.head_repository` is 
apache/kafka
   rather than the fork, so the `HEAD_REPO:HEAD_BRANCH` lookup finds no PR, and 
the
   "Pull Request Reviewed" run stays waiting for approval even with 
`ci-approved`.
   
   **Question on direction**
   Since KAFKA-20362, the `Reviewers:` trailer is added without approving that 
run,
   and the PR Linter also runs on PR open/edit. So auto-approving 
review-triggered
   runs now mostly just re-runs the linter. Two options:
   
   1. Keep this fix: find the PR by head_sha so review-triggered runs get
      auto-approved. It costs extra API calls (could be limited to the fallback
      when the current lookup fails).
   2. Stop handling review-triggered runs in Workflow Requested. The trailer 
only
      needs the run to be requested, and the linter's only review-dependent 
check
      (Reviewers present when approved) is covered by the auto-added trailer.
      This removes the failed runs without extra API calls.
   
   Happy to go either way.
   


-- 
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]

Reply via email to