[
https://issues.apache.org/jira/browse/CALCITE-6851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17930030#comment-17930030
]
Istvan Toth commented on CALCITE-6851:
--------------------------------------
Fixed in [c8e57f2cdce2c91d33ad0a33ac67cf8de3027008
.|https://github.com/apache/calcite-avatica/commit/c8e57f2cdce2c91d33ad0a33ac67cf8de3027008]
> ShadingTest.validateShadedJar fails on first/clean build
> --------------------------------------------------------
>
> Key: CALCITE-6851
> URL: https://issues.apache.org/jira/browse/CALCITE-6851
> Project: Calcite
> Issue Type: Bug
> Components: avatica
> Reporter: Stamatis Zampetakis
> Assignee: Istvan Toth
> Priority: Major
> Labels: pull-request-available
> Fix For: avatica-1.27.0
>
>
> The ShadingTest.validateShadedJar fails every time during the first {{build}}
> and consistently if we run {{clean}} before {{build}}.
> {code:bash}
> ./gradlew build
> {code}
> {noformat}
> > Task :shaded:avatica:test FAILED
> FAILURE 0.0sec, org.apache.calcite.avatica.shadetest.ShadingTest >
> validateShadedJar
> java.lang.AssertionError: Could not find jar in
> /tmp/avatica-126/calcite-avatica/shaded/core/build/libs
> at org.junit.Assert.fail(Assert.java:89)
> at org.junit.Assert.assertTrue(Assert.java:42)
> at
> org.apache.calcite.avatica.shadetest.ShadingTest.getShadedJarFile(ShadingTest.java:65)
> at
> org.apache.calcite.avatica.shadetest.ShadingTest.validateShadedJar(ShadingTest.java:46)
> org.apache.calcite.avatica.shadetest.ShadingTest > validateShadedJar FAILED
> java.lang.AssertionError: Could not find jar in
> /tmp/avatica-126/calcite-avatica/shaded/core/build/libs
> at org.junit.Assert.fail(Assert.java:89)
> at org.junit.Assert.assertTrue(Assert.java:42)
> at
> org.apache.calcite.avatica.shadetest.ShadingTest.getShadedJarFile(ShadingTest.java:65)
> at
> org.apache.calcite.avatica.shadetest.ShadingTest.validateShadedJar(ShadingTest.java:46)
> FAILURE 0.1sec, 1 completed, 1 failed, 0 skipped,
> org.apache.calcite.avatica.shadetest.ShadingTest
> FAILURE 1.2sec, 1 completed, 1 failed, 0 skipped, Gradle Test Run
> :shaded:avatica:test
> 1 test completed, 1 failed
> {noformat}
> The test seems to rely on some assumptions about the generation of the jar
> that does not always hold leading to build failures.
> The workaround is to launch the build two times (and don't clean); in the
> first build the test fails but usually passes on the second.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)