dejan2609 commented on code in PR #23424:
URL: https://github.com/apache/kafka/pull/23424#discussion_r4679906478
##########
.github/scripts/rat.py:
##########
@@ -66,8 +61,6 @@ def parse_rat_report(fp):
total_approved_licenses = 0
all_unapproved_files = []
- workspace_path = get_env("GITHUB_WORKSPACE")
Review Comment:
Nice catch @mimaison !
I pushed two new commits.
<details>
<summary>Local testing results are looking good</summary>
```
dejan@home:~/kafka$ git log -2 --oneline
0aa79982d4 (HEAD -> KAFKA-21064, origin/KAFKA-21064) KAFKA-21064: *test only
commit* --> dummy file without a license header is added (note: will be
reverted)
d8c48dbd9f KAFKA-21064: rat.py no longer needs GITHUB_WORKSPACE
dejan@home:~/kafka$ ./gradlew rat -q
Starting build with version 4.5.0-SNAPSHOT (commit id 0aa79982) using Gradle
9.8.2, Java 25 and Scala 2.13.18
Build properties: ignoreFailures=false, maxParallelForks=8,
maxScalacThreads=8, maxTestRetries=0
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':rat' (registered by plugin
'org.nosphere.apache.rat').
> A failure occurred while executing org.nosphere.apache.rat.RatWork
> Apache Rat audit failure - 1 unapproved license
See file:///home/dejan/kafka/build/rat/index.html
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
BUILD FAILED in 1m 2s
dejan@home:~/kafka$ python3 .github/scripts/rat.py; echo "script exit: $?"
Found 1 Rat reports
Parsing Rat report file: build/rat/rat-report.xml
7589 approved licenses
1 unapproved licenses
Files with unapproved licenses:
::notice file=clients/src/main/java/RatProbe.java,title=Unapproved
License::File with unapproved license: clients/src/main/java/RatProbe.java
script exit: 1
dejan@home:~/kafka$
```
</details>
Let's wait for CI; hopefully first run with fail (with appropriate output
error) and after revert next execution should be just fine.
--
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]