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

[BEAM-11205] Update Libraries BOM dependencies to version 25.2.0 #17497

Merged
merged 3 commits into from
May 5, 2022

Conversation

benEng
Copy link
Contributor

@benEng benEng commented Apr 28, 2022

Updating Google Cloud Libraries BOM to the latest version 25.2.0 and associated dependencies to the compatible versions.

Updating dependencies listed in https://storage.googleapis.com/cloud-opensource-java-dashboard/com.google.cloud/libraries-bom/25.2.0/artifact_details.html

Linkage check results
https://gist.github.com/benWize/37f0d34e157974f6c1ff5a8e53f94a9b


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@asf-ci
Copy link

asf-ci commented Apr 28, 2022

Can one of the admins verify this patch?

1 similar comment
@asf-ci
Copy link

asf-ci commented Apr 28, 2022

Can one of the admins verify this patch?

@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #17497 (0a6a07e) into master (bb53425) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #17497      +/-   ##
==========================================
- Coverage   73.83%   73.83%   -0.01%     
==========================================
  Files         690      690              
  Lines       90829    90843      +14     
==========================================
+ Hits        67066    67076      +10     
- Misses      22554    22558       +4     
  Partials     1209     1209              
Flag Coverage Δ
python 83.65% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...eam/runners/portability/fn_api_runner/execution.py 92.44% <0.00%> (-0.65%) ⬇️
...eam/runners/interactive/interactive_environment.py 90.18% <0.00%> (-0.31%) ⬇️
...hon/apache_beam/runners/worker/bundle_processor.py 93.51% <0.00%> (ø)
.../python/apache_beam/ml/inference/sklearn_loader.py
...thon/apache_beam/ml/inference/sklearn_inference.py 92.68% <0.00%> (ø)
sdks/python/apache_beam/transforms/util.py 96.06% <0.00%> (+0.08%) ⬆️
...dks/python/apache_beam/examples/cookbook/coders.py 63.15% <0.00%> (+0.99%) ⬆️
sdks/python/apache_beam/utils/interactive_utils.py 95.12% <0.00%> (+2.43%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da6acf2...0a6a07e. Read the comment docs.

@benEng
Copy link
Contributor Author

benEng commented Apr 28, 2022

Run PythonLint PreCommit

@benEng
Copy link
Contributor Author

benEng commented Apr 28, 2022

Run Java PostCommit

@benEng
Copy link
Contributor Author

benEng commented Apr 28, 2022

Run PostCommit_Java_Hadoop_Versions

@benEng
Copy link
Contributor Author

benEng commented Apr 28, 2022

Run Dataflow ValidatesRunner

@benEng
Copy link
Contributor Author

benEng commented Apr 28, 2022

Run Java PostCommit

@benEng
Copy link
Contributor Author

benEng commented Apr 28, 2022

Run PostCommit_Java_Hadoop_Versions

@benEng
Copy link
Contributor Author

benEng commented Apr 28, 2022

Run Dataflow ValidatesRunner

@benEng
Copy link
Contributor Author

benEng commented Apr 29, 2022

Run Java PreCommit

@benEng benEng marked this pull request as ready for review April 29, 2022 16:11
@benEng
Copy link
Contributor Author

benEng commented Apr 29, 2022

R: @suztomo
Could you help me to review this?

@suztomo suztomo self-requested a review April 29, 2022 22:26
@suztomo suztomo self-assigned this Apr 29, 2022
Copy link
Contributor

@suztomo suztomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also update datastore-v1-proto-client to 2.2.10?

@@ -455,16 +455,16 @@ class BeamModulePlugin implements Plugin<Project> {
def classgraph_version = "4.8.104"
def errorprone_version = "2.10.0"
// Try to keep gax_version consistent with gax-grpc version in google_cloud_platform_libraries_bom
def gax_version = "2.8.1"
def gax_version = "2.16.0"
def google_clients_version = "1.32.1"
def google_cloud_bigdataoss_version = "2.2.4"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make it 2.2.6?

def google_cloud_spanner_version = "6.20.0"
def google_code_gson_version = "2.8.9"
def google_cloud_spanner_version = "6.23.3"
def google_code_gson_version = "2.9.0"
def google_oauth_clients_version = "1.32.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update this to 1.33.3

def google_cloud_spanner_version = "6.20.0"
def google_code_gson_version = "2.8.9"
def google_cloud_spanner_version = "6.23.3"
def google_code_gson_version = "2.9.0"
def google_oauth_clients_version = "1.32.1"
// Try to keep grpc_version consistent with gRPC version in google_cloud_platform_libraries_bom
def grpc_version = "1.44.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update this to 1.45.1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, updated

suztomo
suztomo previously requested changes May 2, 2022
Copy link
Contributor

@suztomo suztomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benWize Can you set datastore-v1-proto-client to 2.2.10 and override proto-google-cloud-datastore-v1 to 0.93.10 (currently no explicit version)? It's consistent with datastore-v1-proto-client to 2.2.10.

C.f. https://search.maven.org/artifact/com.google.cloud/google-cloud-datastore-bom/2.2.10/pom

CC: @kolea2

@benEng
Copy link
Contributor Author

benEng commented May 2, 2022

Run SQL PreCommit

@benEng
Copy link
Contributor Author

benEng commented May 2, 2022

Run Python_PVR_Flink PreCommit

@benEng
Copy link
Contributor Author

benEng commented May 2, 2022

Run Java PreCommit

@suztomo
Copy link
Contributor

suztomo commented May 4, 2022

Run Java PreCommit

It failed org.apache.beam.sdk.io.pulsar.PulsarIOTest.classMethod

@@ -661,10 +661,10 @@ class BeamModulePlugin implements Plugin<Project> {
proto_google_cloud_bigtable_admin_v2 : "com.google.api.grpc:proto-google-cloud-bigtable-admin-v2", // google_cloud_platform_libraries_bom sets version
proto_google_cloud_bigtable_v2 : "com.google.api.grpc:proto-google-cloud-bigtable-v2", // google_cloud_platform_libraries_bom sets version
proto_google_cloud_datacatalog_v1beta1 : "com.google.api.grpc:proto-google-cloud-datacatalog-v1beta1", // google_cloud_platform_libraries_bom sets version
proto_google_cloud_datastore_v1 : "com.google.api.grpc:proto-google-cloud-datastore-v1", // google_cloud_platform_libraries_bom sets version
proto_google_cloud_datastore_v1 : "com.google.api.grpc:proto-google-cloud-datastore-v1:0.93.10", // google_cloud_platform_libraries_bom sets version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My memo: This is in-line with com.google.cloud.datastore:datastore-v1-proto-client:2.2.10

(no action required)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ansh0l For upcoming change by you, remove this version part and let google_cloud_platform_libraries_bom set the version.

Copy link
Contributor

@rajatbhatta rajatbhatta Sep 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change suggests changes in the version for proto_google_cloud_datastore_v1. Can we(Spanner team) make this change or should we let the Datastore team make this change?

CC: @kileys

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you (spanner team) take care of this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, we'll take care of this.

@suztomo
Copy link
Contributor

suztomo commented May 4, 2022

@benWize The change looks good to me. Anything pending from your perspective?

@suztomo
Copy link
Contributor

suztomo commented May 4, 2022

Run Java PostCommit

@suztomo
Copy link
Contributor

suztomo commented May 4, 2022

Run PostCommit_Java_Dataflow

@suztomo
Copy link
Contributor

suztomo commented May 4, 2022

Run PostCommit_Java_DataflowV2

@suztomo
Copy link
Contributor

suztomo commented May 4, 2022

Run Spark ValidatesRunner

@suztomo
Copy link
Contributor

suztomo commented May 4, 2022

Run SQL Postcommit

This failed with

18:05:31 FAILURE: Build failed with an exception.
18:05:31 
18:05:31 * What went wrong:
18:05:31 Execution failed for task ':sdks:java:core:compileTestJava'.
18:05:31 > Failed to store cache entry for task ':sdks:java:core:compileTestJava'

@suztomo
Copy link
Contributor

suztomo commented May 4, 2022

Where are Jenkins builds...?

@suztomo suztomo self-requested a review May 4, 2022 22:08
@suztomo suztomo dismissed their stale review May 4, 2022 22:08

The change looks good now.

@suztomo
Copy link
Contributor

suztomo commented May 4, 2022

@suztomo
Copy link
Contributor

suztomo commented May 4, 2022

Run SQL Postcommit

This failed at org.apache.beam.sdk.io.gcp.spanner.SpannerWriteIT.testReportFailures

@suztomo
Copy link
Contributor

suztomo commented May 5, 2022

Run SQL Postcommit

@suztomo
Copy link
Contributor

suztomo commented May 5, 2022

Run Java Precommit

@benEng
Copy link
Contributor Author

benEng commented May 5, 2022

org.apache.beam.examples.subprocess.ExampleEchoPipelineTest.testExampleEchoPipeline

There is nothing pending from my perspective.

@benEng
Copy link
Contributor Author

benEng commented May 5, 2022

Run PostCommit_Java_Dataflow

@suztomo
Copy link
Contributor

suztomo commented May 5, 2022

Nice. Let's merge when checks become green. I see "Dataflow Java Post Commit Tests" pending (running).

@benEng
Copy link
Contributor Author

benEng commented May 5, 2022

Nice. Let's merge when checks become green. I see "Dataflow Java Post Commit Tests" pending (running).

All checks are passing now! Thanks, @suztomo

@suztomo suztomo merged commit b6565b9 into apache:master May 5, 2022
@suztomo
Copy link
Contributor

suztomo commented May 5, 2022

@benWize Thank you.

@@ -661,10 +661,10 @@ class BeamModulePlugin implements Plugin<Project> {
proto_google_cloud_bigtable_admin_v2 : "com.google.api.grpc:proto-google-cloud-bigtable-admin-v2", // google_cloud_platform_libraries_bom sets version
proto_google_cloud_bigtable_v2 : "com.google.api.grpc:proto-google-cloud-bigtable-v2", // google_cloud_platform_libraries_bom sets version
proto_google_cloud_datacatalog_v1beta1 : "com.google.api.grpc:proto-google-cloud-datacatalog-v1beta1", // google_cloud_platform_libraries_bom sets version
proto_google_cloud_datastore_v1 : "com.google.api.grpc:proto-google-cloud-datastore-v1", // google_cloud_platform_libraries_bom sets version
proto_google_cloud_datastore_v1 : "com.google.api.grpc:proto-google-cloud-datastore-v1:0.93.10", // google_cloud_platform_libraries_bom sets version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ansh0l For upcoming change by you, remove this version part and let google_cloud_platform_libraries_bom set the version.

def protobuf_version = "3.19.3"
def protobuf_version = "3.19.4"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines -458 to +467
def gax_version = "2.8.1"
def gax_version = "2.16.0"
def google_clients_version = "1.32.1"
def google_cloud_bigdataoss_version = "2.2.4"
def google_cloud_bigdataoss_version = "2.2.6"
// Try to keep google_cloud_spanner_version consistent with google_cloud_spanner_bom in google_cloud_platform_libraries_bom
def google_cloud_spanner_version = "6.20.0"
def google_code_gson_version = "2.8.9"
def google_oauth_clients_version = "1.32.1"
def google_cloud_spanner_version = "6.23.3"
def google_code_gson_version = "2.9.0"
def google_oauth_clients_version = "1.33.3"
// Try to keep grpc_version consistent with gRPC version in google_cloud_platform_libraries_bom
def grpc_version = "1.44.0"
def guava_version = "31.0.1-jre"
def grpc_version = "1.45.1"
def guava_version = "31.1-jre"
Copy link
Contributor

@suztomo suztomo Aug 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ansh0l For the upcoming change by you, reference this
https://github.com/googleapis/java-shared-dependencies/blob/v3.0.1/first-party-dependencies/pom.xml#L58 to update line 458 - line 467.

google_cloud_bigdataoss_version can be unaffected.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the google_code_gson_version be changed here? The above pom file doesn't have any reference to this dependency.

CC: @kileys

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants