Stamatis Zampetakis created CALCITE-6851: --------------------------------------------
Summary: 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 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)