You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Brian Hulette (Jira)" <ji...@apache.org> on 2022/04/11 18:59:00 UTC

[jira] [Commented] (BEAM-14288) Python PreCommit flaking test_pformat_namedtuple_with_unnamed_fields

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

Brian Hulette commented on BEAM-14288:
--------------------------------------

FYI [~ningk] - I'm going to send a PR to skip this for now.

> Python PreCommit flaking test_pformat_namedtuple_with_unnamed_fields
> --------------------------------------------------------------------
>
>                 Key: BEAM-14288
>                 URL: https://issues.apache.org/jira/browse/BEAM-14288
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core, test-failures
>            Reporter: Brian Hulette
>            Assignee: Brian Hulette
>            Priority: P1
>
> {code}
> self = <apache_beam.runners.interactive.sql.utils_test.UtilsTest testMethod=test_pformat_namedtuple_with_unnamed_fields>
>     def test_pformat_namedtuple_with_unnamed_fields(self):
> >     self.assertEqual(
>           f'OptionalUnionType(unnamed: {repr(Optional[Union[int, str]])})',
>           pformat_namedtuple(OptionalUnionType))
> E     AssertionError: 'OptionalUnionType(unnamed: typing.Union[str, int, NoneType])' != 'OptionalUnionType(unnamed: typing.Union[int, str, NoneType])'
> E     - OptionalUnionType(unnamed: typing.Union[str, int, NoneType])
> E     ?                                             -----
> E     + OptionalUnionType(unnamed: typing.Union[int, str, NoneType])
> E     ?                                         +++++
> apache_beam/runners/interactive/sql/utils_test.py:83: AssertionError
> {code}
> Hard to tell if this is a flake or a hard failure. If it's a hard failure, it just started recently in cron run https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/5498/
> In the runs I've seen since then the failure does seem consistent, but it might only be affecting certain environments (py37-cloud, py39-cloud, py38-cloudcoverage)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)