[
https://issues.apache.org/jira/browse/KAFKA-19707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dejan Stojadinović updated KAFKA-19707:
---------------------------------------
Description:
*Prologue:* this issue was discovered while working on Gradle upgrade (from 8
to 9); related JIRA tickets:
* KAFKA-19174
* KAFKA-19654
{*}Environment{*}:
- Develocity instance (version 2025.2.4):
[https://develocity.apache.org/scans?search.rootProjectNames=kafka]
- kafka main Git branch (trunk)
- GitHub PR's related to Gradle version upgrade (8 to 9):
-- main PR: Gradle upgrade related commits only:
[https://github.com/apache/kafka/pull/19513]
-- helper PR (so to say): used to test issues related to CI build (i.e. with
GitHub Actions <<-->> Develocity scan publishing issues):
[https://github.com/apache/kafka/pull/20450]
{*}Scenario{*}:
* upgrade `com.gradle.develocity` Gradle plugin version from a current version
(3.19) to any recent version (3.19.1 and/or more recent)
* GitHub Action build breaks (with this error: {_}"build scan failed to be
published"{_}) for both trunk (with Gradle 8.14.3) and PR (with Gradle 9.0.0)
* (!) PR branch with Gradle 9.0.0: Gradle version displayed on Github Actions
build is wrong: 8.14.3
*Test cases:*
* test case [1]
** baseline: Gradle 8.14.3 /com.gradle.develocity 3.19
** git commit: last main branch (trunk) commit
** build result -->> everything works fine (/) (no surprises here, it's a
trunk after all)
* test case [2]
** Gradle version 8.14.3 / com.gradle.develocity 3.19.2
** git commit:
[https://github.com/apache/kafka/pull/20450/commits/d930867e8c2b4dd3f79f032e7b17328cf0ea97ef]
** Github actions error: (x)
[https://github.com/apache/kafka/actions/runs/17714050963]
* test case [3]
** Gradle version 9.0.0 / com.gradle.develocity 3.19
** git commit:
[https://github.com/apache/kafka/pull/20450/commits/3b624732469835abc54ce06c2a554361578e7c6a]
** build result -->> everything works fine (/)
** Giithub actions build
[link]([https://github.com/apache/kafka/actions/runs/17714609830/job/50338068122?pr=20450])
** scan for Java 17: [https://develocity.apache.org/s/o2v23hp2575mu]
** scan for Java 24: [https://develocity.apache.org/s/nui35ngzalmrm]
* test case [4]
** Gradle version 9.0.0 / com.gradle.develocity 3.19.2
** git commit:
[https://github.com/apache/kafka/pull/20450/commits/e1a4ff5a5be79a7a9592795e48e40b2b421a10b0]
** Github actions error: (x)
[https://github.com/apache/kafka/actions/runs/17719128481]
** (!) _note: Gradle version displayed on Github Actions build is wrong:
8.14.3 (not 9.0.0)_
was:
*Prologue:* this issue was discovered while working on Gradle upgrade (from 8
to 9); related JIRA tickets:
* KAFKA-19174
* KAFKA-19654
{*}Environment{*}:
- Develocity instance (version 2025.2.4):
[https://develocity.apache.org/scans?search.rootProjectNames=kafka]
- kafka main Git branch (trunk)
- GitHub PR's related to Gradle version upgrade (8 to 9):
-- main PR: Gradle upgrade related commits only:
[https://github.com/apache/kafka/pull/19513]
-- helper PR (so to say): used to test issues related to CI build (i.e. with
GitHub Actions <<-->> Develocity scan publishing issues):
[https://github.com/apache/kafka/pull/20450]
{*}Scenario{*}:
* upgrade `com.gradle.develocity` Gradle plugin version from a current version
(3.19) to any recent version (3.19.1 and/or more recent)
* GitHub Action build breaks (with this error: {_}"build scan failed to be
published"{_}) for both trunk (with Gradle 8.14.3) and PR (with Gradle 9.0.0)
* (!) PR branch with Gradle 9.0.0: Gradle version displayed on Github Actions
build is wrong: 8.14.3
*Test cases:*
* test case #1 (Gradle version 8.14.3):
** git branch: main branch (trunk)
** GitHub Actions for Gradle builds version used in trunk: 4.3.0 (Gradle
version for Githib Actions:
.github/actions/setup-gradle/action.yml/gradle-version: wrapper)
** `com.gradle.develocity` Gradle plugin version used in trunk: 3.19 -->>
everything works fine (/)
** however, any upgrade for `com.gradle.develocity` Gradle plugin (to 3.19.1
or more recent) breaks the build (x) (i.e. build scan failed to be published):
***
[https://github.com/apache/kafka/pull/20450/commits/d930867e8c2b4dd3f79f032e7b17328cf0ea97ef]
*** [https://github.com/apache/kafka/actions/runs/17714050963]
* test case #2 (Gradle version 9.0.0):
** git branch: GitHub PR that bumps gradle version from 8.14.3 to 9.0.0
** GitHub Actions for Gradle builds version used in PR: 4.4.3 (Gradle version
for Githib Actions: .github/actions/setup-gradle/action.yml/gradle-version:
wrapper)
** `com.gradle.develocity` Gradle plugin version used in PR: 3.19 -->>
everything works fine (/)
***
[https://github.com/apache/kafka/pull/20450/commits/3b624732469835abc54ce06c2a554361578e7c6a]
***
[https://github.com/apache/kafka/actions/runs/17714609830/job/50338068122?pr=20450]
*** [https://develocity.apache.org/s/o2v23hp2575mu]
*** [https://develocity.apache.org/s/nui35ngzalmrm]
** same as above (in test case #1): any upgrade for `com.gradle.develocity`
Gradle plugin (to 3.19.1 or more recent) breaks the build (x) (i.e. build scan
failed to be published):
***
[https://github.com/apache/kafka/pull/20450/commits/e1a4ff5a5be79a7a9592795e48e40b2b421a10b0]
*** [https://github.com/apache/kafka/actions/runs/17719128481] ((!) note:
Gradle version displayed on Github Actions build is wrong: 8.14.3)
> Develocity Gradle plugin version can't be upgraded (CI build fails with
> error: "build scan failed to be published")
> -------------------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-19707
> URL: https://issues.apache.org/jira/browse/KAFKA-19707
> Project: Kafka
> Issue Type: Task
> Components: build
> Reporter: Dejan Stojadinović
> Priority: Minor
> Labels: CI, GitHub, Github, build, gradle, scan, update, upgrade
>
> *Prologue:* this issue was discovered while working on Gradle upgrade (from 8
> to 9); related JIRA tickets:
> * KAFKA-19174
> * KAFKA-19654
> {*}Environment{*}:
> - Develocity instance (version 2025.2.4):
> [https://develocity.apache.org/scans?search.rootProjectNames=kafka]
> - kafka main Git branch (trunk)
> - GitHub PR's related to Gradle version upgrade (8 to 9):
> -- main PR: Gradle upgrade related commits only:
> [https://github.com/apache/kafka/pull/19513]
> -- helper PR (so to say): used to test issues related to CI build (i.e. with
> GitHub Actions <<-->> Develocity scan publishing issues):
> [https://github.com/apache/kafka/pull/20450]
> {*}Scenario{*}:
> * upgrade `com.gradle.develocity` Gradle plugin version from a current
> version (3.19) to any recent version (3.19.1 and/or more recent)
> * GitHub Action build breaks (with this error: {_}"build scan failed to be
> published"{_}) for both trunk (with Gradle 8.14.3) and PR (with Gradle 9.0.0)
> * (!) PR branch with Gradle 9.0.0: Gradle version displayed on Github
> Actions build is wrong: 8.14.3
> *Test cases:*
> * test case [1]
> ** baseline: Gradle 8.14.3 /com.gradle.develocity 3.19
> ** git commit: last main branch (trunk) commit
> ** build result -->> everything works fine (/) (no surprises here, it's a
> trunk after all)
> * test case [2]
> ** Gradle version 8.14.3 / com.gradle.develocity 3.19.2
> ** git commit:
> [https://github.com/apache/kafka/pull/20450/commits/d930867e8c2b4dd3f79f032e7b17328cf0ea97ef]
> ** Github actions error: (x)
> [https://github.com/apache/kafka/actions/runs/17714050963]
> * test case [3]
> ** Gradle version 9.0.0 / com.gradle.develocity 3.19
> ** git commit:
> [https://github.com/apache/kafka/pull/20450/commits/3b624732469835abc54ce06c2a554361578e7c6a]
> ** build result -->> everything works fine (/)
> ** Giithub actions build
> [link]([https://github.com/apache/kafka/actions/runs/17714609830/job/50338068122?pr=20450])
> ** scan for Java 17: [https://develocity.apache.org/s/o2v23hp2575mu]
> ** scan for Java 24: [https://develocity.apache.org/s/nui35ngzalmrm]
> * test case [4]
> ** Gradle version 9.0.0 / com.gradle.develocity 3.19.2
> ** git commit:
> [https://github.com/apache/kafka/pull/20450/commits/e1a4ff5a5be79a7a9592795e48e40b2b421a10b0]
> ** Github actions error: (x)
> [https://github.com/apache/kafka/actions/runs/17719128481]
> ** (!) _note: Gradle version displayed on Github Actions build is wrong:
> 8.14.3 (not 9.0.0)_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)