[ 
https://issues.apache.org/jira/browse/BEAM-10970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17202369#comment-17202369
 ] 

Valentyn Tymofieiev commented on BEAM-10970:
--------------------------------------------

It's likely a flake:
{noformat}
2020-09-25T00:54:51.0123260Z =================================== FAILURES 
===================================
2020-09-25T00:54:51.0190140Z _ 
PortableRunnerTestWithSubprocessesAndMultiWorkers.test_register_finalizations _
2020-09-25T00:54:51.0193010Z [gw1] darwin -- Python 3.7.9 
/Users/runner/work/beam/beam/sdks/python/target/.tox/py37/bin/python
2020-09-25T00:54:51.0193390Z 
2020-09-25T00:54:51.0194760Z self = 
<apache_beam.runners.portability.portable_runner_test.PortableRunnerTestWithSubprocessesAndMultiWorkers
 testMethod=test_register_finalizations>
2020-09-25T00:54:51.0196140Z 
2020-09-25T00:54:51.0196460Z     def test_register_finalizations(self):
2020-09-25T00:54:51.0196970Z       event_recorder = 
EventRecorder(tempfile.gettempdir())
2020-09-25T00:54:51.0197920Z       elements_list = ['2', '1']
2020-09-25T00:54:51.0198160Z     
2020-09-25T00:54:51.0198470Z       class FinalizableDoFn(beam.DoFn):
2020-09-25T00:54:51.0198810Z         def process(
2020-09-25T00:54:51.0199350Z             self, element, 
bundle_finalizer=beam.DoFn.BundleFinalizerParam):
2020-09-25T00:54:51.0200100Z           bundle_finalizer.register(lambda: 
event_recorder.record(element))
2020-09-25T00:54:51.0200620Z           yield element
2020-09-25T00:54:51.0200840Z     
2020-09-25T00:54:51.0212810Z       with self.create_pipeline() as p:
2020-09-25T00:54:51.0213390Z         res = (p | beam.Create(elements_list) | 
beam.ParDo(FinalizableDoFn()))
2020-09-25T00:54:51.0213780Z     
2020-09-25T00:54:51.0214120Z         assert_that(res, equal_to(elements_list))
2020-09-25T00:54:51.0214400Z     
2020-09-25T00:54:51.0214690Z       results = event_recorder.events()
2020-09-25T00:54:51.0215070Z       event_recorder.cleanup()
2020-09-25T00:54:51.0215510Z >     self.assertEqual(results, 
sorted(elements_list))
2020-09-25T00:54:51.0216470Z E     AssertionError: Lists differ: ['2'] != ['1', 
'2']
2020-09-25T00:54:51.0216820Z E     
2020-09-25T00:54:51.0217070Z E     First differing element 0:
2020-09-25T00:54:51.0217670Z E     '2'
2020-09-25T00:54:51.0218200Z E     '1'
2020-09-25T00:54:51.0218390Z E     
2020-09-25T00:54:51.0218800Z E     Second list contains 1 additional elements.
2020-09-25T00:54:51.0219230Z E     First extra element 1:
2020-09-25T00:54:51.0219810Z E     '2'
2020-09-25T00:54:51.0220370Z E     
2020-09-25T00:54:51.0220910Z E     - ['2']
2020-09-25T00:54:51.0221410Z E     + ['1', '2']
2020-09-25T00:54:51.0221570Z 
2020-09-25T00:54:51.0221990Z 
apache_beam/runners/portability/fn_api_runner/fn_runner_test.py:854: 
AssertionError

{noformat}


> Py37 unit tests in GitHub check failed
> --------------------------------------
>
>                 Key: BEAM-10970
>                 URL: https://issues.apache.org/jira/browse/BEAM-10970
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures
>            Reporter: Robin Qiu
>            Assignee: Valentyn Tymofieiev
>            Priority: P0
>             Fix For: 2.25.0
>
>
> There are two test suites that are failing now:
>  
> Python Unit Tests (macos-latest, 3.7, py37): 
> [https://github.com/apache/beam/pull/12935/checks?check_run_id=1163443154]
>  
> Python Unit Tests (windows-latest, 3.7, py37): 
> [https://github.com/apache/beam/pull/12935/checks?check_run_id=1163443198]
>  
> I am not very familiar with the Python tests suites in GitHub check, but I 
> think this failure should be a release blocker?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to