voonhous opened a new pull request, #20652:
URL: https://github.com/apache/hudi/pull/20652

   ### Describe the issue this Pull Request addresses
   
   A merge-queue entry that changes only docs and images runs every test job of 
`Java CI` and `Java CI Engines` on ASF runners. 14 of 293 master merges since 
2026-09-01 were docs-only (mostly RFC claims); #20574 ran the full suite twice 
in the queue.
   
   Part of #20471 (item 6).
   
   ### Summary and Changelog
   
   - New `changes` job (`Detect docs-only changes`) in both workflows, on 
`merge_group` only: fetches the entry's base and head commits without blobs and 
diffs their trees, excluding exactly the patterns the push filter ignores 
(`.md`, images, `.pdf`, root `.gitignore`).
   - Every test job gets `needs: changes`; the shared route condition skips the 
tests when it reports `docs_only`.
   - The aggregates accept a queue run in which every test job skipped, unless 
the run was cancelled. A mix of success and skipped still fails.
   
   <details>
   <summary>Why this is safe, and smaller details</summary>
   
   - On every other event `changes` is skipped, so PR and push runs wait on no 
extra runner. The route starts with `!cancelled()` so the tests still run when 
their need was skipped.
   - A failed `changes` job leaves the output empty, so the full suite runs.
   - When PRs stack in the queue, an entry's base is the previous entry's head, 
so the diff is the entry's own change. With `grouping_strategy: ALLGREEN` a 
docs-only entry merges only together with the green entries ahead of it, whose 
runs test the code.
   - Same-repo PR runs are unchanged; fork PR runs already skip upstream.
   - 7 new node tests: routing and aggregate cases, both `changes` jobs 
identical, excludes equal to each push filter, and the job's script run against 
a local repository (root/nested `.md`, images, root vs nested `.gitignore`, 
`.yml`, `.java`, `.md` renamed to `.java`, a failed fetch).
   </details>
   
   ### Impact
   
   Docs-only queue entries run only the `changes` job and the two aggregates, 
all on `ubuntu-slim`, instead of the full Java CI. Nothing changes for PR, push 
or fork runs.
   
   ### Risk Level
   
   low. The tests skip only when the selector positively reports a docs-only 
diff; any selector failure runs the full suite.
   
   ### Documentation Update
   
   `.github/workflows/README.md` updated.
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable
   


-- 
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]

Reply via email to