Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-14288

Python PreCommit flaking in test_pformat_namedtuple_with_unnamed_fields

Details

    Description

      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
      

      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)

      Attachments

        Activity

          People

            ningk Ning
            bhulette Brian Hulette
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 20m
                2h 20m