archiva-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Barboni" <barb...@irit.fr>
Subject RE: Random unit test fail during build
Date Mon, 27 Feb 2012 19:31:34 GMT
Hello,
Thanks for your answer

To cite a new world famous French actor ("P...., genial, merci")
It works archiva get started on my localhost with new UI. 

The tomcat7 seems working good but not sure what is doing :p.
I like the permanent banner on top.
My 2 cents on current "Find menu item" in UI Work in Progress :
 Is it possible to merge search and browse page? If now using javascript it
may be cool to have a dynamic filtering allowing incomplete search.


If doing a clean / build on archiva folder I still have test failure (I am
working on windows 7)
>> with - Dsurefire.useFile=false and "clean and build" on archiva folder

Then Archiva Base :: Repository Interface Layer ........ FAILURE [12.329s]

testGatherSnapshotVersionsA(org.apache.archiva.repository.metadata.MetadataT
oolsTest)  Time elapsed: 0.022 sec  <<< FAILURE!
java.lang.AssertionError: Assert Snapshot Versions: length/size expected:<8>
but was:<9>
	at org.junit.Assert.fail(Assert.java:91)
	at org.junit.Assert.failNotEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:126)
	at org.junit.Assert.assertEquals(Assert.java:470)
	at
org.apache.archiva.repository.metadata.MetadataToolsTest.assertSnapshotVersi
ons(MetadataToolsTest.java:372)
	at
org.apache.archiva.repository.metadata.MetadataToolsTest.testGatherSnapshotV
ersionsA(MetadataToolsTest.java:76)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.
java:44)
	at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.j
ava:15)
	at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.ja
va:41)
	at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.jav
a:20)
	at
org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallba
cks.evaluate(RunBeforeTestMethodCallbacks.java:74)
	at
org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbac
ks.evaluate(RunAfterTestMethodCallbacks.java:83)
	at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
	at
org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(Spr
ingRepeat.java:72)
	at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(Spr
ingJUnit4ClassRunner.java:231)
	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.jav
a:49)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at
org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbac
ks.evaluate(RunBeforeTestClassCallbacks.java:61)
	at
org.springframework.test.context.junit4.statements.RunAfterTestClassCallback
s.evaluate(RunAfterTestClassCallbacks.java:71)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJU
nit4ClassRunner.java:174)
	at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:
236)
	at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provide
r.java:134)
	at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:1
13)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(Reflect
ionUtils.java:189)
	at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(Provid
erFactory.java:165)
	at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFact
ory.java:85)
	at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBoote
r.java:103)
	at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)

-----Message d'origine-----
De : Olivier Lamy [mailto:olamy@apache.org] 
Envoyé : lundi 27 février 2012 18:08
À : dev@archiva.apache.org
Objet : Re: Random unit test fail during build

Hello,

2012/2/27 Eric Barboni <barboni@irit.fr>:
> Hi archiva dev team,
>
>  I tried to build archiva to see how the new UI looks and also be able 
> to give better feedback on an issue I have with metadata (already
reported).
>
> I follow the steps here 
> http://archiva.apache.org/developers/building.html
> step 1 and 2 works fine.
Oups my bad is not up2date :-) (I will fix that) Follow instruction from
README.txt file.
to run the new ui: mvn tomcat7:run -pl :archiva-webapp-js -Pjs -am -Pdev
then hit http://localhost:9091/archiva/index.html (optionally force en with
?request_lang=en as other i18n are not here)

Those tests always failed ? (weird as I don't see failure on ASF Jenkins).
Can you give more output with -Dsurefire.useFile=false

Merci :-)
--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy
>
>
>
> But while trying to build step 3 unit test fail in two ways [1] and 
> [2] (output).
>
>
>
> I would be happy to help archiva.  I have some hci background and web 
> design skill (not logo or image design).
>
>
>
> Best Regards
>
>
>
> Eric Barboni
>
>
>
> [1]---
>
> In Archiva Base :: Repository Interface Layer
>
> ----------------------------------------------------------------------
> ------
> ---
>
> Test set: org.apache.archiva.repository.metadata.MetadataToolsTest
>
> ----------------------------------------------------------------------
> ------
> ---
>
> Tests run: 21, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.076 
> sec <<< FAILURE!
>
> testGatherSnapshotVersionsA(org.apache.archiva.repository.metadata.Met
> adataT
> oolsTest)  Time elapsed: 0.029 sec  <<< FAILURE!
>
> java.lang.AssertionError: Assert Snapshot Versions: length/size 
> expected:<8> but was:<9>
>
> at org.junit.Assert.fail(Assert.java:91)
>
>
>
> [2]---
>
> In Archiva Base :: Policies
>
> ----------------------------------------------------------------------
> ------
> ---
>
> Test set: org.apache.archiva.policies.CachedFailuresPolicyTest
>
> ----------------------------------------------------------------------
> ------
> ---
>
> Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.934 
> sec <<< FAILURE!
>
> testPolicyYesNotInCache(org.apache.archiva.policies.CachedFailuresPoli
> cyTest
> )  Time elapsed: 0.005 sec  <<< ERROR!
>
> org.apache.archiva.policies.PolicyViolationException: NO to fetch, 
> check-failures detected previous failure on url:
> http://a.bad.hostname.maven.org/path/to/resource.txt
>
> at
> org.apache.archiva.policies.CachedFailuresPolicy.applyPolicy(CachedFai
> luresP
> olicy.java:95)
>
>
>
>
>
>
>
>
>
>
>


Mime
View raw message