You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Henri Yandell <ba...@generationjava.com> on 2004/03/14 19:32:02 UTC

[io] build still dubious Re: [GUMP@lsd]: jakarta-commons/commons-io failed

IO seems to pass the test sometimes and not pass others. I tried 3 times
and got only the one success. Both times it failed on
testCopyFile2WithoutFileDatePreservation, though it looks the same as the
other sleeper tests.

Hen

On 14 Mar 2004, Ted Husted wrote:

> To whom it may engage...
>
> This is an automated request, but not an unsolicited one. For help
> understanding the request please visit
> http://gump.apache.org/nagged.html,
> and/or contact general@gump.apache.org.
>
> Project commons-io has an issue affecting it's community integration. This issue affects 66 projects, and has been outstanding for 2 runs. The current state is 'Failed', for reason 'Build Failed'
>
> Full details are available at: http://lsd.student.utwente.nl/gump/jakarta-commons/commons-io.html, however some snippets follow:
>
> -  -  -  -  - -- -- ------------------------------------ G U M P
>
> Gump provided these annotations:
>
>  - Info - Sole jar [/data3/gump/jakarta-commons/io/dist/jakarta-commons-io-20040314.jar] identifier set to project name
>  - Info - Enable "verbose" output, due to 1 previous error(s).
>  - Error - Failed with reason build failed
>
>
> -  -  -  -  - -- -- ------------------------------------ G U M P
> Gump performed this work:
>
> Work Name: build_jakarta-commons_commons-io (Type: Build)
> State: Failed
> Elapsed: 0 hours, 0 minutes, 37 seconds
> Command Line: java -Djava.awt.headless=true -Dbuild.clonevm=true -Xbootclasspath/p:/data3/gump/xml-xerces2/java/build/xercesImpl.jar:/data3/gump/xml-xerces2/java/build/xmlParserAPIs.jar org.apache.tools.ant.Main -verbose -Dgump.merge=/data3/gump/gump-install/work/merge.xml -Dbuild.sysclasspath=only -Dfinal.name=jakarta-commons-io-20040314 dist
> [Working Directory: /data3/gump/jakarta-commons/io]
> ---------------------------------------------
>     [junit] '-Djava.version=1.4.2'
>     [junit] '-Djava.ext.dirs=/usr/java/j2sdk1.4.2/jre/lib/ext'
>     [junit] '-Dsun.boot.class.path=/data3/gump/xml-xerces2/java/build/xercesImpl.jar:/data3/gump/xml-xerces2/java/build/xmlParserAPIs.jar:/usr/java/j2sdk1.4.2/jre/lib/rt.jar:/usr/java/j2sdk1.4.2/jre/lib/i18n.jar:/usr/java/j2sdk1.4.2/jre/lib/sunrsasign.jar:/usr/java/j2sdk1.4.2/jre/lib/jsse.jar:/usr/java/j2sdk1.4.2/jre/lib/jce.jar:/usr/java/j2sdk1.4.2/jre/lib/charsets.jar:/usr/java/j2sdk1.4.2/jre/classes'
>     [junit] '-Djava.awt.headless=true'
>     [junit] '-Djava.vendor=Sun Microsystems Inc.'
>     [junit] '-Dfile.separator=/'
>     [junit] '-Djava.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi'
>     [junit] '-Dsun.cpu.endian=little'
>     [junit] '-Dsun.io.unicode.encoding=UnicodeLittle'
>     [junit] '-Dsun.cpu.isalist='
>     [junit] '-Xbootclasspath:/data3/gump/xml-xerces2/java/build/xercesImpl.jar:/data3/gump/xml-xerces2/java/build/xmlParserAPIs.jar:/usr/java/j2sdk1.4.2/jre/lib/rt.jar:/usr/java/j2sdk1.4.2/jre/lib/i18n.jar:/usr/java/j2sdk1.4.2/jre/lib/sunrsasign.jar:/usr/java/j2sdk1.4.2/jre/lib/jsse.jar:/usr/java/j2sdk1.4.2/jre/lib/jce.jar:/usr/java/j2sdk1.4.2/jre/lib/charsets.jar:/usr/java/j2sdk1.4.2/jre/classes'
>     [junit] '-classpath'
>     [junit] '/usr/java/j2sdk1.4.2/lib/tools.jar:/data3/gump/jakarta-commons/io/target/classes:/data3/gump/jakarta-commons/io/target/test-classes:/data3/gump/ant/dist/lib/ant-stylebook.jar:/data3/gump/ant/dist/lib/ant-jmf.jar:/data3/gump/ant/dist/lib/ant-swing.jar:/data3/gump/ant/dist/lib/ant-junit.jar:/data3/gump/ant/dist/lib/ant-launcher.jar:/data3/gump/ant/dist/lib/ant-xalan2.jar:/data3/gump/ant/dist/lib/ant-trax.jar:/data3/gump/ant/dist/lib/ant.jar:/data3/gump/ant/dist/lib/ant-nodeps.jar:/data3/gump/jakarta-commons/lang/dist/commons-lang-20040314.jar:/data3/gump/dist/junit/junit.jar'
>     [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
>     [junit] 'org.apache.commons.io.output.TeeOutputStreamTest'
>     [junit] 'filtertrace=true'
>     [junit] 'haltOnError=true'
>     [junit] 'haltOnFailure=false'
>     [junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter'
>     [junit] 'showoutput=false'
>     [junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,/data3/gump/jakarta-commons/io/target/test-reports/TEST-org.apache.commons.io.output.TeeOutputStreamTest.xml'
>     [junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter'
>     [junit] 'propsfile=/data3/gump/jakarta-commons/io/junit265757095.properties'
>     [junit]
>     [junit] The ' characters around the executable and arguments are
>     [junit] not part of the command.
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.166 sec
>     [junit] Testsuite: org.apache.commons.io.output.TeeOutputStreamTest
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.166 sec
>
>     [junit] Testcase: testTee took 0.022 sec
>
> test:
>
> BUILD FAILED
> /data3/gump/jakarta-commons/io/build.xml:78: There were test failures.
>
> 	at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:103)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:268)
> 	at org.apache.tools.ant.Task.perform(Task.java:363)
> 	at org.apache.tools.ant.Target.execute(Target.java:300)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:327)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1213)
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:1061)
> 	at org.apache.tools.ant.Main.runBuild(Main.java:667)
> 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
> 	at org.apache.tools.ant.Main.start(Main.java:151)
> 	at org.apache.tools.ant.Main.main(Main.java:234)
>
> Total time: 36 seconds
> ---------------------------------------------
>
>
>
>
> To subscribe to this information via syndicated feeds:
> RSS: http://lsd.student.utwente.nl/gump/jakarta-commons/commons-io.rss | Atom: http://lsd.student.utwente.nl/gump/jakarta-commons/commons-io.atom
>
> --
> Gump http://gump.apache.org/
> [lsd]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [io] build still dubious Re: [GUMP@lsd]: jakarta-commons/commons-io failed

