shuke987 opened a new pull request, #71308: URL: https://github.com/apache/doris/pull/71308
### Background Master already requires the combined Code Style job introduced in #71294. On #71303 it ran both language checks successfully, yet the standalone CheckStyle and Clang Formatter jobs also acquired runners and checked out Doris before testing which files changed. ### What problem does this PR solve? Issue Number: None Related PR: #71294, #71303 PR Type: Build/CI/Chore Problem Summary: Make each standalone job eligible only for pull requests targeting a branch other than master. A master PR update now avoids two runner allocations and two Doris source checkouts. ### Details - **Affected:** The job conditions in the FE Code Style Checker and Code Formatter workflows. - **Behavior change:** GitHub skips both standalone jobs before runner allocation on master PRs. The required Code Style job continues to select Java and C++ checks by path. PRs from forks use the same target-branch condition. - **Developer and release impact:** Contributors targeting release branches continue to receive the existing check names and results. - **License and third-party:** None. - **Rollback:** Revert the two job conditions to enable the standalone checks on master again. ### Testing Evaluated both job predicates for master, all seven protected release branches, a feature branch and manual dispatch (20 cases). Compared the parsed workflows with master to verify that only the predicates changed. All 22 workflow unit tests passed. Actionlint reported the same existing checkout@v3 diagnostic on the base and candidate, with no new findings. ### Release note None. ### Check List (For Author) - Behavior changed: Yes (see Details). - Does this need documentation: No. - Pre-submission status: Ready. Verified locally and checked the live master ruleset. ### AI Disclosure - Tool: OpenAI Codex. - Generated: Workflow changes, local validation 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]
