Skip to content

Conversation

@stoty
Copy link
Contributor

@stoty stoty commented Feb 24, 2025

No description provided.

@stoty stoty requested a review from zabetak February 24, 2025 05:43
@F21
Copy link
Member

F21 commented Feb 24, 2025

Not sure if related to this change, but I am seeing test failures when running ./gradlew check using a clean clone of your branch using the eclipse-temurin:23 docker container. I also see the same error when using eclipse-temurin:8.

Here's the output of running ./gradlew check twice:

$ ./gradlew check

> Configure project :
Building Apache Calcite Avatica 1.27.0-SNAPSHOT

> Task :standalone-server:test FAILED
FAILURE   0.0sec, org.apache.calcite.avatica.shadetest.ShadingTest > validateShadedJar
    java.nio.file.NoSuchFileException: /calcite-avatica/standalone-server/build/libs
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.asIOException(UnixException.java:115)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:502)
        at java.base/java.nio.file.Files.newDirectoryStream(Files.java:482)
        at java.base/java.nio.file.Files.list(Files.java:3796)
        at org.apache.calcite.avatica.shadetest.ShadingTest.getShadedJarFile(ShadingTest.java:67)
        at org.apache.calcite.avatica.shadetest.ShadingTest.validateShadedJar(ShadingTest.java:50)


org.apache.calcite.avatica.shadetest.ShadingTest > validateShadedJar FAILED
    java.nio.file.NoSuchFileException: /calcite-avatica/standalone-server/build/libs
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.asIOException(UnixException.java:115)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:502)
        at java.base/java.nio.file.Files.newDirectoryStream(Files.java:482)
        at java.base/java.nio.file.Files.list(Files.java:3796)
        at org.apache.calcite.avatica.shadetest.ShadingTest.getShadedJarFile(ShadingTest.java:67)
        at org.apache.calcite.avatica.shadetest.ShadingTest.validateShadedJar(ShadingTest.java:50)
FAILURE   0.2sec,    1 completed,   1 failed,   0 skipped, org.apache.calcite.avatica.shadetest.ShadingTest
FAILURE   1.4sec,    1 completed,   1 failed,   0 skipped, Gradle Test Run :standalone-server:test

1 test completed, 1 failed

> Task :core:compileTestJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :server:compileTestJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':standalone-server:test'.
> There were failing tests. See the report at: file:///calcite-avatica/standalone-server/build/reports/tests/test/index.html

* Try:
> Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 11s
84 actionable tasks: 23 executed, 61 up-to-date
$ ./gradlew check

> Configure project :
Building Apache Calcite Avatica 1.27.0-SNAPSHOT

> Task :standalone-server:test FAILED
FAILURE   0.1sec, org.apache.calcite.avatica.shadetest.ShadingTest > validateShadedJar
    java.nio.file.NoSuchFileException: /calcite-avatica/standalone-server/build/libs
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.asIOException(UnixException.java:115)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:502)
        at java.base/java.nio.file.Files.newDirectoryStream(Files.java:482)
        at java.base/java.nio.file.Files.list(Files.java:3796)
        at org.apache.calcite.avatica.shadetest.ShadingTest.getShadedJarFile(ShadingTest.java:67)
        at org.apache.calcite.avatica.shadetest.ShadingTest.validateShadedJar(ShadingTest.java:50)


org.apache.calcite.avatica.shadetest.ShadingTest > validateShadedJar FAILED
    java.nio.file.NoSuchFileException: /calcite-avatica/standalone-server/build/libs
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.asIOException(UnixException.java:115)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:502)
        at java.base/java.nio.file.Files.newDirectoryStream(Files.java:482)
        at java.base/java.nio.file.Files.list(Files.java:3796)
        at org.apache.calcite.avatica.shadetest.ShadingTest.getShadedJarFile(ShadingTest.java:67)
        at org.apache.calcite.avatica.shadetest.ShadingTest.validateShadedJar(ShadingTest.java:50)
FAILURE   0.2sec,    1 completed,   1 failed,   0 skipped, org.apache.calcite.avatica.shadetest.ShadingTest
FAILURE   0.9sec,    1 completed,   1 failed,   0 skipped, Gradle Test Run :standalone-server:test

1 test completed, 1 failed

> Task :metrics-dropwizardmetrics:test
          0.1sec,    1 completed,   0 failed,   0 skipped, org.apache.calcite.avatica.metrics.dropwizard.DropwizardCounterTest
          0.0sec,    1 completed,   0 failed,   0 skipped, org.apache.calcite.avatica.metrics.dropwizard.DropwizardGaugeTest
          0.6sec,    1 completed,   0 failed,   0 skipped, org.apache.calcite.avatica.metrics.dropwizard.DropwizardHistogramTest
          0.0sec,    1 completed,   0 failed,   0 skipped, org.apache.calcite.avatica.metrics.dropwizard.DropwizardMeterTest
          0.0sec,    3 completed,   0 failed,   0 skipped, org.apache.calcite.avatica.metrics.dropwizard.DropwizardMetricsSystemFactoryTest
          0.2sec,    5 completed,   0 failed,   0 skipped, org.apache.calcite.avatica.metrics.dropwizard.DropwizardMetricsSystemTest
          0.0sec,    1 completed,   0 failed,   0 skipped, org.apache.calcite.avatica.metrics.dropwizard.DropwizardTimerTest
          1.7sec,   13 completed,   0 failed,   0 skipped, Gradle Test Run :metrics-dropwizardmetrics:test

> Task :metrics:test
          1.1sec,    3 completed,   0 failed,   0 skipped, org.apache.calcite.avatica.metrics.MetricsSystemLoaderTest
          0.0sec,    1 completed,   0 failed,   0 skipped, org.apache.calcite.avatica.metrics.noop.NoopMetricsSystemFactoryTest
          0.0sec,    2 completed,   0 failed,   0 skipped, org.apache.calcite.avatica.metrics.noop.NoopMetricsSystemTest
          1.8sec,    6 completed,   0 failed,   0 skipped, Gradle Test Run :metrics:test

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':standalone-server:test'.
> There were failing tests. See the report at: file:///calcite-avatica/standalone-server/build/reports/tests/test/index.html

* Try:
> Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 6s
99 actionable tasks: 17 executed, 82 up-to-date
$

@stoty
Copy link
Contributor Author

stoty commented Feb 24, 2025

I can repro that.
build works, but check doesn't.

I will try and look into a gradle lifecycle more.

@stoty
Copy link
Contributor Author

stoty commented Feb 24, 2025

I have added the dependsOn to both modules, now both check and build works for me @F21 .

@F21
Copy link
Member

F21 commented Feb 24, 2025

Works for me, but seeing an error related to ConnectionPropertiesHATest. I will file an issue for that.

@stoty
Copy link
Contributor Author

stoty commented Feb 25, 2025

Committed manually.

@stoty stoty closed this Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants