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] Upgrading the Google Cloud Libraries BOM to v22 #15411

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

suztomo
Copy link
Contributor

@suztomo suztomo commented Aug 27, 2021

This is not urgent. It's nice to have latest dependencies.

Upgrading the Google Cloud Libraries BOM to version 22.0.0 and upgrading associated dependencies.

Linkage Checker

https://cwiki.apache.org/confluence/display/BEAM/Dependency+Upgrades

No new linkage errors. https://gist.github.com/suztomo/a0aaa6a86e191009e055575d60f62545


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.

ValidatesRunner compliance status (on master branch)

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- Build Status Build Status Build Status Build Status ---
Java Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Python --- Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status ---
XLang Build Status Build Status Build Status Build Status Build Status ---

Examples testing status on various runners

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- --- --- --- --- --- ---
Java --- Build Status
Build Status
Build Status
--- --- --- --- ---
Python --- --- --- --- --- --- ---
XLang --- --- --- --- --- --- ---

Post-Commit SDK/Transform Integration Tests Status (on master branch)

Go Java Python
Build Status Build Status Build Status
Build Status
Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website Whitespace Typescript
Non-portable Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status Build Status
Portable --- Build Status Build Status --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

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.

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Java PostCommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run PostCommit_Java_Hadoop_Versions

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run PostCommit_Java_Dataflow

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run PostCommit_Java_DataflowV2

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Spark ValidatesRunner

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run SQL Postcommit

Comment on lines 548 to 549
google_cloud_bigtable_client_core : "com.google.cloud.bigtable:bigtable-client-core:1.23.1",
google_cloud_bigtable_emulator : "com.google.cloud:google-cloud-bigtable-emulator:0.138.0",
Copy link
Contributor Author

@suztomo suztomo Aug 27, 2021

Choose a reason for hiding this comment

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

I just picked the latest versions for bigtable-client-core and google-cloud-bigtable-emulator.

The Libraries BOM 22.0.0 includes the Google Cloud BOM 0.160.0, which includes

com.google.cloud:google-cloud-bigtable:2.0.1
com.google.cloud:google-cloud-bigtable-emulator:0.137.1

So apparently google-cloud-bigtable-emulator should be 0.137.1. But how about bigtable-client-core?

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Java PostCommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run PostCommit_Java_Hadoop_Versions

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run PostCommit_Java_Dataflow

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run PostCommit_Java_DataflowV2

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Spark ValidatesRunner

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run SQL Postcommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run GoPortable PreCommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Python_PVR_Flink PreCommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run SQL PreCommit failure

https://ci-beam.apache.org/job/beam_PreCommit_SQL_Commit/4072/console

14:38:12 > Task :sdks:java:testing:tpcds:compileJava
14:38:12 /home/jenkins/jenkins-slave/workspace/beam_PreCommit_SQL_Commit/src/sdks/java/testing/tpcds/src/main/java/org/apache/beam/sdk/tpcds/SqlTransformRunner.java:213: error: [argument.type.incompatible] incompatible argument for parameter doc of createRecord.
14:38:12         org.apache.avro.Schema.createRecord(schema.getName() + "_projected", null, null, false);
14:38:12                                                                              ^
14:38:12   found   : null (NullType)
14:38:12   required: @Initialized @NonNull String
14:38:12 /home/jenkins/jenkins-slave/workspace/beam_PreCommit_SQL_Commit/src/sdks/java/testing/tpcds/src/main/java/org/apache/beam/sdk/tpcds/SqlTransformRunner.java:213: error: [argument.type.incompatible] incompatible argument for parameter namespace of createRecord.
14:38:12         org.apache.avro.Schema.createRecord(schema.getName() + "_projected", null, null, false);
14:38:12                                                                                    ^
14:38:12   found   : null (NullType)
14:38:12   required: @Initialized @NonNull String
14:38:12 2 errors

This PR is not touching Avro version (1.8.2). Why did it fail?

