This is an automated email from the ASF dual-hosted git repository.
hello-stephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 2b9f9a86780 [chore](ci) Report the required Linux thirdparty check for
unrelated PRs (#71452)
2b9f9a86780 is described below
commit 2b9f9a86780ae1906e6cf721758e0a3960552c99
Author: shuke <[email protected]>
AuthorDate: Sat Dec 5 11:23:18 2026 +0800
[chore](ci) Report the required Linux thirdparty check for unrelated PRs
(#71452)
### Background
The merge rule requires `Build Third Party Libraries (Linux)` on each
PR. When a PR touches `thirdparty/` or `env.sh`, GitHub Actions emits a
request for the PR's merge commit and TeamCity reports the build result
under that required name.
### What problem does this PR solve?
Issue Number: None
Related PR: #71436 (introduced the selector), #71446 (affected PR)
PR Type: Build/CI/Chore
Problem Summary:
On #71446, all 35 files fell outside the build paths. GitHub skipped the
selector job before evaluating its name, recorded the literal
expression, and left the required check pending. Let the job run after
path detection so GitHub resolves its name and the log records the
decision. [Skipped job on
#71446](https://github.com/apache/doris/actions/runs/47457437221/job/145477108926)
### Details
- **Affected:** The Linux thirdparty selector in GitHub Actions.
- **Developer and release impact:** An unrelated PR uses one short
`ubuntu-slim` job to satisfy the merge rule. For a selected PR the job
name carries the PR number and merge SHA to the relay, and TeamCity
supplies the required result after compilation.
- **License and third-party:** None.
- **Rollback:** Revert the workflow edit.
### Testing
- On this PR, GitHub ran `Build Third Party Libraries (Linux)` and
logged `Linux thirdparty build selected for TeamCity = false`. The
required-check list reports `SUCCESS` for commit `c0b4a711172`. [Actions
log](https://github.com/apache/doris/actions/runs/47470960867/job/145519155686)
- Ran the path filter on local Git fixtures, evaluated the job condition
and name with `@actions/expressions`, and checked the relay's `jq`
predicate. A BE test edit skipped the job on the baseline. With the fix,
BE test and workflow edits produced the required name and the relay
declined both.
- Edits to `thirdparty/vars.sh` and `env.sh`, plus a missing filter
output, produced requests with the expected PR number and merge SHA. The
local relay predicate accepted successful requests and rejected failed,
skipped and cancelled jobs. Validation of selected builds covered the
handoff through this predicate.
- Ran `actionlint` on the detector, selector and submit workflows, and
`git diff --check`. Both passed.
### Release note
None
### Check List (For Author)
- Behavior changed: No
- Does this need documentation: No
- Pre-submission status: Ready
### AI Disclosure
- Tool: OpenAI Codex (GPT-6)
- Generated: Workflow edit, local verification and PR description.
- Human review: Pending.
---
.github/workflows/request-thirdparty-teamcity.yml | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/request-thirdparty-teamcity.yml
b/.github/workflows/request-thirdparty-teamcity.yml
index d42bf0113fd..1b0c1929856 100644
--- a/.github/workflows/request-thirdparty-teamcity.yml
+++ b/.github/workflows/request-thirdparty-teamcity.yml
@@ -33,11 +33,12 @@ jobs:
build_linux:
needs: changes
- # When selected, only TeamCity publishes the required check. When skipped,
- # keep the existing check name so unaffected PRs can merge.
+ # Run this job even for unrelated changes so GitHub evaluates its check
name.
+ # For selected builds, TeamCity reports the required check after
compilation.
name: ${{ needs.changes.outputs.thirdparty_changes == 'false' && 'Build
Third Party Libraries (Linux)' || format('Request thirdparty on TeamCity / {0}
/ {1}', github.event.pull_request.number, github.sha) }}
- if: needs.changes.outputs.thirdparty_changes == 'true'
runs-on: ubuntu-slim
permissions: {}
steps:
- - run: echo 'Selected the Linux thirdparty build for TeamCity.'
+ - env:
+ THIRD_PARTY_CHANGED: ${{ needs.changes.outputs.thirdparty_changes }}
+ run: echo "Linux thirdparty build selected for TeamCity =
$THIRD_PARTY_CHANGED"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]