You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by vt...@apache.org on 2025/09/02 15:04:11 UTC
(beam) branch fix-python-transforms updated (8dcf9cce651 -> 7a2ff88fcc3)
This is an automated email from the ASF dual-hosted git repository.
vterentev pushed a change to branch fix-python-transforms
in repository https://gitbox.apache.org/repos/asf/beam.git
discard 8dcf9cce651 Use direct runner
discard aa6c4d00d1a Fix tests [2]
discard 9b1e23395d4 Fix tests
new 7a2ff88fcc3 Fix tests
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (8dcf9cce651)
\
N -- N -- N refs/heads/fix-python-transforms (7a2ff88fcc3)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
(beam) 01/01: Fix tests
Posted by vt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
vterentev pushed a commit to branch fix-python-transforms
in repository https://gitbox.apache.org/repos/asf/beam.git
commit 7a2ff88fcc34f62fb7cec1b225d9b53f0253f255
Author: Vitaly Terentyev <vi...@akvelon.com>
AuthorDate: Mon Sep 1 11:22:47 2025 +0400
Fix tests
---
sdks/python/apache_beam/transforms/external_test.py | 3 ++-
sdks/python/apache_beam/transforms/util_test.py | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sdks/python/apache_beam/transforms/external_test.py b/sdks/python/apache_beam/transforms/external_test.py
index 2ed7d622ecd..28e0bfbbf8f 100644
--- a/sdks/python/apache_beam/transforms/external_test.py
+++ b/sdks/python/apache_beam/transforms/external_test.py
@@ -349,7 +349,8 @@ class ExternalTransformTest(unittest.TestCase):
self.assertTrue(pipeline.contains_external_transforms)
def test_external_transform_finder_leaf(self):
- pipeline = beam.Pipeline()
+ opts = PipelineOptions(['--runner=DirectRunner'])
+ pipeline = beam.Pipeline(options=opts)
_ = (
pipeline
| beam.Create(['a', 'b'])
diff --git a/sdks/python/apache_beam/transforms/util_test.py b/sdks/python/apache_beam/transforms/util_test.py
index b365d9b2209..051f2ab7ade 100644
--- a/sdks/python/apache_beam/transforms/util_test.py
+++ b/sdks/python/apache_beam/transforms/util_test.py
@@ -762,7 +762,7 @@ class IdentityWindowTest(unittest.TestCase):
equal_to(expected_windows),
label='before_identity',
reify_windows=True)
- _ = (
+ after = (
before_identity
| 'window' >> beam.WindowInto(
beam.transforms.util._IdentityWindowFn(
@@ -772,6 +772,8 @@ class IdentityWindowTest(unittest.TestCase):
# contain a window of None. IdentityWindowFn should
# raise an exception.
| 'add_timestamps2' >> beam.ParDo(AddTimestampDoFn()))
+ # Terminal consumer to prevent pruning:
+ _ = after | 'count_per_element' >> beam.combiners.Count.PerElement()
class ReshuffleTest(unittest.TestCase):