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

False positives in worker region & zone tests

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.21.0
    • testing
    • None

    Description

      This is hypothetical (I haven't seen this actually happen), but worker region & zone tests in the Python SDK could yield false positives because they only check that errors occurred. They do not check which errors occurred. The pipeline options under test raise other expected errors: ['Missing required option: project.', 'Missing GCS path option: temp_location.', 'Missing GCS path option: staging_location.'] in addition to the error we're actually testing for. Therefore, if the code under test were to break, the tests would still pass.

      https://github.com/apache/beam/blob/e2ff3967609df50ec55d18cc58fe8359ef4cacb8/sdks/python/apache_beam/options/pipeline_options_validator_test.py#L379

      Attachments

        Issue Links

          Activity

            People

              ibzib Kyle Weaver
              ibzib Kyle Weaver
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 20m
                  20m