You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ja...@rzf.fin-nrw.de on 2008/10/09 07:49:32 UTC

Build failed on CI server

Linux:
http://teamcity.jetbrains.com/viewLog.html;jsessionid=B2FCF7E3EAB6A4B0CD
46200A14A00579?tab=buildLog&buildTypeId=bt134&buildId=14460&all=true

[19:39:16]: Testsuite: org.apache.tools.ant.util.VectorSetTest
[19:39:16]: Tests run: 20, Failures: 1, Errors: 0, Time elapsed: 0.007
sec
[19:39:16]:
[19:39:16]: Testcase:
testAddAll2(org.apache.tools.ant.util.VectorSetTest): FAILED
[19:39:16]: expected:<1> but was:<0>
[19:39:16]: junit.framework.AssertionFailedError: expected:<1> but
was:<0>
[19:39:16]: at
org.apache.tools.ant.util.VectorSetTest.testAddAll2(VectorSetTest.java:5
5)



[19:40:18]: Build File:
/home/builduser/buildagent/work/819a8265f243c7f8/src/tests/antunit/taskd
efs/optional/depend/depend-test.xml
[19:40:21]: Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 3.496
sec
[19:40:21]: Target: testBug45916 FAILED
[19:40:21]: at line 69, column 59
[19:40:21]: Message: Expected file '/tmp/testoutput/b/Main$1.class' to
exist
[19:40:21]: took 3.489 sec



On Windows there are more
http://teamcity.jetbrains.com/viewLog.html?tab=buildLog&buildTypeId=bt13
3&buildId=14458&all=true

[19:39:19]: [junit] Testsuite: org.apache.tools.ant.util.VectorSetTest
[19:39:19]: [junit] Tests run: 20, Failures: 7, Errors: 3, Time elapsed:
0,062 sec
[19:39:19]: [junit]
[19:39:19]: [junit] Testcase:
testClear(org.apache.tools.ant.util.VectorSetTest): Caused an ERROR
[19:39:19]: [junit] null
[19:39:19]: [junit] java.lang.StackOverflowError
[19:39:19]: [junit] at
org.apache.tools.ant.util.VectorSet.removeAllElements(VectorSet.java:133
)
[19:39:19]: [junit] at java.util.Vector.clear(Vector.java:812)
[19:39:19]: [junit] at
org.apache.tools.ant.util.VectorSet.clear(VectorSet.java:89)
[19:39:19]: [junit] at
org.apache.tools.ant.util.VectorSet.removeAllElements(VectorSet.java:133
)
[19:39:19]: [junit] at java.util.Vector.clear(Vector.java:812)
(seems to be an endless recursion)


[19:39:20]: [junit] Testcase:
testAdd2(org.apache.tools.ant.util.VectorSetTest): FAILED
[19:39:20]: [junit] expected:<1> but was:<0>
[19:39:20]: [junit] junit.framework.AssertionFailedError: expected:<1>
but was:<0>
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSetTest.testAdd2(VectorSetTest.java:39)


[19:39:20]: [junit] Testcase:
testAddAll2(org.apache.tools.ant.util.VectorSetTest): FAILED
[19:39:20]: [junit] expected:<1> but was:<0>
[19:39:20]: [junit] junit.framework.AssertionFailedError: expected:<1>
but was:<0>
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSetTest.testAddAll2(VectorSetTest.java:5
5)


[19:39:20]: [junit] Testcase:
testInsertElementAt(org.apache.tools.ant.util.VectorSetTest): FAILED
[19:39:20]: [junit] expected:<1> but was:<0>
[19:39:20]: [junit] junit.framework.AssertionFailedError: expected:<1>
but was:<0>
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSetTest.testInsertElementAt(VectorSetTes
t.java:90)


[19:39:20]: [junit] Testcase:
testRemoveObject(org.apache.tools.ant.util.VectorSetTest): FAILED
[19:39:20]: [junit] null
[19:39:20]: [junit] junit.framework.AssertionFailedError
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSetTest.testRemoveObject(VectorSetTest.j
ava:107)


[19:39:20]: [junit] Testcase:
testRemoveAll(org.apache.tools.ant.util.VectorSetTest): FAILED
[19:39:20]: [junit] null
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSetTest.testRemoveAll(VectorSetTest.java
:114)


