dejan2609 commented on PR #23905: URL: https://github.com/apache/kafka/pull/23905#issuecomment-7171265222
### Testing rerun (after the Apache RAT upgrade #23424 is merged into trunk) All checks from the testing notes above were rerun in a session with Claude, comparing trunk `d41e7d6cf4` (JGit) with this PR (`e2b340abec`). - **RAT:** same results as before. Same reports and excludes (7,616 files scanned on both sides); the nested git repository is still the only difference (excluded by this PR, scanned and failing with JGit). A name with a backslash fails on both sides; with RAT 0.18 the message is now `Apache Rat failed to audit ...`. - **Commit id and RAT in different `.git` setups** (normal clone, worktree, no `.git`, broken `.git`, git not installed, …): same table as before. The last row is now tested with JGit too: an empty `.git` directory inside a parent repository fails the build with JGit (`repository not found`), while this PR uses `unknown` with a warning. - **Distribution:** same 225 files; jars differ only in the version file with the commit id; site-docs identical. #### Configuration cache testing This PR does not enable the configuration cache, and it is only one of several steps needed for it (KAFKA-21326). To check this Gradle was run on trunk and on this PR with the tasks of CI's main build step, in dry-run mode (configuration only), and the configuration cache problems were compared: `./gradlew --configuration-cache --configuration-cache-problems=warn --dry-run check releaseTarGz -x test` | | Trunk (JGit) | This PR | |---|---|---| | Configuration cache problems | 18 | 16 | | `external process started '/usr/bin/git --version'` and `'/usr/bin/git config --system ...'` (started by JGit) | 2 | 0 | | Other problems (`gen*Docs` tasks and `releaseTarGz`), not related to git | 16 | 16 | The two problems that are gone point to the [Gradle documentation on external processes](https://docs.gradle.org/9.8.2/userguide/configuration_cache_requirements.html#config_cache:requirements:external_processes), which recommends `providers.exec`, as used here. With `--configuration-cache rat`, the results are the same as in the testing notes above. As the Gradle page linked above explains, Gradle runs both git commands on every build to check the cache entry; together they take about 0.03s. _**Drafted in a Claude session (then reviewed and edited).**_ -- 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]
