Skip to content

Commit 36fe153

Browse files
authored
Upgrade to Beam 2.68.0 (#2830)
* Update pom and requirements * Update python requirements * Pin jsonschema * Add todo * Fix expected exception messages for Spanner tests
1 parent 32d898a commit 36fe153

File tree

16 files changed

+15492
-16986
lines changed

16 files changed

+15492
-16986
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
<jacoco.version>0.8.13</jacoco.version>
4949

5050
<!-- Beam and linked versions -->
51-
<beam.version>2.67.0</beam.version>
52-
<beam-python.version>2.67.0</beam-python.version>
51+
<beam.version>2.68.0</beam.version>
52+
<beam-python.version>2.68.0</beam-python.version>
5353
<beam-maven-repo></beam-maven-repo>
5454

5555
<!-- Common dependency versions -->
@@ -83,7 +83,7 @@
8383
<spotless-maven-plugin.version>2.46.1</spotless-maven-plugin.version>
8484
<surefire.version>2.21.0</surefire.version>
8585
<truth.version>1.1.5</truth.version>
86-
<gax.version>2.68.1</gax.version>
86+
<gax.version>2.68.2</gax.version>
8787

8888
<!-- Drop pinned version once maven-dependency-plugin gets past plexus-archiver 4.8.0 -->
8989
<plexus-archiver.version>4.8.0</plexus-archiver.version>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
apache-beam[gcp]==2.67.0
1+
apache-beam[gcp]==2.68.0
2+
jsonschema==4.25.1 # TODO: remove when correct version could come from beam
23
setuptools
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
apache-beam[dataframe,gcp,test,yaml]==2.67.0
1+
apache-beam[dataframe,gcp,test,yaml]==2.68.0
2+
jsonschema==4.25.1 # TODO: remove when correct version could come from beam
23
setuptools

python/src/main/python/job-builder-server/requirements.txt

Lines changed: 1656 additions & 1928 deletions
Large diffs are not rendered by default.

python/src/main/python/streaming-llm/base_requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
apache-beam[gcp]==2.67.0
1+
apache-beam[gcp]==2.68.0
2+
jsonschema==4.25.1 # TODO: remove when correct version could come from beam
23
torch
34
transformers
45
torchvision

python/src/main/python/streaming-llm/requirements.txt

Lines changed: 611 additions & 197 deletions
Large diffs are not rendered by default.

python/src/main/python/word-count-python/requirements.txt

Lines changed: 1620 additions & 1349 deletions
Large diffs are not rendered by default.

python/src/main/python/yaml-template/requirements.txt

Lines changed: 1656 additions & 1928 deletions
Large diffs are not rendered by default.

v2/datastream-to-spanner/src/test/java/com/google/cloud/teleport/v2/templates/spanner/DatastreamToSpannerExceptionClassifierIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public void datatypeMismatch() {
331331
Assert.assertNotNull(exception);
332332
Assert.assertEquals(
333333
exception.getMessage(),
334-
"FAILED_PRECONDITION: io.grpc.StatusRuntimeException: FAILED_PRECONDITION: Invalid value for column id in table Books: Expected INT64.");
334+
"INVALID_ARGUMENT: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Failed to initialize transaction due to invalid mutation key.");
335335
assertSpannerExceptionClassification(exception, PERMANENT_ERROR, actualTag);
336336
}
337337

@@ -385,7 +385,7 @@ public void writeToStoredGeneratedColumn() {
385385
Assert.assertNotNull(exception);
386386
Assert.assertEquals(
387387
exception.getMessage(),
388-
"FAILED_PRECONDITION: io.grpc.StatusRuntimeException: FAILED_PRECONDITION: Cannot write into generated column `Books.titleLowerStored`.");
388+
"INVALID_ARGUMENT: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Failed to initialize transaction due to invalid mutation key.");
389389
assertSpannerExceptionClassification(exception, PERMANENT_ERROR, actualTag);
390390
}
391391

@@ -404,7 +404,7 @@ public void pkValueOrDependantColValueNotProvidedForGenPKWhileUpdating() {
404404
Assert.assertNotNull(exception);
405405
Assert.assertEquals(
406406
exception.getMessage(),
407-
"FAILED_PRECONDITION: io.grpc.StatusRuntimeException: FAILED_PRECONDITION: For an Update, the value of a generated primary key `id2` must be explicitly specified, or else its non-key dependent column `part1` must be specified. Key: [1,<default>]");
407+
"INVALID_ARGUMENT: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Failed to initialize transaction due to invalid mutation key.");
408408
assertSpannerExceptionClassification(exception, PERMANENT_ERROR, actualTag);
409409
}
410410

@@ -422,7 +422,7 @@ public void deleteWithPartialKey() {
422422
Assert.assertNotNull(exception);
423423
Assert.assertEquals(
424424
exception.getMessage(),
425-
"FAILED_PRECONDITION: io.grpc.StatusRuntimeException: FAILED_PRECONDITION: Wrong number of key parts for MultiKeyTable. Expected: 3. Got: [\"1\"]");
425+
"INVALID_ARGUMENT: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Failed to initialize transaction due to invalid mutation key.");
426426
assertSpannerExceptionClassification(exception, PERMANENT_ERROR, actualTag);
427427
}
428428
}

v2/googlecloud-to-elasticsearch/src/main/resources/requirements.txt

Lines changed: 1656 additions & 1928 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)