Posted by Stefan Bodewig <bo...@apache.org>.
On Sun, 14 Mar 2004, Jeremias Maerki <de...@greenmail.ch>
wrote:

> I've disabled the problematic code for now. We could increase the
> sleep time up to 2 seconds and it might work, but I don't think
> that's smart and it slows down the unit tests considerably. Ideas
> welcome.

Without looking into any of the tests at all, I want to share some
observations from Ant.

We've quite frequently run into timing issues with file system related
tests.  Tests where we expect the file modification time to have
changed but they haven't as well as the opposite of it.

Part of the problem is the file timestamp granularity.  On FAT and
AFAIU NTFS systems this seems to be 2 seconds, on most Unix fs flavors
it is one second.  We've ended up sleeping in our tests for up to
three seconds plus the expected timestamp granularity to have the
tests pass reliably.

Tests passed when run interactively but still failed in nightly build
systems for us until we set the delays that long.

Cheers

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [io] build still dubious Re: [GUMP@lsd]: jakarta-commons/commons-io failed

Posted by Jeremias Maerki <de...@greenmail.ch>.
I've disabled the problematic code for now. We could increase the sleep
time up to 2 seconds and it might work, but I don't think that's smart
and it slows down the unit tests considerably. Ideas welcome.

On 14.03.2004 19:32:02 Henri Yandell wrote:
> 
> IO seems to pass the test sometimes and not pass others. I tried 3 times
> and got only the one success. Both times it failed on
> testCopyFile2WithoutFileDatePreservation, though it looks the same as the
> other sleeper tests.
> 
> Hen
> 
> On 14 Mar 2004, Ted Husted wrote:
> 
> > To whom it may engage...
<snip/>


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org