[19:39:20]: [junit] Testcase:
testRemoveAllElements(org.apache.tools.ant.util.VectorSetTest): Caused
an ERROR
[19:39:20]: [junit] null
[19:39:20]: [junit] java.lang.StackOverflowError
[19:39:20]: [junit] at java.util.Vector.clear(Vector.java:812)
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSet.clear(VectorSet.java:89)
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSet.removeAllElements(VectorSet.java:133
)
[19:39:20]: [junit] at java.util.Vector.clear(Vector.java:812)
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSet.clear(VectorSet.java:89)
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSet.removeAllElements(VectorSet.java:133
)
(seems to be an endless recursion)


[19:39:20]: [junit] Testcase:
testRemoveElement(org.apache.tools.ant.util.VectorSetTest): FAILED
[19:39:20]: [junit] null
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSetTest.testRemoveElement(VectorSetTest.
java:127)


[19:39:20]: [junit] Testcase:
testRemoveElementAt(org.apache.tools.ant.util.VectorSetTest): FAILED
[19:39:20]: [junit] expected:<0> but was:<1>
[19:39:20]: [junit] junit.framework.AssertionFailedError: expected:<0>
but was:<1>
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSetTest.testRemoveElementAt(VectorSetTes
t.java:135)


[19:39:20]: [junit] Testcase:
testRetainAll(org.apache.tools.ant.util.VectorSetTest): Caused an ERROR
[19:39:20]: [junit] null
[19:39:20]: [junit] java.lang.StackOverflowError
[19:39:20]: [junit] at java.util.Vector.clear(Vector.java:812)
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSet.clear(VectorSet.java:89)
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSet.removeAllElements(VectorSet.java:133
)
[19:39:20]: [junit] at java.util.Vector.clear(Vector.java:812)
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSet.clear(VectorSet.java:89)
[19:39:20]: [junit] at
org.apache.tools.ant.util.VectorSet.removeAllElements(VectorSet.java:133
)
(seems to be an endless recursion)


[19:39:41]: [au:antunit] Build File:
C:\TeamCityAgent\work\819a8265f243c7f8\src\tests\antunit\taskdefs\move-t
est.xml
[19:39:41]: [au:antunit] Tests run: 1, Failures: 1, Errors: 0, Time
elapsed: 0,016 sec
[19:39:41]: [au:antunit] Target: test-move-caseonly FAILED
[19:39:41]: [au:antunit] at line 31, column 80
[19:39:41]: [au:antunit] Message: abc was not renamed aBc
[19:39:41]: [au:antunit] took 0,016 sec

[19:39:41]: [au:antunit] Build File:
C:\TeamCityAgent\work\819a8265f243c7f8\src\tests\antunit\taskdefs\option
al\depend\depend-test.xml
[19:39:45]: [au:antunit] Tests run: 1, Failures: 1, Errors: 1, Time
elapsed: 3,75 sec
[19:39:45]: [au:antunit] Target: testBug45916 FAILED
[19:39:45]: [au:antunit] at line 69, column 59
[19:39:45]: [au:antunit] Message: Expected file
'C:\TeamCityAgent\temp\buildTmp\testoutput/b/Main$1.class' to exist
[19:39:45]: [au:antunit] took 3,547 sec
[19:39:45]: [au:antunit] caused an ERROR
[19:39:45]: [au:antunit] at line 25, column 30
[19:39:45]: [au:antunit] Message: Unable to delete file
C:\TeamCityAgent\temp\buildTmp\testoutput\A.jar


[19:39:58]: [au:antunit] Build File:
C:\TeamCityAgent\work\819a8265f243c7f8\src\tests\antunit\types\filterset
-test.xml
[19:39:59]: [au:antunit] Tests run: 2, Failures: 1, Errors: 0, Time
elapsed: 0,078 sec
[19:39:59]: [au:antunit] Target: testOverlappingMulticharToken FAILED
[19:39:59]: [au:antunit] at line 60, column 36
[19:39:59]: [au:antunit] Message: Expected 'user@host' but was
'user@@@HOST@@'
[19:39:59]: [au:antunit] took 0 sec



[19:39:59]: [au:antunit] Build File:
C:\TeamCityAgent\work\819a8265f243c7f8\src\tests\antunit\types\firstmatc
h-test.xml
[19:39:59]: [au:antunit] Tests run: 1, Failures: 0, Errors: 1, Time
elapsed: 0,015 sec
[19:39:59]: [au:antunit] Target: testMatch caused an ERROR
[19:39:59]: [au:antunit] at line 29, column 59
[19:39:59]: [au:antunit] Message: copy doesn't support the nested
"firstmatchmapper" element.
[19:39:59]: [au:antunit] took 0,015 sec



