You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Valentyn Tymofieiev (JIRA)" <ji...@apache.org> on 2018/10/09 01:43:00 UTC

[jira] [Comment Edited] (BEAM-5617) Several tests fail on Python 3 with failed assert: == []

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

Valentyn Tymofieiev edited comment on BEAM-5617 at 10/9/18 1:42 AM:
--------------------------------------------------------------------

It appears that lines 1272-1274 are not executed for apache_beam.transforms.sideinputs_test.SideInputsTest.test_iterable_side_input, so failure may be somewhere else (for that particular test at least). One possible way to track this down would be to go over functions/methods that are invoked during test execution, and see when do the arguments passed to the functions/methods start to diverge between Python 2 and Python 3. I didn't get to the bottom of the issue yet, but will continue looking tomorrow, if we don't rootcause it by then.


was (Author: tvalentyn):
It appears that lines 1272-1274 are not executed for apache_beam.transforms.sideinputs_test.SideInputsTest, so failure may be somewhere else (for that particular test at least). One possible way to track this down would be to go over functions/methods that are invoked during test execution, and see when do the arguments passed to the functions/methods start to diverge between Python 2 and Python 3. I didn't get to the bottom of the issue yet, but will continue looking tomorrow, if we don't rootcause it by then.

> Several tests fail on Python 3 with failed assert: <some non-empty list> == []
> ------------------------------------------------------------------------------
>
>                 Key: BEAM-5617
>                 URL: https://issues.apache.org/jira/browse/BEAM-5617
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-py-core
>            Reporter: Valentyn Tymofieiev
>            Assignee: Juta Staes
>            Priority: Major
>
> ======================================================================
> ERROR: test_iterable_side_input (apache_beam.transforms.sideinputs_test.SideInputsTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/runners/common.py", line 677, in process
>     self.do_fn_invoker.invoke_process(windowed_value)
>   File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/runners/common.py", line 414, in invoke_process
>     windowed_value, self.process_method(windowed_value.value))
>   File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/core.py", line 1068, in <lambda>
>     wrapper = lambda x: [fn(x)]
>   File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/testing/util.py", line 119, in _equal
>     'Failed assert: %r == %r' % (sorted_expected, sorted_actual))
> apache_beam.testing.util.BeamAssertException: Failed assert: [3, 4, 6, 8] == []



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)