Screen Shot 2021-08-27 at 16 03 27

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Java_Examples_Dataflow PreCommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Dataflow V2 Java Post Commit Tests

14:48:06 RuntimeError: ('2 error(s) occurred.', ['**************************************** Licenses were not able to be pulled automatically for some dependencies. Please search source code of the dependencies on the internet and add "license" and "notice" (if available) field to /home/jenkins/jenkins-slave/workspace/beam_PostCommit_Java_DataflowV2_PR/src/sdks/java/container/license_scripts/dep_urls_java.yaml for each missing license. Dependency List: [jackson-bom-2.12.4,libraries-bom-22.0.0]', '**************************************** License type of some dependencies were not identified. The license type is used to decide whether the source code of the dependency should be pulled or not. Please add "type" field to /home/jenkins/jenkins-slave/workspace/beam_PostCommit_Java_DataflowV2_PR/src/sdks/java/container/license_scripts/dep_urls_java.yaml for each dependency. Dependency List: [jackson-bom-2.12.4,libraries-bom-22.0.0]'])

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run SQL Postcommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Spark ValidatesRunner

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Java PostCommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run PostCommit_Java_Dataflow

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run PostCommit_Java_DataflowV2

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run PostCommit_Java_Hadoop_Versions

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run CommunityMetrics PreCommit

@codecov
Copy link

codecov bot commented Aug 27, 2021

Codecov Report

Merging #15411 (d19ba7a) into master (92b9977) will decrease coverage by 0.04%.
The diff coverage is n/a.

❗ Current head d19ba7a differs from pull request most recent head 9694f70. Consider uploading reports for the commit 9694f70 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15411      +/-   ##
==========================================
- Coverage   83.80%   83.75%   -0.05%     
==========================================
  Files         440      442       +2     
  Lines       59886    60050     +164     
==========================================
+ Hits        50186    50294     +108     
- Misses       9700     9756      +56     
Impacted Files Coverage Δ
sdks/python/apache_beam/io/source_test_utils.py 88.47% <0.00%> (-1.39%) ⬇️
sdks/python/apache_beam/transforms/combiners.py 93.59% <0.00%> (-0.12%) ⬇️
...he_beam/runners/interactive/sql/beam_sql_magics.py 55.65% <0.00%> (ø)
...ython/apache_beam/runners/interactive/sql/utils.py 91.07% <0.00%> (ø)
...ks/python/apache_beam/runners/interactive/utils.py 93.70% <0.00%> (+0.10%) ⬆️
...eam/runners/interactive/interactive_environment.py 91.07% <0.00%> (+0.74%) ⬆️
.../python/apache_beam/transforms/periodicsequence.py 98.36% <0.00%> (+1.63%) ⬆️

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 92b9977...9694f70. Read the comment docs.

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Java PreCommit
https://ci-beam.apache.org/job/beam_PreCommit_Java_Commit/18799/console

15:59:00 > Task :sdks:java:io:elasticsearch-tests:elasticsearch-tests-5:test
15:59:00 
15:59:00 org.apache.beam.sdk.io.elasticsearch.ElasticsearchIOTest > testSplit FAILED
15:59:00     java.lang.AssertionError at ElasticsearchIOTest.java:150

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Java PreCommit

This also failed.

https://ci-beam.apache.org/job/beam_PreCommit_Java_Phrase/3994/consoleFull

16:30:38 > Task :sdks:java:testing:tpcds:compileJava
16:30:38 /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Phrase/src/sdks/java/testing/tpcds/src/main/java/org/apache/beam/sdk/tpcds/SqlTransformRunner.java:213: error: [argument.type.incompatible] incompatible argument for parameter doc of createRecord.
16:30:38         org.apache.avro.Schema.createRecord(schema.getName() + "_projected", null, null, false);
16:30:38                                                                              ^
16:30:38   found   : null (NullType)
16:30:38   required: @Initialized @NonNull String
16:30:38 /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Phrase/src/sdks/java/testing/tpcds/src/main/java/org/apache/beam/sdk/tpcds/SqlTransformRunner.java:213: error: [argument.type.incompatible] incompatible argument for parameter namespace of createRecord.
16:30:38         org.apache.avro.Schema.createRecord(schema.getName() + "_projected", null, null, false);
16:30:38                                                                                    ^
16:30:38   found   : null (NullType)
16:30:38   required: @Initialized @NonNull String

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Java SDK Post Commit Tests