Jan

AW: Build failed on CI server

Posted by Ja...@rzf.fin-nrw.de.
>> [19:39:19]: [junit] Testcase:
>> testClear(org.apache.tools.ant.util.VectorSetTest): Caused an ERROR
>> [19:39:19]: [junit] null [19:39:19]: [junit]
>> java.lang.StackOverflowError [19:39:19]:
>
>Indicates the tests are being run against a pretty old (i.e. a few
>days older than trunk) version of VectorSet.  If you look into the
>stack trace youll see line numbers that don't make sense when compared
>to trunk.


You're right. I dont know why TC hasnt updated that, but I cleaned the
local checkout
so TC 'had' to update all files and now that test passed.
http://teamcity.jetbrains.com/viewLog.html?tab=buildLog&buildTypeId=bt13
3&buildId=14506&all=true

Only one test failed:

[15:54:05]: [au:antunit] Build File:
C:\TeamCityAgent\work\7d6e67c95588a32a\src\tests\antunit\taskdefs\move-t
est.xml
[15:54:05]: [au:antunit] Tests run: 1, Failures: 1, Errors: 0, Time
elapsed: 0,016 sec
[15:54:05]: [au:antunit] Target: test-move-caseonly FAILED
[15:54:05]: [au:antunit] at line 31, column 80
[15:54:05]: [au:antunit] Message: abc was not renamed aBc
[15:54:05]: [au:antunit] took 0,016 sec

  <target name="test-move-caseonly">
    <!-- this test is inspired by bugzilla 41948 -->
    <!-- Especially interesting if executed on case-insensitive file
systems -->
    <mkdir dir="${output}"/>
    <touch file="${output}/abc"/>
    <move file="${output}/abc" tofile="${output}/aBc"/>
    <fileset dir="${output}" id="myfs">
      <include name="aBc"/>
    </fileset>
    <pathconvert refid="myfs" property="myproperty" setonempty="false"/>
    <au:assertPropertySet name="myproperty" message="abc was not renamed
aBc"/>
  </target>


Jan

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


Re: Build failed on CI server

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 9 Oct 2008, Jan Materne <Ja...@rzf.fin-nrw.de> wrote:

> Linux:
> http://teamcity.jetbrains.com/viewLog.html;jsessionid=B2FCF7E3EAB6A4B0CD
> 46200A14A00579?tab=buildLog&buildTypeId=bt134&buildId=14460&all=true
> 
> [19:39:16]: Testsuite: org.apache.tools.ant.util.VectorSetTest
> [19:39:16]: Tests run: 20, Failures: 1, Errors: 0, Time elapsed:
> 0.007 sec [19:39:16]: [19:39:16]: Testcase:
> testAddAll2(org.apache.tools.ant.util.VectorSetTest): FAILED
> [19:39:16]: expected:<1> but was:<0> [19:39:16]:
> junit.framework.AssertionFailedError: expected:<1> but was:<0>
> [19:39:16]: at
> org.apache.tools.ant.util.VectorSetTest.testAddAll2(VectorSetTest.java:5
> 5)

Failed on Java6 for me as well, until I fixed it yesterday.

> [19:40:18]: Build File:
> /home/builduser/buildagent/work/819a8265f243c7f8/src/tests/antunit/taskd
> efs/optional/depend/depend-test.xml [19:40:21]: Tests run: 1,
> Failures: 1, Errors: 0, Time elapsed: 3.496 sec [19:40:21]: Target:
> testBug45916 FAILED [19:40:21]: at line 69, column 59 [19:40:21]:
> Message: Expected file '/tmp/testoutput/b/Main$1.class' to exist

That should pass.  I have seen other errors that made me suspect the
tests were not being run against the freshly built Ant and this could
be sucha a case as well.

> [19:39:19]: [junit] Testcase:
> testClear(org.apache.tools.ant.util.VectorSetTest): Caused an ERROR
> [19:39:19]: [junit] null [19:39:19]: [junit]
> java.lang.StackOverflowError [19:39:19]:

Indicates the tests are being run against a pretty old (i.e. a few
days older than trunk) version of VectorSet.  If you look into the
stack trace youll see line numbers that don't make sense when compared
to trunk.

Stefan

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