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 f2c8f96b22b [chore](ci) Skip standalone style jobs on master PRs 
(#71308)
f2c8f96b22b is described below

commit f2c8f96b22b4e47329c1dcd6fb6750f4c53e3fde
Author: shuke <[email protected]>
AuthorDate: Wed Dec 2 22:13:20 2026 +0800

    [chore](ci) Skip standalone style jobs on master PRs (#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.
---
 .github/workflows/checkstyle.yaml  | 2 +-
 .github/workflows/clang-format.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/checkstyle.yaml 
b/.github/workflows/checkstyle.yaml
index e097fe1b8a3..47459d728b6 100644
--- a/.github/workflows/checkstyle.yaml
+++ b/.github/workflows/checkstyle.yaml
@@ -33,7 +33,7 @@ jobs:
     concurrency:
       group: fe-code-style-${{ github.event.pull_request.number || 
github.run_id }}-${{ github.sha }}
       cancel-in-progress: true
-    if: github.event_name == 'pull_request'
+    if: github.event_name == 'pull_request' && github.base_ref != 'master'
     steps:
       - name: Verify current PR head
         env:
diff --git a/.github/workflows/clang-format.yml 
b/.github/workflows/clang-format.yml
index 514fecbcb42..0738c467f49 100644
--- a/.github/workflows/clang-format.yml
+++ b/.github/workflows/clang-format.yml
@@ -34,7 +34,7 @@ jobs:
     concurrency:
       group: code-formatter-${{ github.event.pull_request.number || 
github.run_id }}-${{ github.sha }}
       cancel-in-progress: true
-    if: github.event_name == 'pull_request'
+    if: github.event_name == 'pull_request' && github.base_ref != 'master'
     steps:
       - name: Verify current PR head
         env:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to