GoogleCloudPlatform / java-docs-samples

Java and Kotlin Code samples used on cloud.google.com
https://cloud.google.com/java
Apache License 2.0
1.78k stars 2.84k forks source link

BigTable Fraud Detection test failed when upgrading libraries-bom #7358

Closed kweinmeister closed 2 years ago

kweinmeister commented 2 years ago

7355 upgraded the core set of client libraries across many java-docs-samples directories, and the build failed on the test below. This issue has been created to upgrade to the latest com.google.cloud:libraries-bom along with any other matching dependencies, and ensure that the test works.

Running StreamingPipelineTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 887.799 sec <<< FAILURE!
StreamingPipelineTest  Time elapsed: 887.798 sec  <<< FAILURE!
java.lang.AssertionError: expected:<1> but was:<0>
    at org.junit.Assert.fail(Assert.java:89)
    at org.junit.Assert.failNotEquals(Assert.java:835)
    at org.junit.Assert.assertEquals(Assert.java:647)
    at org.junit.Assert.assertEquals(Assert.java:633)

Results :

Failed tests:   StreamingPipelineTest: expected:<1> but was:<0>

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
kweinmeister commented 2 years ago

This test is still failing in #7376. I might suggest trying updates of the other libraries, in case there's a version incompatibility. Here's the output of mvn versions:display-dependency-updates:

[INFO]   com.google.cloud:google-cloud-aiplatform .............. 2.9.8 -> 3.6.0
[INFO]   com.google.cloud:google-cloud-storage ................ 2.7.2 -> 2.14.0
[INFO]   com.google.cloud.bigtable:bigtable-hbase-beam ......... 2.3.0 -> 2.6.3
[INFO]   org.apache.beam:beam-runners-direct-java ............ 2.40.0 -> 2.42.0
[INFO]   org.apache.beam:beam-runners-google-cloud-dataflow-java ...
[INFO]                                                         2.40.0 -> 2.42.0
[INFO]   org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core ...
[INFO]                                                         2.40.0 -> 2.42.0
[INFO]   org.slf4j:slf4j-api .................................. 1.7.36 -> 2.0.3
[INFO]   org.slf4j:slf4j-simple ............................... 1.7.36 -> 2.0.3