[
https://issues.apache.org/jira/browse/BEAM-8575?focusedWorklogId=395326&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-395326
]
ASF GitHub Bot logged work on BEAM-8575:
----------------------------------------
Author: ASF GitHub Bot
Created on: 28/Feb/20 23:08
Start Date: 28/Feb/20 23:08
Worklog Time Spent: 10m
Work Description: bumblebee-coming commented on pull request #10951:
[BEAM-8575] Modified the test to work for different runners.
URL: https://github.com/apache/beam/pull/10951#discussion_r385962866
##########
File path: sdks/python/apache_beam/transforms/combiners_test.py
##########
@@ -470,6 +470,9 @@ def test_combining_with_accumulation_mode_and_fanout(self):
ts.add_elements([i])
ts.advance_watermark_to_infinity()
+ def is_early_firing(element, num_partitions):
+ return 0 if element < 15 else 1
Review comment:
I tried to do this, but it doesn't work. Can't get the timing by calling
pane.timing().
AttributeError: '_DoFnParam' object has no attribute 'timing'
def partition_firings(element, num_partitions, pane=beam.DoFn.PaneInfoParam):
if pane.timing() == windowed_value.PaneInfoTiming.EARLY:
return 0
elif pane.timing() == windowed_value.PaneInfoTiming.ON_TIME:
return 1
else:
return 2
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 395326)
Time Spent: 57.5h (was: 57h 20m)
> Add more Python validates runner tests
> --------------------------------------
>
> Key: BEAM-8575
> URL: https://issues.apache.org/jira/browse/BEAM-8575
> Project: Beam
> Issue Type: Test
> Components: sdk-py-core, testing
> Reporter: wendy liu
> Assignee: wendy liu
> Priority: Major
> Time Spent: 57.5h
> Remaining Estimate: 0h
>
> This is the umbrella issue to track the work of adding more Python tests to
> improve test coverage.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)