You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2025/05/06 16:58:57 UTC

[PR] [improve][build] Upgrade Gradle Develocity Maven Extension dependencies [pulsar]

lhotari opened a new pull request, #24260:
URL: https://github.com/apache/pulsar/pull/24260

   ### Motivation
   
   In Pulsar CI, Gradle Develocity Maven Extension is used to push build scans to [ASF's Develocity server](https://develocity.apache.org/scans?search.rootProjectNames=Pulsar).
   
   Current Gradle Develocity Maven Extension fails on Java 24 with this type of exception:
   ```
   [ERROR] Error executing a DevelocityListener callback
   org.codehaus.groovy.GroovyBugError: BUG! exception in phase 'semantic analysis' in source unit '/Users/lari/workspace-pulsar/pulsar/.mvn/develocity-custom-user-data.groovy' Unsupported class file major version 68
       at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation (CompilationUnit.java:906)
       at org.codehaus.groovy.control.CompilationUnit.compile (CompilationUnit.java:628)
       at groovy.lang.GroovyClassLoader.doParseClass (GroovyClassLoader.java:389)
       at groovy.lang.GroovyClassLoader.lambda$parseClass$3 (GroovyClassLoader.java:332)
       at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute (StampedCommonCache.java:163)
       at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut (StampedCommonCache.java:154)
       at groovy.lang.GroovyClassLoader.parseClass (GroovyClassLoader.java:330)
       at groovy.lang.GroovyShell.parseClass (GroovyShell.java:526)
       at groovy.lang.GroovyShell.parse (GroovyShell.java:538)
       at groovy.lang.GroovyShell.evaluate (GroovyShell.java:426)
       at groovy.lang.GroovyShell.evaluate (GroovyShell.java:470)
       at com.gradle.GroovyScriptUserData.evaluateGroovyScript (GroovyScriptUserData.java:41)
       at com.gradle.GroovyScriptUserData.evaluate (GroovyScriptUserData.java:18)
       at com.gradle.CommonCustomUserDataListener.configure (CommonCustomUserDataListener.java:32)
       at com.gradle.CommonCustomUserDataDevelocityListener.configure (CommonCustomUserDataDevelocityListener.java:20)
       at com.gradle.maven.internal.DevelocityLifecycleManager.a (SourceFile:400)
       at java.lang.Iterable.forEach (Iterable.java:75)
       at java.util.Collections$UnmodifiableCollection.forEach (Collections.java:1117)
       at com.gradle.maven.internal.DevelocityLifecycleManager.b (SourceFile:398)
       at com.gradle.maven.internal.DevelocityLifecycleManager.c (SourceFile:370)
       at java.util.stream.ForEachOps$ForEachOp$OfRef.accept (ForEachOps.java:186)
       at java.util.stream.ReferencePipeline$15$1.accept (ReferencePipeline.java:581)
       at java.util.stream.IntPipeline$1$1.accept (IntPipeline.java:180)
       at java.util.stream.Streams$RangeIntSpliterator.forEachRemaining (Streams.java:108)
       at java.util.Spliterator$OfInt.forEachRemaining (Spliterator.java:712)
       at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:570)
       at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:560)
       at java.util.stream.ForEachOps$ForEachOp.evaluateSequential (ForEachOps.java:153)
       at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential (ForEachOps.java:176)
       at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:265)
       at java.util.stream.ReferencePipeline.forEach (ReferencePipeline.java:636)
       at com.gradle.maven.internal.DevelocityLifecycleManager.a (SourceFile:370)
       at com.gradle.maven.internal.DevelocityLifecycleManager.onEvent (SourceFile:305)
       at org.apache.maven.eventspy.internal.EventSpyDispatcher.onEvent (EventSpyDispatcher.java:86)
       at org.apache.maven.eventspy.internal.EventSpyExecutionListener.sessionStarted (EventSpyExecutionListener.java:48)
       at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:54)
       at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:38)
       at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:71)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
       at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
       at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
       at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
       at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
       at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
       at java.lang.reflect.Method.invoke (Method.java:565)
       at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
       at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
       at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
       at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
   Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 68
   ```
   
   ### Modifications
   
   - upgrade com.gradle:common-custom-user-data-maven-extension to 2.0.2 version which includes a fix for JDK 24 
   - upgrade com.gradle:develocity-maven-extension to 1.23.2
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve][build] Upgrade Gradle Develocity Maven Extension dependencies [pulsar]

Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari merged PR #24260:
URL: https://github.com/apache/pulsar/pull/24260


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve][build] Upgrade Gradle Develocity Maven Extension dependencies [pulsar]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #24260:
URL: https://github.com/apache/pulsar/pull/24260#issuecomment-2855627001

   ## [Codecov](https://app.codecov.io/gh/apache/pulsar/pull/24260?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Project coverage is 74.20%. Comparing base [(`bbc6224`)](https://app.codecov.io/gh/apache/pulsar/commit/bbc62245c5ddba1de4b1e7cee4ab49334bc36277?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`e2eb9c2`)](https://app.codecov.io/gh/apache/pulsar/commit/e2eb9c27a2307024629176eaac1959a50b556092?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   > Report is 1070 commits behind head on master.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   [![Impacted file tree graph](https://app.codecov.io/gh/apache/pulsar/pull/24260/graphs/tree.svg?width=650&height=150&src=pr&token=acYqCpsK9J&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)](https://app.codecov.io/gh/apache/pulsar/pull/24260?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #24260      +/-   ##
   ============================================
   + Coverage     73.57%   74.20%   +0.63%     
   + Complexity    32624    32191     -433     
   ============================================
     Files          1877     1866      -11     
     Lines        139502   144968    +5466     
     Branches      15299    16561    +1262     
   ============================================
   + Hits         102638   107576    +4938     
   + Misses        28908    28870      -38     
   - Partials       7956     8522     +566     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/pulsar/pull/24260/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [inttests](https://app.codecov.io/gh/apache/pulsar/pull/24260/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `26.70% <ø> (+2.12%)` | :arrow_up: |
   | [systests](https://app.codecov.io/gh/apache/pulsar/pull/24260/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `23.33% <ø> (-0.99%)` | :arrow_down: |
   | [unittests](https://app.codecov.io/gh/apache/pulsar/pull/24260/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `73.68% <ø> (+0.83%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   [see 1079 files with indirect coverage changes](https://app.codecov.io/gh/apache/pulsar/pull/24260/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   </details>
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org