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

   ### Background
   
   Doris starts separate Java and C++ style jobs for each pull request update. 
In a December 2 sample of 103 paired PR updates, 60 needed only one of the two 
checks. Both jobs requested a runner and checked out the source before 
selecting paths when the PR head was current.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: #67119 (stale PR checks), #71282 (Ubuntu runner selection)
   PR Type: Build/CI/Chore
   
   Problem Summary: Have one required Code Style job select Java and C++ checks 
before checking out the source. The existing master rules require the two 
previous check names to merge this PR. Both workflows stay active during the 
transition. A separate cleanup will remove them after the hosted Code Style 
check passes and the new ruleset takes effect.
   
   ### Details
   
   - **Affected:** The master ruleset and a new pull request workflow.
   - **Behavior change:** Compare the immutable PR commits, including previous 
filenames. Check both languages when the comparison cannot establish a complete 
file list or the workflow changes.
   - **Developer and release impact:** Master requires Code Style. Validation 
uses the PR merge checkout, the existing Java and Clang commands, and read-only 
permissions. C++ failures still allow the Java check to run.
   - **License and third-party:** The Clang action stays at its existing pinned 
commit.
   - **Rollback:** Restore the old required contexts while their workflows are 
present.
   
   ### Testing
   
   Actionlint, 22 selection cases including four historical PR snapshots, 
stale-head and step-failure checks, and a structural comparison of branch rules 
passed. JDK 17 Maven CheckStyle passed all 93 reactor modules. The pinned Clang 
script with clang-format 16.0.6 checked 5,244 source files and rejected a 
malformed fixture locally.
   
   ### Release note
   
   None.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes (see Details).
   - Does this need documentation: No.
   - Pre-submission status: Partially verified. GitHub-hosted execution and the 
live ASF ruleset transition require publication.
   
   ### AI Disclosure
   
   - Tool: OpenAI Codex.
   - Generated: Implementation, local verification and 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