https://ci-beam.apache.org/job/beam_PostCommit_Java_PR/758/console

15:25:11 > Task :sdks:java:testing:test-utils:compileJava
15:25:11 error: warnings found and -Werror specified
15:25:21 1 error
15:25:21 1 warning

@suztomo
Copy link
Contributor Author

suztomo commented Aug 27, 2021

Run Java Postcommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 30, 2021

Run SQL PreCommit

@suztomo suztomo changed the title [BEAM-11205] Upgrading the Libraries BOM to v22 [BEAM-11205][not for review yet] Upgrading the Libraries BOM to v22 Aug 31, 2021
@suztomo
Copy link
Contributor Author

suztomo commented Aug 31, 2021

Run SQL PreCommit succeeded https://ci-beam.apache.org/job/beam_PreCommit_SQL_Commit/4086/console on commit d19ba7a . It means httpcore, httpclient, or jackson was the problem.

@suztomo
Copy link
Contributor Author

suztomo commented Aug 31, 2021

Well it seems that the problem was fixed in #15419.

@suztomo
Copy link
Contributor Author

suztomo commented Aug 31, 2021

Run Java PostCommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 31, 2021

Run PostCommit_Java_Hadoop_Versions

@suztomo
Copy link
Contributor Author

suztomo commented Aug 31, 2021

Run PostCommit_Java_Dataflow

@suztomo
Copy link
Contributor Author

suztomo commented Aug 31, 2021

Run PostCommit_Java_DataflowV2

@suztomo
Copy link
Contributor Author

suztomo commented Aug 31, 2021

Run Spark ValidatesRunner

@suztomo
Copy link
Contributor Author

suztomo commented Aug 31, 2021

Run SQL Postcommit

@suztomo
Copy link
Contributor Author

suztomo commented Aug 31, 2021

Run Java Precommit

@suztomo suztomo changed the title [BEAM-11205][not for review yet] Upgrading the Libraries BOM to v22 [BEAM-11205] Upgrading the Libraries BOM to v22 Aug 31, 2021
@suztomo suztomo changed the title [BEAM-11205] Upgrading the Libraries BOM to v22 [BEAM-11205] Upgrading the Google Cloud Libraries BOM to v22 Aug 31, 2021
@suztomo suztomo marked this pull request as ready for review August 31, 2021 18:55
@suztomo
Copy link
Contributor Author

suztomo commented Aug 31, 2021

R: @kennknowles , @lukecwik

38 successful checks (including "Java PostCommit", "SQL Post Commit", "Dataflow Java Post Commit", and "Dataflow V2 Java Post Commit")!

This is not urgent. It's just nice to have latest dependencies.

@@ -530,23 +530,23 @@ class BeamModulePlugin implements Plugin<Project> {
gax : "com.google.api:gax", // google_cloud_platform_libraries_bom sets version
gax_grpc : "com.google.api:gax-grpc", // google_cloud_platform_libraries_bom sets version
gax_httpjson : "com.google.api:gax-httpjson", // google_cloud_platform_libraries_bom sets version
google_api_client : "com.google.api-client:google-api-client:1.31.1", // 1.31.1 is required to run 1.31.0 of google_clients_version below.
google_api_client : "com.google.api-client:google-api-client:$google_clients_version", // for the libraries using $google_clients_version below.
Copy link
Member

Choose a reason for hiding this comment

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

Nice

@lukecwik lukecwik merged commit 8367b43 into apache:master Sep 8, 2021
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