Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3148

Rerun Failing Tests through Maven surefire

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • trunk
    • 5.0.0
    • tests
    • None

    Description

      OOZIE-2817 introduced rerunning of failing test cases in pre-commit builds (changed bin/test-patch-20-tests Bash script).
      It is no longer necessary as OOZIE-3106 upgraded surefire-plugin to 2.20.1 and since of 2.19.1 version of the maven surefire plugin it is allowed rerunning failing tests via -Dsurefire.rerunFailingTestsCount=2 (see http://maven.apache.org/surefire/maven-surefire-plugin/examples/rerun-failing-tests.html). For example, a test passed in its second run will output on the screen:

      
        Run 1: ...
        Run 2: PASS
      Then this test will be counted as a flaky test. The build will be successful, but in the end of the summary of all tests run, the number of flaky tests will be output on the screen, for example:
      
        Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Flakes: 1
      

      We could introduce this mechanism and update bin/test-patch-20-tests.

      Attachments

        1. OOZIE-3148-01.patch
          4 kB
          Attila Sasvári
        2. OOZIE-3148-02.patch
          4 kB
          Attila Sasvári
        3. OOZIE-3148-03.patch
          16 kB
          Attila Sasvári
        4. OOZIE-3148-04.patch
          4 kB
          Attila Sasvári
        5. OOZIE-3148-05.patch
          8 kB
          Attila Sasvári
        6. OOZIE-3148-06.patch
          8 kB
          Attila Sasvári
        7. OOZIE-3148-07.patch
          8 kB
          Attila Sasvári
        8. OOZIE-3148-09.patch
          9 kB
          Attila Sasvári

        Activity

          People

            asasvari Attila Sasvári
            asasvari Attila Sasvári
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: