Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2051

Surefire 2.12 cannot run a single test on Windows. Upgrade to 2.12.3

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.4.0
    • Component/s: Test
    • Labels:
      None
    1. FLUME-2051.patch
      0.5 kB
      Roshan Naik

      Issue Links

        Activity

        Hide
        roshan_naik Roshan Naik added a comment -

        bumping the surefire plugin's minor version

        Show
        roshan_naik Roshan Naik added a comment - bumping the surefire plugin's minor version
        Hide
        mpercy Mike Percy added a comment -

        I'm not able to reproduce the issue with Flume. Are you?

        i.e. running: mvn clean test -Dtest=TestThriftSource#testAppend -Dsurefire.version=2.11 works for me

        Mike

        Show
        mpercy Mike Percy added a comment - I'm not able to reproduce the issue with Flume. Are you? i.e. running: mvn clean test -Dtest=TestThriftSource#testAppend -Dsurefire.version=2.11 works for me Mike
        Hide
        roshan_naik Roshan Naik added a comment -

        Looks like the failure occurs only on windows.

        $ mvn test -Dtest=TestExecSource#testProcess -Dsurefire.version=2.11

        Results :
        
        Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
        
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: 4.078s
        [INFO] Finished at: Mon Jun 17 18:25:12 PDT 2013
        [INFO] Final Memory: 15M/39M
        [INFO] ------------------------------------------------------------------------
        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project flume-ng-core: No tests were executed!  (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1]
        [ERROR]
        [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
        [ERROR] Re-run Maven using the -X switch to enable full debug logging.
        [ERROR]
        [ERROR] For more information about the errors and possible solutions, please read the following articles:
        [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
        
        Show
        roshan_naik Roshan Naik added a comment - Looks like the failure occurs only on windows. $ mvn test -Dtest=TestExecSource#testProcess -Dsurefire.version=2.11 Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.078s [INFO] Finished at: Mon Jun 17 18:25:12 PDT 2013 [INFO] Final Memory: 15M/39M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test ( default -test) on project flume-ng-core: No tests were executed! (Set -DfailIfNoTests= false to ignore this error.) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch . [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http: //cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
        Hide
        hshreedharan Hari Shreedharan added a comment -

        Can you add -DfailIfNoTests=false and then try, as it says in the error message?

        Show
        hshreedharan Hari Shreedharan added a comment - Can you add -DfailIfNoTests=false and then try, as it says in the error message?
        Hide
        roshan_naik Roshan Naik added a comment -

        with -DfailIfNoTests=false

        -------------------------------------------------------
         T E S T S
        -------------------------------------------------------
        
        Results :
        
        Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
        
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD SUCCESS
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: 6.126s
        [INFO] Finished at: Mon Jun 17 23:27:08 PDT 2013
        [INFO] Final Memory: 17M/41M
        [INFO] ------------------------------------------------------------------------
        
        Show
        roshan_naik Roshan Naik added a comment - with -DfailIfNoTests=false ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.126s [INFO] Finished at: Mon Jun 17 23:27:08 PDT 2013 [INFO] Final Memory: 17M/41M [INFO] ------------------------------------------------------------------------
        Hide
        hshreedharan Hari Shreedharan added a comment -

        Roshan,

        Does 2.12.3 fix this issue? I don't think a minor version upgrade is an issue. If it does fix it, I will commit the patch

        Show
        hshreedharan Hari Shreedharan added a comment - Roshan, Does 2.12.3 fix this issue? I don't think a minor version upgrade is an issue. If it does fix it, I will commit the patch
        Hide
        mpercy Mike Percy added a comment -

        I'm +1 on this patch, if it fixes the Windows issue great, seems like it shouldn't hurt much of anything.

        Show
        mpercy Mike Percy added a comment - I'm +1 on this patch, if it fixes the Windows issue great, seems like it shouldn't hurt much of anything.
        Hide
        roshan_naik Roshan Naik added a comment -

        i did verify the new version fixes the issue when i submitted the patch.
        See the link attached in the description section for the fix that was made to surefire.

        Show
        roshan_naik Roshan Naik added a comment - i did verify the new version fixes the issue when i submitted the patch. See the link attached in the description section for the fix that was made to surefire.
        Hide
        mpercy Mike Percy added a comment -

        +1

        Show
        mpercy Mike Percy added a comment - +1
        Hide
        mpercy Mike Percy added a comment -

        Pushed to trunk and flume-1.4 branches. Thanks for the patch Roshan!

        Show
        mpercy Mike Percy added a comment - Pushed to trunk and flume-1.4 branches. Thanks for the patch Roshan!
        Hide
        hudson Hudson added a comment -

        Integrated in flume-trunk #434 (See https://builds.apache.org/job/flume-trunk/434/)
        FLUME-2051. Surefire 2.12 cannot run a single test on Windows. Upgrade to 2.12.3. (Revision b22f0415c0e73ce5a98cbdbbaa23bcdd932f15af)

        Result = SUCCESS
        mpercy : http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=b22f0415c0e73ce5a98cbdbbaa23bcdd932f15af
        Files :

        • pom.xml
        Show
        hudson Hudson added a comment - Integrated in flume-trunk #434 (See https://builds.apache.org/job/flume-trunk/434/ ) FLUME-2051 . Surefire 2.12 cannot run a single test on Windows. Upgrade to 2.12.3. (Revision b22f0415c0e73ce5a98cbdbbaa23bcdd932f15af) Result = SUCCESS mpercy : http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=b22f0415c0e73ce5a98cbdbbaa23bcdd932f15af Files : pom.xml

          People

          • Assignee:
            roshan_naik Roshan Naik
            Reporter:
            roshan_naik Roshan Naik
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development