This is an automated email from the ASF dual-hosted git repository.

shunping pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 5ad6df9f5a4 Fix flaky test_csv_to_json in Beam YAML SDK (#38617)
5ad6df9f5a4 is described below

commit 5ad6df9f5a423591eecdc6a5c04509949f3fafeb
Author: Shunping Huang <[email protected]>
AuthorDate: Tue May 26 08:03:20 2026 -0400

    Fix flaky test_csv_to_json in Beam YAML SDK (#38617)
---
 .github/trigger_files/beam_PostCommit_Python_Versions.json | 2 +-
 sdks/python/apache_beam/yaml/yaml_transform_test.py        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/trigger_files/beam_PostCommit_Python_Versions.json 
b/.github/trigger_files/beam_PostCommit_Python_Versions.json
index 8ed972c9f57..9cc78c7d1c6 100644
--- a/.github/trigger_files/beam_PostCommit_Python_Versions.json
+++ b/.github/trigger_files/beam_PostCommit_Python_Versions.json
@@ -1,4 +1,4 @@
 {
   "comment": "Modify this file in a trivial way to cause this test suite to 
run",
-  "revision": 3
+  "revision": 4
 }
diff --git a/sdks/python/apache_beam/yaml/yaml_transform_test.py 
b/sdks/python/apache_beam/yaml/yaml_transform_test.py
index bbb60b185c0..192af63a987 100644
--- a/sdks/python/apache_beam/yaml/yaml_transform_test.py
+++ b/sdks/python/apache_beam/yaml/yaml_transform_test.py
@@ -287,7 +287,7 @@ class YamlTransformE2ETest(unittest.TestCase):
       output_shard = all_output[0]
       result = pd.read_json(
           output_shard, orient='records',
-          lines=True).sort_values('rank').reindex()
+          lines=True).sort_values('rank').reset_index(drop=True)
       pd.testing.assert_frame_equal(data, result)
 
   def test_circular_reference_validation(self):

Reply via email to