ClearCase unit test is failng --- [Fwd: Build failed in Hudson: hudson #5042]

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

ClearCase unit test is failng --- [Fwd: Build failed in Hudson: hudson #5042]

Kohsuke Kawaguchi
Administrator

The following change started a failure:

> [The file was modified] 1.3 hudson/plugins/clearcase/src/main/resources/hudson/plugins/clearcase/ClearCaseChangeLogSet/index.jelly
> [The file was added] 1.1 hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseChangeLogEntryTest.java
> [The file was modified] 1.4 hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseChangeLogSetTest.java
> [The file was added] 1.1 hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearCaseSCMTest.java
> [The file was added] 1.1 hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolExecTest.java
> [The file was modified] 1.6 hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolHistoryParserTest.java
> [The file was added] 1.1 hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/util/ChangeLogEntryMergerTest.java
> [The file was modified] 1.2 hudson/plugins/clearcase/src/test/resources/hudson/plugins/clearcase/changelog.xml
> [The file was added] 1.1 hudson/plugins/clearcase/src/test/resources/hudson/plugins/clearcase/ct-lshistory-1.log
> [The file was modified] 1.22 hudson/plugins/clearcase/pom.xml
> [The file was modified] 1.3 hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseChangeLogEntry.java
> [The file was modified] 1.5 hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseChangeLogSet.java
> [The file was modified] 1.13 hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseSCM.java
> [The file was added] 1.1 hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearTool.java
> [The file was added] 1.1 hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolExec.java
> [The file was modified] 1.6 hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolHistoryParser.java
> [The file was added] 1.1 hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolLauncher.java
> [The file was modified] 1.2 hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/PluginImpl.java
> [The file was added] 1.1 hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/util/ChangeLogEntryMerger.java
> [The file was added] 1.1 hudson/plugins/clearcase/src/test/resources/hudson/plugins/clearcase/ct-lsview-1.log
> [The file was added] 1.1 hudson/plugins/clearcase/src/test/resources/hudson/plugins/clearcase/ct-lsvob-1.log
> [The file was added] 1.1 hudson/plugins/clearcase/src/test/resources/hudson/plugins/clearcase/ct-mkview-1.log
> [The file was added] 1.1 hudson/plugins/clearcase/src/test/resources/hudson/plugins/clearcase/ct-mkview-2.log
> [The file was added] 1.1 hudson/plugins/clearcase/src/test/resources/hudson/plugins/clearcase/ct-update-1.log




--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

See http://kohsuke.sfbay/hudson/job/hudson/5042/changes

Changes:

[Kohsuke Kawaguchi] renamed PromotionBadgeList to Status.

------------------------------------------
[...truncated 460 lines...]
[INFO] Compiling 15 source files to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\tools\maven-hpi-plugin\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'javanettasks:javanettasks:pom:1.0.12:compile' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[WARNING] POM for 'javanettasks:javanettasks:pom:1.0.12:compile' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\tools\maven-hpi-plugin\target\maven-hpi-plugin-1.12-SNAPSHOT.jar
[INFO] [plugin:addPluginArtifactMetadata]
[INFO] [install:install]
[INFO] Installing http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\tools\maven-hpi-plugin\target\maven-hpi-plugin-1.12-SNAPSHOT.jar  to C:\Documents and Settings\hudson\.m2\repository\org\jvnet\hudson\tools\maven-hpi-plugin\1.12-SNAPSHOT\maven-hpi-plugin-1.12-SNAPSHOT.jar
[INFO] [plugin:updateRegistry]
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hudson plugin POM
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] Reloading plugin container for: org.jvnet.hudson.tools:maven-hpi-plugin. The plugin artifact has changed.
[INFO] [clean:clean]
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\target
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\target\classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\target\test-classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\target\site
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.0.4
[INFO] JDK Version: 1.6.0_02 normalized as: 1.6.0-2
[INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\pom.xml  to C:\Documents and Settings\hudson\.m2\repository\org\jvnet\hudson\plugins\plugin\1.150\plugin-1.150.pom
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hudson Accurev plugin
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\test-classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\site
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.0.4
[INFO] JDK Version: 1.6.0_02 normalized as: 1.6.0-2
[INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] While downloading xerces:xerces:2.2.1
  This artifact has been relocated to xerces:xercesImpl:2.2.1.


[WARNING] POM for 'javanettasks:javanettasks:pom:1.0.12:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[INFO] [hpi:apt-compile]
[INFO] Compiling 5 source files to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\classes
Note: Generating hudson\plugins\accurev\AccurevSCM.stapler
Note: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\src\main\java\hudson\plugins\accurev\AccurevSCM.java  uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [hpi:hpi]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\accurev
[INFO] Assembling webapp accurev in http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\accurev
[INFO] Generating hpi http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\accurev.hpi
[INFO] Generating http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\accurev\META-INF\MANIFEST.MF
[INFO] Building jar: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\accurev.hpi
[INFO] Building jar: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\accurev.jar
[INFO] [install:install]
[INFO] Installing http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\accurev.hpi  to C:\Documents and Settings\hudson\.m2\repository\org\jvnet\hudson\plugins\accurev\0.4-SNAPSHOT\accurev-0.4-SNAPSHOT.hpi
[INFO] Installing http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\accurev\target\accurev.jar  to C:\Documents and Settings\hudson\.m2\repository\org\jvnet\hudson\plugins\accurev\0.4-SNAPSHOT\accurev-0.4-SNAPSHOT.jar
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hudson batch task plugin
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\test-classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\site
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.0.4
[INFO] JDK Version: 1.6.0_02 normalized as: 1.6.0-2
[INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [hpi:apt-compile]
[INFO] Compiling 7 source files to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\classes
Note: Generating hudson\plugins\batch_task\BatchRun.javadoc
Note: Generating hudson\plugins\batch_task\BatchTask.stapler
Note: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\src\main\java\hudson\plugins\batch_task\BatchTaskProperty.java  uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [hpi:hpi]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\batch-task
[INFO] Assembling webapp batch-task in http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\batch-task
[INFO] Generating hpi http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\batch-task.hpi
[INFO] Generating http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\batch-task\META-INF\MANIFEST.MF
[INFO] Building jar: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\batch-task.hpi
[INFO] Building jar: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\batch-task.jar
[INFO] [install:install]
[INFO] Installing http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\batch-task.hpi  to C:\Documents and Settings\hudson\.m2\repository\org\jvnet\hudson\plugins\batch-task\1.1-SNAPSHOT\batch-task-1.1-SNAPSHOT.hpi
[INFO] Installing http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\batch-task\target\batch-task.jar  to C:\Documents and Settings\hudson\.m2\repository\org\jvnet\hudson\plugins\batch-task\1.1-SNAPSHOT\batch-task-1.1-SNAPSHOT.jar
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hudson Build-Publisher plugin
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\test-classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\site
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.0.4
[INFO] JDK Version: 1.6.0_02 normalized as: 1.6.0-2
[INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [hpi:apt-compile]
[INFO] Compiling 11 source files to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\classes
Note: Generating hudson\plugins\build_publisher\BuildPublisher.stapler
Note: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\src\main\java\hudson\plugins\build_publisher\BuildPublisher.java  uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [hpi:hpi]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\build-publisher
[INFO] Assembling webapp build-publisher in http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\build-publisher
[INFO] Generating hpi http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\build-publisher.hpi
[INFO] Generating http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\build-publisher\META-INF\MANIFEST.MF
[INFO] Building jar: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\build-publisher.hpi
[INFO] Building jar: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\build-publisher.jar
[INFO] [install:install]
[INFO] Installing http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\build-publisher.hpi  to C:\Documents and Settings\hudson\.m2\repository\org\jvnet\hudson\plugins\build-publisher\1.1-SNAPSHOT\build-publisher-1.1-SNAPSHOT.hpi
[INFO] Installing http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-publisher\target\build-publisher.jar  to C:\Documents and Settings\hudson\.m2\repository\org\jvnet\hudson\plugins\build-publisher\1.1-SNAPSHOT\build-publisher-1.1-SNAPSHOT.jar
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hudson build timeout plugin
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\test-classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\site
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.0.4
[INFO] JDK Version: 1.6.0_02 normalized as: 1.6.0-2
[INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [hpi:apt-compile]
[INFO] Compiling 2 source files to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\classes
Note: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\src\main\java\hudson\plugins\build_timeout\BuildTimeoutWrapper.java  uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [hpi:hpi]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\build-timeout
[INFO] Assembling webapp build-timeout in http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\build-timeout
[INFO] Generating hpi http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\build-timeout.hpi
[INFO] Generating http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\build-timeout\META-INF\MANIFEST.MF
[INFO] Building jar: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\build-timeout.hpi
[INFO] Building jar: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\build-timeout.jar
[INFO] [install:install]
[INFO] Installing http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\build-timeout.hpi  to C:\Documents and Settings\hudson\.m2\repository\org\jvnet\hudson\plugins\build-timeout\1.4-SNAPSHOT\build-timeout-1.4-SNAPSHOT.hpi
[INFO] Installing http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\build-timeout\target\build-timeout.jar  to C:\Documents and Settings\hudson\.m2\repository\org\jvnet\hudson\plugins\build-timeout\1.4-SNAPSHOT\build-timeout-1.4-SNAPSHOT.jar
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hudson Clear Case Plug-in
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\clearcase\target
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\clearcase\target\classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\clearcase\target\test-classes
[INFO] Deleting directory http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\clearcase\target\site
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.0.4
[INFO] JDK Version: 1.6.0_02 normalized as: 1.6.0-2
[INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [hpi:apt-compile]
[INFO] Compiling 10 source files to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\clearcase\target\classes
Note: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\clearcase\src\main\java\hudson\plugins\clearcase\ClearCaseSCM.java  uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 6 source files to http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\clearcase\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: http://kohsuke.sfbay/hudson/job/hudson/ws/hudson\plugins\clearcase\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running hudson.plugins.clearcase.ClearToolHistoryParserTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
Running hudson.plugins.clearcase.ClearCaseChangeLogSetTest
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.407 sec <<< FAILURE!
Running hudson.plugins.clearcase.util.ChangeLogEntryMergerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running hudson.plugins.clearcase.ClearCaseChangeLogEntryTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running hudson.plugins.clearcase.ClearToolExecTest
Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.359 sec <<< FAILURE!
Running hudson.plugins.clearcase.ClearCaseSCMTest
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.719 sec

Results :

Failed tests:
  testParse(hudson.plugins.clearcase.ClearCaseChangeLogSetTest)

Tests in error:
  testListHistory(hudson.plugins.clearcase.ClearToolExecTest)

Tests run: 48, Failures: 1, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 47 seconds
[INFO] Finished at: Tue Oct 30 23:05:28 PDT 2007
[INFO] Final Memory: 41M/63M
[INFO] ------------------------------------------------------------------------



smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ClearCase unit test is failng --- [Fwd: Build failed in Hudson: hudson #5042]

Erik Ramfelt
Could you please send me a copy of the test reports?

My own hudson had no problems with it 4 hours ago:
http://hudson.ramfelt.se/job/Hudson/ So I guess there is a problem
with dates again.

regards
//Erik

On 10/31/07, Kohsuke Kawaguchi <[hidden email]> wrote:

>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running hudson.plugins.clearcase.ClearToolHistoryParserTest
> Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
> Running hudson.plugins.clearcase.ClearCaseChangeLogSetTest
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.407 sec <<< FAILURE!
> Running hudson.plugins.clearcase.util.ChangeLogEntryMergerTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
> Running hudson.plugins.clearcase.ClearCaseChangeLogEntryTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
> Running hudson.plugins.clearcase.ClearToolExecTest
> Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.359 sec <<< FAILURE!
> Running hudson.plugins.clearcase.ClearCaseSCMTest
> Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.719 sec
>
> Results :
>
> Failed tests:
>   testParse(hudson.plugins.clearcase.ClearCaseChangeLogSetTest)
>
> Tests in error:
>   testListHistory(hudson.plugins.clearcase.ClearToolExecTest)
>
> Tests run: 48, Failures: 1, Errors: 1, Skipped: 0
>
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 47 seconds
> [INFO] Finished at: Tue Oct 30 23:05:28 PDT 2007
> [INFO] Final Memory: 41M/63M
> [INFO] ------------------------------------------------------------------------
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: ClearCase unit test is failng --- [Fwd: Build failed in Hudson: hudson #5042]

Erik Ramfelt
In reply to this post by Kohsuke Kawaguchi
Im having problem reproducing this failure on my linux box. Could
anyone please run the tests for the Clear case plugin on a machine and
send me the failure report? I would like to fix this, so the CC plugin
can be enabled in the plugins pom.xml again.

Regards
//Erik

On 10/31/07, Kohsuke Kawaguchi <[hidden email]> wrote:

>
> The following change started a failure:
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running hudson.plugins.clearcase.ClearToolHistoryParserTest
> Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
> Running hudson.plugins.clearcase.ClearCaseChangeLogSetTest
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.407 sec <<< FAILURE!
> Running hudson.plugins.clearcase.util.ChangeLogEntryMergerTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
> Running hudson.plugins.clearcase.ClearCaseChangeLogEntryTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
> Running hudson.plugins.clearcase.ClearToolExecTest
> Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.359 sec <<< FAILURE!
> Running hudson.plugins.clearcase.ClearCaseSCMTest
> Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.719 sec
> Results :
>
> Failed tests:
>   testParse(hudson.plugins.clearcase.ClearCaseChangeLogSetTest)
>
> Tests in error:
>   testListHistory(hudson.plugins.clearcase.ClearToolExecTest)
>
> Tests run: 48, Failures: 1, Errors: 1, Skipped: 0

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: ClearCase unit test is failng --- [Fwd: Build failed in Hudson: hudson #5042]

Kohsuke Kawaguchi
Administrator
Erik Ramfelt wrote:
> Im having problem reproducing this failure on my linux box. Could
> anyone please run the tests for the Clear case plugin on a machine and
> send me the failure report? I would like to fix this, so the CC plugin
> can be enabled in the plugins pom.xml again.

Attached is the test result file.

I haven't looked at it carefully, but does this test run even on places
that don't have clearcase?


> Regards
> //Erik
>
> On 10/31/07, Kohsuke Kawaguchi <[hidden email]> wrote:
>>
>> The following change started a failure:
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running hudson.plugins.clearcase.ClearToolHistoryParserTest
>> Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
>> Running hudson.plugins.clearcase.ClearCaseChangeLogSetTest
>> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.407 sec <<< FAILURE!
>> Running hudson.plugins.clearcase.util.ChangeLogEntryMergerTest
>> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
>> Running hudson.plugins.clearcase.ClearCaseChangeLogEntryTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
>> Running hudson.plugins.clearcase.ClearToolExecTest
>> Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.359 sec <<< FAILURE!
>> Running hudson.plugins.clearcase.ClearCaseSCMTest
>> Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.719 sec
>> Results :
>>
>> Failed tests:
>>   testParse(hudson.plugins.clearcase.ClearCaseChangeLogSetTest)
>>
>> Tests in error:
>>   testListHistory(hudson.plugins.clearcase.ClearToolExecTest)
>>
>> Tests run: 48, Failures: 1, Errors: 1, Skipped: 0
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

-------------------------------------------------------------------------------
Test set: hudson.plugins.clearcase.ClearToolExecTest
-------------------------------------------------------------------------------
Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.197 sec <<< FAILURE!
testListHistory(hudson.plugins.clearcase.ClearToolExecTest)  Time elapsed: 0.009 sec  <<< ERROR!
unexpected invocation: clearToolLauncher.run(["commandname", "lshistory", "-r", "-since", "18-Nov.15:05:25", "-fmt", "\\"%Nd\\" \\"%u\\" \\"%e\\" \\"%En\\" \\"%Vn\\"\n%c\n", "-branch", "branch", "-nco", "vob1", "vob2"], null, <>, "viewName")
expectations:
  expected exactly 1 time, already invoked 1 time: clearToolLauncher.getWorkspace(); returns </tmp/cc-files>
  expected exactly 1 time, never invoked: clearToolLauncher.run(["commandname", "lshistory", "-r", "-since", "18-nov.15:05:25", "-fmt", "\\"%Nd\\" \\"%u\\" \\"%e\\" \\"%En\\" \\"%Vn\\"\n%c\n", "-branch", "branch", "-nco", "vob1", "vob2"], ANYTHING, an instance of java.io.OutputStream, "viewName"); do all of , returns <true>
        at org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:56)
        at org.jmock.Mockery.dispatch(Mockery.java:194)
        at org.jmock.Mockery.access$000(Mockery.java:34)
        at org.jmock.Mockery$MockObject.invoke(Mockery.java:236)
        at org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27)
        at org.jmock.internal.ProxiedObjectIdentity.invoke(ProxiedObjectIdentity.java:36)
        at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:31)
        at $Proxy17.run(Unknown Source)
        at hudson.plugins.clearcase.ClearToolExec.lshistory(ClearToolExec.java:111)
        at hudson.plugins.clearcase.ClearToolExecTest.testListHistory(ClearToolExecTest.java:152)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
        at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
        at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
        at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
        at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
        at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
        at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
        at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
        at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
        at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)


smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ClearCase unit test is failng --- [Fwd: Build failed in Hudson: hudson #5042]

Erik Ramfelt
On Nov 1, 2007 11:04 PM, Kohsuke Kawaguchi <[hidden email]> wrote:
> Erik Ramfelt wrote:
> > Im having problem reproducing this failure on my linux box. Could
> > anyone please run the tests for the Clear case plugin on a machine and
> > send me the failure report? I would like to fix this, so the CC plugin
> > can be enabled in the plugins pom.xml again.
>
> Attached is the test result file.

Thanks!

> I haven't looked at it carefully, but does this test run even on places
> that don't have clearcase?

Yes, I have mocked out the clear tool executable so I can test the
whole flow without running the real executable. As I dont have access
to clear case at home, it is easier to mock it.

I managed to fix the ClearToolExecTest,testListHistory() error
("18-nov" instead of "18-Nov"). But Im still wondering why the
ClearCaseChangeLogSetTest.testParse() failed, do you have any failure
reason for it?


Thanks
//Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: ClearCase unit test is failng --- [Fwd: Build failed in Hudson: hudson #5042]

Kohsuke Kawaguchi
Administrator
Erik Ramfelt wrote:

> On Nov 1, 2007 11:04 PM, Kohsuke Kawaguchi <[hidden email]> wrote:
>> Erik Ramfelt wrote:
>> > Im having problem reproducing this failure on my linux box. Could
>> > anyone please run the tests for the Clear case plugin on a machine and
>> > send me the failure report? I would like to fix this, so the CC plugin
>> > can be enabled in the plugins pom.xml again.
>>
>> Attached is the test result file.
>
> Thanks!
>
>> I haven't looked at it carefully, but does this test run even on places
>> that don't have clearcase?
>
> Yes, I have mocked out the clear tool executable so I can test the
> whole flow without running the real executable. As I dont have access
> to clear case at home, it is easier to mock it.
>
> I managed to fix the ClearToolExecTest,testListHistory() error
> ("18-nov" instead of "18-Nov"). But Im still wondering why the
> ClearCaseChangeLogSetTest.testParse() failed, do you have any failure
> reason for it?
The assertion error is the following:

<Tue Aug 28 15:27:00 [PD]T 2007> but was:<Tue Aug 28 15:27:00 [CES]T 2007>

... and that's because on my system where the default time zone is PDT,
"cal.getTime().toString()" (line 27) formats a date in PDT.


Perhaps you can parse back the result of getDateStr() to a Date and
compare two Date instances?



--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ClearCase unit test is failng --- [Fwd: Build failed in Hudson: hudson #5042]

Erik Ramfelt
Ok, fixed it. Cant compare a date created in PDT with one created in
CEST. It should only compare the strings and not the actual date
value. Fix has been committed, and I hope the module can be enabled
again.

//Erik

On Nov 5, 2007 9:08 PM, Kohsuke Kawaguchi <[hidden email]> wrote:

>
> Erik Ramfelt wrote:
> > On Nov 1, 2007 11:04 PM, Kohsuke Kawaguchi <[hidden email]> wrote:
> >> Erik Ramfelt wrote:
> >> > Im having problem reproducing this failure on my linux box. Could
> >> > anyone please run the tests for the Clear case plugin on a machine and
> >> > send me the failure report? I would like to fix this, so the CC plugin
> >> > can be enabled in the plugins pom.xml again.
> >>
> >> Attached is the test result file.
> >
> > Thanks!
> >
> >> I haven't looked at it carefully, but does this test run even on places
> >> that don't have clearcase?
> >
> > Yes, I have mocked out the clear tool executable so I can test the
> > whole flow without running the real executable. As I dont have access
> > to clear case at home, it is easier to mock it.
> >
> > I managed to fix the ClearToolExecTest,testListHistory() error
> > ("18-nov" instead of "18-Nov"). But Im still wondering why the
> > ClearCaseChangeLogSetTest.testParse() failed, do you have any failure
> > reason for it?
>
> The assertion error is the following:
>
> <Tue Aug 28 15:27:00 [PD]T 2007> but was:<Tue Aug 28 15:27:00 [CES]T 2007>
>
> ... and that's because on my system where the default time zone is PDT,
> "cal.getTime().toString()" (line 27) formats a date in PDT.
>
>
> Perhaps you can parse back the result of getDateStr() to a Date and
> compare two Date instances?
>
>
>
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems                   [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: ClearCase unit test is failng --- [Fwd: Build failed in Hudson: hudson #5042]

Kohsuke Kawaguchi
Administrator
Erik Ramfelt wrote:
> Ok, fixed it. Cant compare a date created in PDT with one created in
> CEST. It should only compare the strings and not the actual date
> value. Fix has been committed, and I hope the module can be enabled
> again.

Yep, it works for me now. I enabled it back.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment