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

Failed test annotated with no_xdist passes github action python test

Details

    • Bug
    • Status: Resolved
    • P1
    • Resolution: Fixed
    • None
    • Not applicable
    • build-system
    • None

    Description

      A python unit test annotated with @pytest.mark.no_xdist does not cause GIthub Action check fails even though the test fails. See https://github.com/apache/beam/pull/17649 for example. The test is executed and failed which can be seen in log.

          def test_expected_failure(self):
      >     assert False
      E     AssertionError: assert False
      
      apache_beam/pvalue_test.py:56: AssertionError
      - generated xml file: /home/runner/work/beam/beam/sdks/python/pytest_py37_no_xdist.xml -
      ====== 1 failed, 71 passed, 12 skipped, 5389 deselected in 11.71 seconds =======
      

      Attachments

        Issue Links

          Activity

            People

              bhulette Brian Hulette
              yihu Yi Hu
              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 - 40m
                  40m