[ 
https://issues.apache.org/jira/browse/RAT-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18116374#comment-18116374
 ] 

Dejan Stojadinović commented on RAT-575:
----------------------------------------

{quote}Can you somehow manage to go with the current 1.0.0-SNAPSHOT to verify 
if it is as "slow" as 0.18.0?
{quote}
Not possible at the moment; I assume that [~eskatos] will try to accommodate 
his project ([https://github.com/eskatos/creadur-rat-gradle]) at some point.
I'll leave my attempt scenario here (just for the record):
 # *create RAT 1.0.0-SNAPSHOT version:*
 ** git clone [https://github.com/apache/creadur-rat.git]
 ** cd creadur-rat
 ** execute: *./mvnw install*
 # *use RAT version 1.0.0-SNAPSHOT to create eskatos/creadur-rat-gradle plugin 
version 0.12.0-SNAPSHOT:*
 ** git clone [https://github.com/eskatos/creadur-rat-gradle.git]
 ** cd creadur-rat
 ** change build.gradle from this:
{code:java}
repositories {
    mavenCentral()
}
dependencies {
    compileOnly("org.apache.rat:apache-rat-core:0.18")
{code}

 ** to this:
{code:java}
repositories {
    mavenCentral()
    mavenLocal()
}
dependencies {
    compileOnly("org.apache.rat:apache-rat-core:1.0.0-SNAPSHOT")
{code}

 ** execute: *./gradlew publishToMavenLocal*
 # *use Gradle RAT plugin version 0.12.0-SNAPSHOT for Kafka PR* 
[https://github.com/apache/kafka/pull/23424]:
 ** change build.gradle from this:
{code:java}
plugins {
  ...
  id 'org.nosphere.apache.rat' version "0.11.0"
  ...
}
...
repositories {
    mavenCentral()
}
{code}

 ** to
{code:java}
plugins {
  ...
  id 'org.nosphere.apache.rat' version "0.12.0-SNAPSHOT"
  ...
}
...
repositories {
    mavenCentral()
    mavenLocal()
}
{code}

 ** execute: *./gradlew rat* and build breaks (x)

> [Regression] Slower RAT task execution with recent versions (0.17 and 0.18)
> ---------------------------------------------------------------------------
>
>                 Key: RAT-575
>                 URL: https://issues.apache.org/jira/browse/RAT-575
>             Project: Apache RAT
>          Issue Type: Task
>          Components: core engine
>    Affects Versions: 0.17, 0.18
>         Environment: #  *JDK:* 25.0.4
> #  *RAT:* 0.17 / 0.18
> # Gradle plugin *org.nosphere.apache.rat* versions 0.10.0 / 0.11.0
> #* note: these Gradle plugin versions are using RAT 0.17 / 0.18 
> (respectively): 
> [https://github.com/eskatos/creadur-rat-gradle/blob/v0.11.0/CHANGELOG.md]
>            Reporter: Dejan Stojadinović
>            Priority: Major
>              Labels: Regression, regresion, slowness
>
> *Problem description:*
>  # it started after attempted version upgrade from *RAFT 0.15 to 0.17* (via 
> Gradle Rat plugin version upgrade here: 
> [https://github.com/apache/kafka/pull/23424#issuecomment-5633077550):] *RAT 
> task execution time was increased exponentially (25 times)*
>  # plugin developer [~eskatos] was extra responsive: 
> [https://github.com/eskatos/creadur-rat-gradle/issues/37#issuecomment-5630452783]
>  # *RAT 0.18* task execution time is better comparing to 0.17 (but nowhere 
> near to 0.15)
> (on) Note: I can provide Gradle Develocity build results scans.
> *Environment:*
>  * *Gradle RAT plugin versions / RAT versions:*
>  ** plugin version 0.8.1 / RAT version 0.15 (baseline, i.e. Kafka trunk)
>  ** plugin version 0.10.0 / RAT version 0.17
>  ** plugin version 0.11.0 / RAT version 0.18
>  * *Gradle (wrapper) version: 9.7.1*
>  * *JDK: 25.0.4*
> {code:java}
> openjdk version "25.0.4" 2026-07-21 LTS
> OpenJDK Runtime Environment Temurin-25.0.4+7 (build 25.0.4+7-LTS)
> OpenJDK 64-Bit Server VM Temurin-25.0.4+7 (build 25.0.4+7-LTS, mixed mode, 
> sharing)
> {code}
>  * {*}POC{*}: [https://github.com/apache/kafka/pull/23424]
> {code:java}
> dejan@home:~/kafka$ git log -3 --oneline 
> 2575547fcff (HEAD -> KAFKA-21064, origin/KAFKA-21064) KAFKA-21064 plugin 
> version bumped to 0.11.0 (in order to use Apache RAT bundled version 0.18)
> 6b28f8c39d6 KAFKA-21064 Apache RAT Gradle plugin version upgrade: 0.8.1 --> 
> 0.10.0; redundant custom style file is removed
> 7a09196f933 KAFKA-20745: extend OffsetMapTest to verify different hash 
> algorithms (#23391)
> dejan@home:~/kafka$
> {code}
> *Test scenario:* execute: *./gradlew rat --rerun --profile* three times (once 
> per each commit mentioned above).
> *Test results:*
> |commit|gradle RAT plugin/RAT version|RAT task execution time|
> |Kafka trunk|plugin 0.8.1 (RAT 0.15)|2.553s|
> |PR 1st commit|plugin 0.10.0 (RAT 0.17)|50.816s|
> |PR 2nd commit|plugin 0.11.0 (RAT 0.18)|26.125s|



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to