[
https://issues.apache.org/jira/browse/KAFKA-20851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dejan Stojadinović updated KAFKA-20851:
---------------------------------------
Description:
(i) *Prologue:*
* Spotless gradle plugin issue
[https://github.com/diffplug/spotless/issues/2850] is still pending (hence
these version bump should be tested thoroughly (see test procedure below)
* KAFKA-20182 and related GitHub PR's:
** [https://github.com/apache/kafka/pull/22012]
** [https://github.com/apache/kafka/pull/22025]
(on) *Action point:* update gradle plugin version from *8.4.0* to *8.9.0*
(!) *Test procedure (note: must be done locally):*
# *./gradlew build -x test* passes (/) (spotlessCheck + checkstyle +
spotbugs + compile all)
# run in a loop (hundreds of times): *./gradlew spotlessApply --rerun-tasks
--no-build-cache*
** note: for loop testing I created this script -->
{*}_repeatUntilBuildFails.sh_{*}:
{code:java}
#!/bin/bash
counter=0
while ./gradlew clean spotlessApply --rerun-tasks --no-build-cache; do
((counter++))
echo
"**************************************************************************"
echo "### Build succeeded (execution number: $counter) -->> running
again... ###"
echo
"**************************************************************************"
done
((counter++))
echo ">>> Build failed on execution number: $counter at $(date) <<<"
{code}
*Note: test procedure taken from here (see commit messages):*
*
[https://github.com/apache/kafka/commit/7aaf4de8207dda7809735597383d3771810a4385]
*
[https://github.com/apache/kafka/commit/2327e51926d666d979f8363dedf0894390430a7c]
*Spotless Gradle plugin release notes links:*
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.9.0]
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.8.0]
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.7.0]
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.6.0]
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.5.1]
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.5.0]
was:
(i) *Prologue:*
* Spotless gradle plugin issue:
[https://github.com/diffplug/spotless/issues/2850]
* KAFKA-20182 and related GitHub PR's:
** [https://github.com/apache/kafka/pull/22012]
** [https://github.com/apache/kafka/pull/22025]
(on) *Action point:* update gradle plugin version from *8.4.0* to *8.9.0*
(!) *Test procedure (note: must be done locally):*
# ./gradlew build -x test* passes (/) (spotlessCheck + checkstyle +
spotbugs + compile all)
# run in a loop (hundreds of times): *./gradlew spotlessApply --rerun-tasks
--no-build-cache*
** note: for loop testing I created this script -->
{*}_repeatUntilBuildFails.sh_{*}:
{code:java}
#!/bin/bash
counter=0
while ./gradlew clean spotlessApply --rerun-tasks --no-build-cache; do
((counter++))
echo
"**************************************************************************"
echo "### Build succeeded (execution number: $counter) -->> running
again... ###"
echo
"**************************************************************************"
done
((counter++))
echo ">>> Build failed on execution number: $counter at $(date) <<<"
{code}
*Note: test procedure taken from here (see commit messages):*
*
[https://github.com/apache/kafka/commit/7aaf4de8207dda7809735597383d3771810a4385]
*
[https://github.com/apache/kafka/commit/2327e51926d666d979f8363dedf0894390430a7c]
*Spotless Gradle plugin release notes links:*
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.9.0]
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.8.0]
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.7.0]
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.6.0]
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.5.1]
* [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.5.0]
> Spotless gradle plugin: version update (8.4.0 -->> 8.9.0)
> ---------------------------------------------------------
>
> Key: KAFKA-20851
> URL: https://issues.apache.org/jira/browse/KAFKA-20851
> Project: Kafka
> Issue Type: Task
> Components: build
> Reporter: Dejan Stojadinović
> Assignee: Dejan Stojadinović
> Priority: Minor
> Labels: Gradle, buid, gradle, update
> Fix For: 4.4.0
>
>
> (i) *Prologue:*
> * Spotless gradle plugin issue
> [https://github.com/diffplug/spotless/issues/2850] is still pending (hence
> these version bump should be tested thoroughly (see test procedure below)
> * KAFKA-20182 and related GitHub PR's:
> ** [https://github.com/apache/kafka/pull/22012]
> ** [https://github.com/apache/kafka/pull/22025]
> (on) *Action point:* update gradle plugin version from *8.4.0* to *8.9.0*
> (!) *Test procedure (note: must be done locally):*
> # *./gradlew build -x test* passes (/) (spotlessCheck + checkstyle +
> spotbugs + compile all)
> # run in a loop (hundreds of times): *./gradlew spotlessApply --rerun-tasks
> --no-build-cache*
> ** note: for loop testing I created this script -->
> {*}_repeatUntilBuildFails.sh_{*}:
> {code:java}
> #!/bin/bash
> counter=0
> while ./gradlew clean spotlessApply --rerun-tasks --no-build-cache; do
> ((counter++))
> echo
> "**************************************************************************"
> echo "### Build succeeded (execution number: $counter) -->> running
> again... ###"
> echo
> "**************************************************************************"
> done
> ((counter++))
> echo ">>> Build failed on execution number: $counter at $(date) <<<"
> {code}
> *Note: test procedure taken from here (see commit messages):*
> *
> [https://github.com/apache/kafka/commit/7aaf4de8207dda7809735597383d3771810a4385]
> *
> [https://github.com/apache/kafka/commit/2327e51926d666d979f8363dedf0894390430a7c]
> *Spotless Gradle plugin release notes links:*
> * [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.9.0]
> * [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.8.0]
> * [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.7.0]
> * [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.6.0]
> * [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.5.1]
> * [https://github.com/diffplug/spotless/releases/tag/gradle%2F8.5.0]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)