You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "Jackie-Jiang (via GitHub)" <gi...@apache.org> on 2026/09/23 23:07:04 UTC
[PR] Run Apache RAT once from the root instead of per module [pinot]
Jackie-Jiang opened a new pull request, #19650:
URL: https://github.com/apache/pinot/pull/19650
## Summary
Since #19633 moved the Apache parent to 40, `apache-rat-plugin` is 0.18 (up from 0.16.1). 0.18 marks `check` as thread-safe, so Maven gives no warning under `-T`, but it keeps shared static state: the logger, the deprecation reporter, the `Arg` option groups mutated during argument parsing, the SPDX matcher, and the SCM ignore-file builders. Concurrent module executions in the `-T 16` CI build intermittently fail with:
```
Failed to execute goal org.apache.rat:apache-rat-plugin:0.18:check (default) on project pinot-timeseries-lang:
Execution default of goal org.apache.rat:apache-rat-plugin:0.18:check failed. ConcurrentModificationException
```
This showed up within hours of the upgrade, on different modules each time:
- [Integration Test Set 2](https://github.com/apache/pinot/actions/runs/35925987578/job/107401081098) (`pinot-timeseries-lang`)
- [Unit Test Set 1](https://github.com/apache/pinot/actions/runs/35926425302/job/107402571319) (`pinot-input-format`)
Upstream fixed it in apache/creadur-rat#704 (RAT-573), which is not released yet; 0.18 is the latest version.
This PR runs RAT as a single execution from the root that scans the whole tree, instead of one execution per module, so nothing can race regardless of `-T`:
- `<inherited>false</inherited>` keeps RAT out of the child modules.
- `<excludeSubProjects>false</excludeSubProjects>` makes the root execution cover the module directories it used to skip.
- Exclude patterns resolve against the scanned directory. RAT's built-in excludes and most of ours already start with `**/`, and the root-anchored ones (`licenses-binary/**`, `kb/**`, `helm/**`, `docker/**`, `contrib/**`, `doap_Pinot.rdf`, `.trivyignore`, `.github/*.md`) point at root-level paths, so they match the same. The IDE and GenAI tool directories (`.externalToolBuilders`, `.claude`, `.codex`, `.continue`, `.copilot`, `.cursor`, `.openai`, `.ollama`) can appear inside any module, so they now start with `**/` to keep matching there.
This also cuts RAT work. With `parseSCMIgnoresAsExcludes` on (the default), every execution walks its entire subtree once per SCM type (Git, Mercurial, Bazaar, CVS) to find ignore files, without applying excludes. So the root execution already walked the whole repo (16.5s in [this Unit Test Set 2 build](https://github.com/apache/pinot/actions/runs/35926425302/job/107402571644)), and the 79 module executions (38.5s summed) repeated those walks for their own subtrees. The single execution keeps the root's walks and adds only the header checks for module files.
`mvn install -pl <module>` without the root in the reactor no longer runs RAT for that module. CI builds always include the root.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] Run Apache RAT once from the root instead of per module [pinot]
Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang merged PR #19650:
URL: https://github.com/apache/pinot/pull/19650
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] Run Apache RAT once from the root instead of per module [pinot]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #19650:
URL: https://github.com/apache/pinot/pull/19650#issuecomment-5804517566
## [Codecov](https://app.codecov.io/gh/apache/pinot/pull/19650?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 0.00%. Comparing base ([`33d88e4`](https://app.codecov.io/gh/apache/pinot/commit/33d88e480ba7e05528e619c34e100b0dc3965db6?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`35a035b`](https://app.codecov.io/gh/apache/pinot/commit/35a035bafb4ab0cad3451ce7c621f859a27b48c1?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
> :exclamation: There is a different number of reports uploaded between BASE (33d88e4) and HEAD (35a035b). Click for more details.
>
> <details><summary>HEAD has 18 uploads less than BASE</summary>
>
>| Flag | BASE (33d88e4) | HEAD (35a035b) |
>|------|------|------|
>|lane-b|2|1|
>|integration|3|1|
>|java-25|5|1|
>|temurin|5|1|
>|lane-a|1|0|
>|integration1|2|0|
>|unittests1|1|0|
>|unittests|2|0|
>|unittests2|1|0|
></details>
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #19650 +/- ##
=============================================
- Coverage 67.93% 0.00% -67.94%
=============================================
Files 3511 3 -3508
Lines 227353 6 -227347
Branches 35966 0 -35966
=============================================
- Hits 154451 0 -154451
+ Misses 60762 6 -60756
+ Partials 12140 0 -12140
```
| [Flag](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [integration](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | |
| [integration1](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [integration2](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | |
| [java-25](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (-67.94%)` | :arrow_down: |
| [lane-a](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [lane-b](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | |
| [temurin](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (-67.94%)` | :arrow_down: |
| [unittests](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [unittests1](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [unittests2](https://app.codecov.io/gh/apache/pinot/pull/19650/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/pinot/pull/19650?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org