2012/6/29 Eric Barboni <[email protected]>:
> Hi,
>
> Sure b) is a better option
> Building on windows jdk7 give random ordered <testcase> items on surefire
> report.
> It's possible that osx implementation work like jdk6.  What version do you
> have? seems that update 4 is the first jd7 to be done by oracle for osx.
oracle one.
mbp-olamy:archiva olamy$ java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

>
> A possible workaround
> - new artifact in the archiva build to be used for test only containing
> overrided runner with a handmade shuffling.
> - rewrite runwith annotation in test to depends on them.
>
>
> /*
> If found this information in build file from junit
> for snapshot junit maven repo
> https://oss.sonatype.org/content/repositories/snapshots/
> sonatype-nexus-snapshot
> */

My goal was to release 1.4-M3 with the new ui soon. And I don't want
to be dependant on junit release timeframe.

>
> Regards
>
> -----Message d'origine-----
> De : Olivier Lamy [mailto:[email protected]]
> Envoyé : vendredi 29 juin 2012 09:36
> À : [email protected]
> Objet : Re: Building Archiva 1.4-M2-RC
>
> 2012/6/28 Eric Barboni <[email protected]>:
>> Hi,
>>
>> Getting test methods with jdk6 give them in order of apparition in the
>> class.
>> Jdk7 is randoming them.
>> http://bugs.sun.com/view_bug.do?bug_id=7023180
>>
>> The upcoming junit 4.11 is allowing new annotation to help sorting
>> @FixMethodOrder(MethodSorters.NAME_ASCENDING)
>>
>> Some archiva tests (like many other test among lots of projects :D)
>> are not "well written".
>> Theoricaly Each test method should be independent.
>>
>> To be able to safe build with jdk 7 it will cost to:
>>  a) migrate to junit 4.11, add FixMethodOrder  annotation  and rename
>> test methods name.
>>  b) rewrite test more independent.
>>
>> a) is long but not so complex but 4.11 is not out, b) is a much much
>> more complex task.
>>
>> If someone can add junit-4.11-SNAPSHOT to the archiva pom, I can help
>> doing
>> a)
> Will be difficult as I personally where those SNAPSHOT artifacts are
> available and to make a release we will be dependant on the junit release !
> So b) is a better option.
> The weird is: I use 1.7 locally (osx) and I don't have any issues. I have a
> ci server instance (https://olamy.ci.cloudbees.com/job/archiva-1.7/ )
> running tests with jdk 1.7 and the ball is green.
>
>
>>
>> Regards
>>
>> Eric
>>
>> -----Message d'origine-----
>> De : Olivier Lamy [mailto:[email protected]] Envoyé : jeudi 21 juin
>> 2012 12:36 À : [email protected] Objet : Re: Building Archiva
>> 1.4-M2-RC
>>
>> well a bit weird  and impossible to reproduce locally :-(
>>
>> @Brett for the other failure I will review as I have intermittent
>> failure here too.
>>
>> 2012/6/21 Guillaume Yziquel <[email protected]>:
>>> Hi.
>>>
>>> Le Thursday 21 Jun 2012 à 07:11:43 (+1000), Brett Porter a écrit :
>>>> We'd need to look at each problem you've cited individually - we
>>>> haven't seen these. In the case of the test failures, the failure
>>>> from target/ surefire-reports would be needed.
>>>>
>>>> Here is the CI job closest to your config:
>>>> https://builds.apache.org/job/archiva-all-maven-3.x-jdk-1.7/865/
>>>>
>>>> (There is one very recent failing test, but it's in a different
>>>> module to
>> that you'd described).
>>>>
>>>> - Brett
>>>
>>> Thanks for your quick answer.
>>>
>>> Currently, my failing test is the following in Archiva Scheduler ::
>>> Repository Scanning. This failing test seems to be reproducible.
>>> Attached are surefire reports.
>>>
>>> -------------------------------------------------------
>>>  T E S T S
>>> -------------------------------------------------------
>>> Running
>>> org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTask
>>> E xecutorTest Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time
>>> elapsed: 53.976 sec <<< FAILURE!
>>> 52919 [Thread-2] INFO
>>> org.springframework.context.support.GenericApplicationContext -
>>> Closing
>>> org.springframework.context.support.GenericApplicationContext@1
>>> 17cda3: startup date [Thu Jun 21 00:04:05 CEST 2012]; root of context
>>> hierarchy
>>> 52957 [Thread-2] INFO
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory
>>> - Destroying singletons in org.springframework.beans.factory.suppo
>>> rt.DefaultListableBeanFactory@17ff478: defining beans
>>> [org.springframework.context.annotation.internalConfigurationAnnotati
>>> o
>>> nProcessor,org.springframework.co
>>>
>> ntext.annotation.internalAutowiredAnnotationProcessor,org.springframew
>> ork.co
>> ntext.annotation.internalRequiredAnnotationProcessor,org.springframewo
>> rk.con
>> text.
>>> annotation.internalCommonAnnotationProcessor,repositoryStatisticsMana
>>> g
>>> er#test,knownRepositoryContentConsumer#test-consumer,archivaTaskSched
>>> u
>>> ler#repository,ta
>>> skExecutor#repository-scanning,taskQueue#repository-scanning,taskQueu
>>> e
>>> Executor#repository-scanning,schedulerConfiguration,cronExpressionVal
>>> i
>>> dator,repositoryS
>>> tatisticsManager#default,metadataFacetFactory#org.apache.archiva.meta
>>> d
>>> ata.repository.stats,repositorySessionFactory#test,metadataResolver#d
>>> e
>>> fault,artifactMap
>>> pingProvider#default,repositoryPathTranslator#maven2,repositoryStorag
>>> e
>>> #maven2,metadataFacetFactory#org.apache.archiva.metadata.repository.s
>>> t
>>> orage.maven2.arti
>>> fact,metadataFacetFactory#org.apache.archiva.metadata.repository.stor
>>> a
>>> ge.maven2.project,dependencyTreeBuilder#maven2,repositoryListener#pro
>>> b
>>> lem-reports,metad
>>> ataFacetFactory#org.apache.archiva.reports,knownRepositoryContentCons
>>> u
>>> mer#duplicate-artifacts,wagonFactory,digesterUtils,mavenIndexerUtils,
>>> p
>>> lexusSisuBridge,a
>>> rchivaConfiguration#default,fileTypes,commons-configuration,component
>>> C
>>> ontainer,org.springframework.beans.factory.config.PropertyPlaceholder
>>> C
>>> onfigurer#0,preDo
>>> wnloadPolicy#cache-failures,postDownloadPolicy#checksum,downloadError
>>> P
>>> olicy#propagate-errors,downloadErrorPolicy#propagate-errors-on-update
>>> ,
>>> preDownloadPolicy
>>> #releases,preDownloadPolicy#snapshots,urlFailureCache,url-failures-ca
>>> c
>>> he,defaultCacheBuilder,repositoryScanner#default,repositoryContentCon
>>> s
>>> umers,repositoryC
>>> ontentFactory#default,pathParser#default,managedRepositoryContent#def
>>> a
>>> ult,managedRepositoryContent#legacy,remoteRepositoryContent#default,r
>>> e
>>> moteRepositoryCon
>>> tent#legacy,metadataTools#default,pathParser#legacy,managedRepoAdmin#
>>> t
>>> est,archivaAdministration#mock,remoteRepositoryAdmin#mock,taskExecuto
>>> r
>>> #test-repository-
>>> scanning,archivaConfiguration#test-repository-scanning,registry#test-
>>> c
>>> onfigured];
>>> root of factory hierarchy
>>> 52994 [Thread-2] INFO org.codehaus.plexus.cache.ehcache.EhcacheCache
>>> - Disposing cache: [ name = url-failures-cache status = STATUS_ALIVE
>>> eternal = false ove rflowToDisk = false maxElementsInMemory = 1000
>>> maxElementsOnDisk = 0 memoryStoreEvictionPolicy = LRU
>>> timeToLiveSeconds = 1800 timeToIdleSeconds = 2700 diskPe rsistent =
>>> true diskExpiryThreadIntervalSeconds = 600
>>> cacheEventListeners:
>>> net.sf.ehcache.statistics.LiveCacheStatisticsWrapper  hitCount = 0
>>> memoryStoreHitC ount = 0 diskStoreHitCount = 0 missCountNotFound = 0
>>> missCountExpired =
>>> 0 overflowToOffHeap = false maxMemoryOffHeap = null ]
>>>
>>> Results :
>>>
>>> Failed tests:
>>>
>> testExecutor(org.apache.archiva.scheduler.repository.ArchivaRepository
>> Scanni
>> ngTaskExecutorTest):
>>> Incorrect number of unprocessed artifacts de tected. expected:<8> but
>>> was:<0>
>>>
>>> Tests run: 5, Failures: 1, Errors: 0, Skipped: 0
>>>
>>> [INFO]
>>> ---------------------------------------------------------------------
>>> -
>>> --
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] Archiva Base :: Configuration ..................... SUCCESS
>>> [4:24.461s] [INFO] Archiva Base :: Repository Scanner ................
>>> SUCCESS [2:25.913s] [INFO] Archiva Metadata
>>> .................................. SUCCESS [9.302s] [INFO] Archiva
>>> Metadata :: Model ......................... SUCCESS [15.850s] [INFO]
>>> Archiva Metadata :: Repository API ................ SUCCESS [42.922s]
>>> [INFO] Archiva Base :: Consumers :: Metadata ............. SUCCESS
>>> [1:12.195s] [INFO] Archiva Base :: Plexus Bridge .....................
>>> SUCCESS [54.722s] [INFO] Archiva Base ::  Transactions
>>> ..................... SUCCESS [49.981s] [INFO] Archiva Artifact
>>> Converter ........................ SUCCESS [2:27.638s] [INFO] Archiva
>>> Base :: Model ............................. SUCCESS [53.953s] [INFO]
>>> Archiva Base :: XML Tools ......................... SUCCESS
>>> [1:26.535s] [INFO] Archiva Metadata :: Repository for Testing ........
>>> SUCCESS [17.109s] [INFO] Archiva Core Plugins
>>> .............................. SUCCESS [1.158s] [INFO] Archiva Core
>>> Plugins :: Problem Reporting Plugin .. SUCCESS [3:14.325s] [INFO]
>>> Archiva Base :: Proxy Common ...................... SUCCESS
>>> [2:18.162s] [INFO] Archiva Core Plugins :: Maven 2.x Repository
>>> Support  SUCCESS [4:13.516s] [INFO] Archiva Base :: Repository
>>> Interface Layer ........ SUCCESS [4:00.159s] [INFO] Archiva Base ::
>>> Repository Converter .............. SUCCESS [3:51.218s] [INFO]
>>> Archiva
>>> :: Command Line Client .................... SUCCESS [34:55.727s]
>>> [INFO] Archiva Base :: Security Common ................... SUCCESS
>>> [16.431s] [INFO] Archiva Scheduler .................................
>>> SUCCESS [1.182s] [INFO] Archiva Scheduler :: API
>>> .......................... SUCCESS [39.459s] [INFO] Archiva Core
>>> Plugins :: Repository Statistics ..... SUCCESS [6:07.498s] [INFO]
>>> Archiva Scheduler :: Repository Scanning .......... FAILURE
>>> [3:25.101s] [INFO] Archiva Core Plugins :: Audit Logging .............
>>> SKIPPED [INFO] Archiva Base :: Repository Admin Default ..........
>>> SKIPPED [INFO] Archiva Base :: Indexer ...........................
>>> SKIPPED [INFO] Archiva Base :: Consumers :: Core Consumers .......
>>> SKIPPED [INFO] Archiva Scheduler :: Indexing .....................
>>> SKIPPED [INFO] Archiva Core Plugins :: JCR Storage for Metadata ..
>>> SKIPPED [INFO] Archiva Base :: Consumers :: Lucene ...............
>>> SKIPPED [INFO] Archiva Base :: Consumers :: GPG Signature ........
>>> SKIPPED [INFO] Archiva Consumers :: Consumers Archetype ..........
>>> SKIPPED
>>>
>>>
>>> --
>>>     Guillaume Yziquel
>>
>>
>>
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>
>
>
>
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

Reply via email to