Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spanner Samples updated to v6 com.google.cloud:libraries-bom #3182

Closed
lesv opened this issue Jun 17, 2020 · 12 comments
Closed

Spanner Samples updated to v6 com.google.cloud:libraries-bom #3182

lesv opened this issue Jun 17, 2020 · 12 comments
Assignees
Labels
api: spanner Issues related to the Spanner API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@lesv
Copy link
Contributor

lesv commented Jun 17, 2020

Found in #3179 logs

Looks like methods changed in a big way.

  • appengine-java11/spanner
  • functions/spanner
  • spanner/cloud-client
  • spanner/jdbc
  • spanner/leaderboard/complete
  • spanner/leaderboard/step4
  • spanner/leaderboard/step5
  • spanner/leaderboard/step6

@elharo FYI

@lesv lesv added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. api: spanner Issues related to the Spanner API. labels Jun 17, 2020
@skuruppu
Copy link
Contributor

These failures are surprising because we haven't removed any of these packages or methods that the logs say it can't find. So it's likely some issue with the dependency management.

Unfortunately, I don't really understand the dependency management setup we have. @olavloite would you please be able to take a look?

@olavloite
Copy link
Contributor

This is the same problem as in #3139 and is caused by a missing dependency that should be included for all builds for Java 9 and higher. The base cause is mojohaus/flatten-maven-plugin#145, and a workaround was added in googleapis/java-spanner#261, but that is pending the release of Spanner client 1.55.2.

What does surprise me, however, is that this was not already picked up by the Samples test that are executed for each PR for the Spanner client. I'll add an issue to the Spanner repository to investigate why that is, to prevent this kind of error from happening again.

@lesv
Copy link
Contributor Author

lesv commented Jun 18, 2020

Thanks - It also fails in V7. We are using the libraries-bom 5.4.0 and haven't updated since then due to this error.

@lesv
Copy link
Contributor Author

lesv commented Jun 18, 2020

@elharo @stephaniewang526 PTAL - The problem that @olavloite is talking about is that a bad client was released and put into the libraries-bom - the exact opposite of what we want - we probably want to figure out a process where when that happens, we signal the bom to revert the version so users aren't given bad things.

@olavloite
Copy link
Contributor

The reason this did not fail the client library build is that the Spanner client library only tested the Samples using Java 8, while the dependency error that occurred was related to a dependency that should only be included in Java 9 and higher.

@skuruppu
Copy link
Contributor

I'm trying to get googleapis/java-spanner#259 merged which is v1.56.0 that has googleapis/java-spanner#261.

@skuruppu
Copy link
Contributor

googleapis/java-spanner#259 is finally merged. Sorry for the delay.

@yoshi-automation yoshi-automation added 🚨 This issue needs some love. and removed 🚨 This issue needs some love. labels Jun 24, 2020
@skuruppu
Copy link
Contributor

It seems like this issue is still happening since I'm seeing the same errors in googleapis/java-spanner#298.

@olavloite
Copy link
Contributor

It seems like this issue is still happening since I'm seeing the same errors in googleapis/java-spanner#298.

It seems that Spanner 1.56.0 is not included in libraries-bom 7.0.2. libraries-bom 7.0.2 defines google.cloud.java.version 0.129.0, which again includes Spanner 1.55.1.

@suztomo
Copy link
Contributor

suztomo commented Jun 25, 2020

I’m preparing Libraries-bom 8.0.0 that includes the latest google-cloud-bom.

@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Jun 25, 2020
@olavloite
Copy link
Contributor

Thanks @suztomo
libraries-bom 8.0.0 finally seems to fix this problem: googleapis/java-spanner#307

@lesv
Copy link
Contributor Author

lesv commented Jun 25, 2020

Yep - thanks everyone!

@lesv lesv closed this as completed Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

5 participants