Open rhass opened 2 years ago
Please provide a simple reproduction? I think we have simple test cases here showing that 2.13 works.
Failing that, a full reproduction would be helpful, but it's often not possible to provide this.
Yeah, I tried to see if I could modify the Integration Test for the multi-project build to give a reproduction, but it hasn't been as straight-forward as I had hoped. I know I am not the only person with the issue... so there likely is a way to reproduce, I just haven't identified a simple repro path yet.
@maiflai When I try running the integration tests locally I found a few failing ones. However, the failures might be a different issue.
Is there a setup step I am missing which might be causing this?
This project should have locked down everything apart from the JDK version, so I don't quite know what might be different.
BUILD SUCCESSFUL in 19m 58s 15 actionable tasks: 15 executed
JVM: 1.8.0_241 (Oracle Corporation 25.241-b07)
https://github.com/scoverage/gradle-scoverage/actions?query=branch%3Amaster says that this has built using GitHub Actions, but it's now a while ago and the log has gone. It should have used JDK 11 according to https://github.com/scoverage/gradle-scoverage/blob/master/.github/workflows/gradle.yml
Please could you provide the actual test failures, and perhaps the full build log?
@maiflai I generated a buildscan here: https://scans.gradle.com/s/lc2oudpwa5hpm
The zipfile below is the build/reports
directory. The buildscan will probably be of more value though.
reports.zip
Actually, look at this build scan instead: https://scans.gradle.com/s/f6gejlextz7rm
I had some leftover cruft in the functionalTest path which I forgot to remove before I ran that last one. This is more inline with the failures I was seeing before. Sorry for any confusion.
I think you may still have some cruft leftover here - have you tried a full git clean
please?
On your original failure - what other plugins are you using please? I seem to recall difficulties with other plugins which add scala dependencies to the build classpath.
classpath
+--- com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:7.1.0
| \--- gradle.plugin.com.github.johnrengelman:shadow:7.1.0
| +--- org.jdom:jdom2:2.0.6
| +--- org.ow2.asm:asm:9.2
| +--- org.ow2.asm:asm-commons:9.2
| | +--- org.ow2.asm:asm:9.2
| | +--- org.ow2.asm:asm-tree:9.2
| | | \--- org.ow2.asm:asm:9.2
| | \--- org.ow2.asm:asm-analysis:9.2
| | \--- org.ow2.asm:asm-tree:9.2 (*)
| +--- commons-io:commons-io:2.11.0
| +--- org.apache.ant:ant:1.10.11
| | \--- org.apache.ant:ant-launcher:1.10.11
| +--- org.codehaus.plexus:plexus-utils:3.4.1
| +--- org.apache.logging.log4j:log4j-core:2.14.1 -> 2.17.1
| | \--- org.apache.logging.log4j:log4j-api:2.17.1
| \--- org.vafer:jdependency:2.7.0
+--- com.vanniktech.dependency.graph.generator:com.vanniktech.dependency.graph.generator.gradle.plugin:0.5.0
| \--- gradle.plugin.com.vanniktech:gradle-dependency-graph-generator-plugin:0.5.0
| +--- guru.nidi:graphviz-java:0.5.2
| | +--- org.apache.xmlgraphics:batik-rasterizer:1.9
| | | \--- org.apache.xmlgraphics:batik-svgrasterizer:1.9
| | | +--- org.apache.xmlgraphics:batik-parser:1.9
| | | | +--- org.apache.xmlgraphics:batik-awt-util:1.9
| | | | | \--- org.apache.xmlgraphics:batik-util:1.9
| | | | | +--- org.apache.xmlgraphics:batik-constants:1.9
| | | | | \--- org.apache.xmlgraphics:batik-i18n:1.9
| | | | +--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | +--- org.apache.xmlgraphics:batik-xml:1.9
| | | | | \--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | +--- xml-apis:xml-apis:1.3.04
| | | | \--- xml-apis:xml-apis-ext:1.3.04
| | | +--- org.apache.xmlgraphics:batik-transcoder:1.9
| | | | +--- org.apache.xmlgraphics:batik-anim:1.9
| | | | | +--- org.apache.xmlgraphics:batik-awt-util:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-css:1.9
| | | | | | +--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | | | +--- org.apache.xmlgraphics:xmlgraphics-commons:2.2
| | | | | | | +--- commons-io:commons-io:1.3.1 -> 2.11.0
| | | | | | | \--- commons-logging:commons-logging:1.0.4
| | | | | | +--- xml-apis:xml-apis:1.3.04
| | | | | | \--- xml-apis:xml-apis-ext:1.3.04
| | | | | +--- org.apache.xmlgraphics:batik-dom:1.9
| | | | | | +--- org.apache.xmlgraphics:batik-css:1.9 (*)
| | | | | | +--- org.apache.xmlgraphics:batik-ext:1.9
| | | | | | +--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | | | +--- org.apache.xmlgraphics:batik-xml:1.9 (*)
| | | | | | +--- xalan:xalan:2.7.2
| | | | | | | \--- xalan:serializer:2.7.2
| | | | | | | \--- xml-apis:xml-apis:1.3.04
| | | | | | +--- xml-apis:xml-apis:1.3.04
| | | | | | \--- xml-apis:xml-apis-ext:1.3.04
| | | | | +--- org.apache.xmlgraphics:batik-ext:1.9
| | | | | +--- org.apache.xmlgraphics:batik-parser:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-svg-dom:1.9
| | | | | | +--- org.apache.xmlgraphics:batik-awt-util:1.9 (*)
| | | | | | +--- org.apache.xmlgraphics:batik-css:1.9 (*)
| | | | | | +--- org.apache.xmlgraphics:batik-dom:1.9 (*)
| | | | | | +--- org.apache.xmlgraphics:batik-ext:1.9
| | | | | | +--- org.apache.xmlgraphics:batik-parser:1.9 (*)
| | | | | | +--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | | | +--- xml-apis:xml-apis:1.3.04
| | | | | | \--- xml-apis:xml-apis-ext:1.3.04
| | | | | +--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | | +--- xml-apis:xml-apis:1.3.04
| | | | | \--- xml-apis:xml-apis-ext:1.3.04
| | | | +--- org.apache.xmlgraphics:batik-awt-util:1.9 (*)
| | | | +--- org.apache.xmlgraphics:batik-bridge:1.9
| | | | | +--- org.apache.xmlgraphics:batik-anim:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-awt-util:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-css:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-dom:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-ext:1.9
| | | | | +--- org.apache.xmlgraphics:batik-gvt:1.9
| | | | | | +--- org.apache.xmlgraphics:batik-awt-util:1.9 (*)
| | | | | | \--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-parser:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-script:1.9
| | | | | | +--- org.apache.xmlgraphics:batik-anim:1.9 (*)
| | | | | | +--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | | | \--- xml-apis:xml-apis:1.3.04
| | | | | +--- org.apache.xmlgraphics:batik-svg-dom:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-xml:1.9 (*)
| | | | | +--- xalan:xalan:2.7.2 (*)
| | | | | +--- xml-apis:xml-apis:1.3.04
| | | | | \--- xml-apis:xml-apis-ext:1.3.04
| | | | +--- org.apache.xmlgraphics:batik-dom:1.9 (*)
| | | | +--- org.apache.xmlgraphics:batik-gvt:1.9 (*)
| | | | +--- org.apache.xmlgraphics:batik-svggen:1.9
| | | | | +--- org.apache.xmlgraphics:batik-awt-util:1.9 (*)
| | | | | +--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | | \--- xml-apis:xml-apis:1.3.04
| | | | +--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | | +--- org.apache.xmlgraphics:batik-xml:1.9 (*)
| | | | +--- xml-apis:xml-apis:1.3.04
| | | | \--- xml-apis:xml-apis-ext:1.3.04
| | | \--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | +--- org.apache.xmlgraphics:batik-codec:1.9
| | | +--- org.apache.xmlgraphics:batik-awt-util:1.9 (*)
| | | +--- org.apache.xmlgraphics:batik-bridge:1.9 (*)
| | | +--- org.apache.xmlgraphics:batik-transcoder:1.9 (*)
| | | +--- org.apache.xmlgraphics:batik-util:1.9 (*)
| | | \--- xml-apis:xml-apis:1.3.04
| | +--- org.apache.xmlgraphics:xmlgraphics-commons:2.2 (*)
| | +--- net.arnx:nashorn-promise:0.1.1
| | +--- com.eclipsesource.j2v8:j2v8_macosx_x86_64:4.6.0
| | +--- com.eclipsesource.j2v8:j2v8_linux_x86_64:4.6.0
| | +--- com.eclipsesource.j2v8:j2v8_win32_x86_64:4.6.0
| | +--- com.eclipsesource.j2v8:j2v8_win32_x86:4.6.0
| | +--- org.apache.commons:commons-exec:1.3
| | +--- org.slf4j:jcl-over-slf4j:1.7.25
| | | \--- org.slf4j:slf4j-api:1.7.25
| | +--- org.slf4j:jul-to-slf4j:1.7.25
| | | \--- org.slf4j:slf4j-api:1.7.25
| | \--- org.slf4j:slf4j-api:1.7.25
| \--- org.jetbrains.kotlin:kotlin-stdlib:1.2.41 -> 1.5.31
| +--- org.jetbrains:annotations:13.0
| \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31
+--- org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin:10.2.0
| \--- org.jlleitschuh.gradle:ktlint-gradle:10.2.0
+--- org.gradle.test-retry:org.gradle.test-retry.gradle.plugin:1.2.1
| \--- org.gradle:test-retry-gradle-plugin:1.2.1
+--- org.sonarqube:org.sonarqube.gradle.plugin:3.4.0.2513
| \--- org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.4.0.2513
| \--- org.sonarsource.scanner.api:sonar-scanner-api:2.16.2.588
+--- org.apache.logging.log4j:log4j-core:{require 2.17.1; reject [2.0, 2.17.1)} -> 2.17.1 (c)
+--- org.jetbrains.kotlin:kotlin-stdlib:{strictly 1.5.31} -> 1.5.31 (c)
+--- org.jetbrains:annotations:{strictly 13.0} -> 13.0 (c)
\--- org.jetbrains.kotlin:kotlin-stdlib-common:{strictly 1.5.31} -> 1.5.31 (c)
(c) - dependency constraint
(*) - dependencies omitted (listed previously)
can you supply the full set of dependencies for all configurations please? I don't think there's anything obvious in the main build classpath.
Same here :(
* Gradle Scoverage Plugin Version: 8.1
* Gradle Version: 8.10
* Scala Version: 2.12.19
* Java Version: 11
Sorry - please could you provide a minimal build that reproduces the problem?
Thanks, Stu
7.0.0
1.4.11
7.14.2
2.13.7
11.0.13
I originally filed this against the scalac-scoverage-plugin. As a result they have added a unit test for the
.aggregate()
method which this plugin calls, but it seems to pass suggesting the problem may be exist within the Gradle plugin itself.Running
aggregateScoverage
with Scala 2.13 results in the following stack trace: