Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9100

tests/run-tests.py should handle duplicate --skip-stress flags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 3.4.0
    • Impala 3.4.0
    • Infrastructure
    • None
    • ghx-label-11

    Description

      If you pass --skip-stress multiple times to tests/run-tests.py, only the first is removed before the arguments are passed to pytest:

        skip_stress = '--skip-stress' in sys.argv
        if skip_stress:
          sys.argv.remove("--skip-stress")

      This is also true for skip_serial and skip_parallel.

      This matters for the docker-based tests, because the docker-based tests run the serial end-to-end tests with --skip-stress specified. run-all-tests.sh also adds a --skip-stress argument when running core tests:

      if [[ "${EXPLORATION_STRATEGY}" == "core" ]]; then
        # Skip the stress test in core - all stress tests are in exhaustive and
        # pytest startup takes a significant amount of time.
        RUN_TESTS_ARGS+=" --skip-stress"
      fi

      Only one skip-stress is removed, and the other one gets passed to pytest, which immediately fails without running tests.

      Attachments

        Activity

          People

            joemcdonnell Joe McDonnell
            joemcdonnell Joe McDonnell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: