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

   ### Background
   
   Maintainers use PR comments to run individual TeamCity checks or the checks 
selected by `run buildall`. The GitHub Actions workflow already has an 
OIDC-based queue path that was exercised with pilot commands in #70972. Regular 
commands still authenticate directly to TeamCity.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: #70972
   PR Type: Build/CI/Chore
   
   Problem Summary:
   
   Route regular `run` comments through the existing Function Compute (FC) 
queue worker so GitHub-hosted runners can submit builds without a TeamCity 
credential or a connection to the TeamCity server. For example, `run p0 2` 
records an approval for the PR head, base branch, P0 lane and count, then sends 
an OIDC-authenticated request and checks for two build IDs. This retires the 
pilot-only `run debug…` aliases.
   
   ### Details
   
   - **Change map:** The workflow and shell helper account for 162 changed 
lines. They promote FC lane selection and remove the direct TeamCity REST 
client. The remaining 259 changed lines update the tests and remove fixtures 
that simulated that client.
   - **Affected:** The comment workflow for `master`, `branch-4.2` and 
`branch-4.1`. Existing command permissions, changed-file filters, 
sensitive-script checks and master-only Performance selection still apply.
   - **Behavior change:** Regular builds now reach TeamCity through FC. `skip 
buildall` continues to write GitHub statuses. The submission job reports a 
failed or incomplete queue receipt.
   - **Developer and release impact:** Maintainers keep the existing command 
syntax. Operators must keep the FC worker's TeamCity credential valid for 
queues to accept new builds.
   - **CI permissions and secrets:** The selection job uses the built-in GitHub 
token for PR metadata, comments and commit statuses. Only the submission job 
can request an OIDC token for the FC audience. `TEAMCITY_FC_TRIGGER_URL` is a 
repository variable. The workflow no longer reads `TEAMCITY_CURRENT_TOKEN`.
   - **License and third-party:** None.
   - **Rollback:** Revert this change and verify the previous direct endpoint, 
credential and network path before resuming direct submissions.
   
   ### Testing
   
   - Ran all 20 shell/workflow tests locally. They cover command and branch 
authorization, lane selection, skip statuses, PR snapshot checks, and failed or 
partial FC receipts. Two cutover tests also failed as expected against the 
previous workflow.
   - Parsed the workflow YAML and checked all 18 embedded shell steps and the 
helper with Bash.
   - Before this change, the same FC transport returned TeamCity build IDs for 
P0 and Compile on #70977. The P0 build then failed while fetching its compile 
package. These runs verify submission only. [P0 
run](https://github.com/apache/doris/actions/runs/45535741913) · [Compile 
run](https://github.com/apache/doris/actions/runs/45536084446)
   
   ### Release note
   
   None.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes (see Details)
   - Does this need documentation: No
   - Pre-submission status: Partially verified: regular commands use the 
default branch workflow and can be exercised end to end after merge. Eight 
lanes have local coverage only.
   
   ### AI Disclosure
   
   - Tool: OpenAI Codex
   - Generated: Workflow, shell helper, 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