From 855bd54bba17be7bcdde19914cef863819f21cb7 Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Sat, 21 Sep 2024 11:53:31 -0400 Subject: [PATCH 1/3] Move assert into pipeline --- .../apache_beam/ml/gcp/visionml_test_it.py | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/sdks/python/apache_beam/ml/gcp/visionml_test_it.py b/sdks/python/apache_beam/ml/gcp/visionml_test_it.py index ea3fc9768ff5..cbd59307c244 100644 --- a/sdks/python/apache_beam/ml/gcp/visionml_test_it.py +++ b/sdks/python/apache_beam/ml/gcp/visionml_test_it.py @@ -64,17 +64,17 @@ def test_text_detection_with_language_hint(self): context_side_input=beam.pvalue.AsDict(contexts)) | beam.ParDo(extract)) - assert_that( - output, - equal_to([ - 'WAITING?\nPLEASE\nTURN OFF\nYOUR\nENGINE', - 'WAITING?', - 'PLEASE', - 'TURN', - 'OFF', - 'YOUR', - 'ENGINE' - ])) + assert_that( + output, + equal_to([ + 'WAITING?\nPLEASE\nTURN OFF\nYOUR\nENGINE', + 'WAITING?', + 'PLEASE', + 'TURN', + 'OFF', + 'YOUR', + 'ENGINE' + ])) if __name__ == '__main__': From 50dd0487724957465c11ad8cc141041e772e1e2d Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Sat, 21 Sep 2024 11:56:06 -0400 Subject: [PATCH 2/3] Update beam_PostCommit_Python.json --- .github/trigger_files/beam_PostCommit_Python.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/trigger_files/beam_PostCommit_Python.json b/.github/trigger_files/beam_PostCommit_Python.json index 2934a91b84b1..d01a47e72653 100644 --- a/.github/trigger_files/beam_PostCommit_Python.json +++ b/.github/trigger_files/beam_PostCommit_Python.json @@ -1,5 +1,5 @@ { - "comment": "Modify this file in a trivial way to cause this test suite to run.", + "comment": "modify this file in a trivial way to cause this test suite to run.", "modification": 1 } From 149f355cc84e3d32eba77c76feddb00710663f38 Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Sun, 22 Sep 2024 16:02:20 -0400 Subject: [PATCH 3/3] Fix elements --- sdks/python/apache_beam/ml/gcp/visionml_test_it.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdks/python/apache_beam/ml/gcp/visionml_test_it.py b/sdks/python/apache_beam/ml/gcp/visionml_test_it.py index cbd59307c244..00fd38704a02 100644 --- a/sdks/python/apache_beam/ml/gcp/visionml_test_it.py +++ b/sdks/python/apache_beam/ml/gcp/visionml_test_it.py @@ -68,7 +68,8 @@ def test_text_detection_with_language_hint(self): output, equal_to([ 'WAITING?\nPLEASE\nTURN OFF\nYOUR\nENGINE', - 'WAITING?', + 'WAITING', + '?', 'PLEASE', 'TURN', 'OFF',