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.ArchivaRepositoryScanningTaskE >> 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.internalConfigurationAnnotatio >> nProcessor,org.springframework.co >> > ntext.annotation.internalAutowiredAnnotationProcessor,org.springframework.co > ntext.annotation.internalRequiredAnnotationProcessor,org.springframework.con > text. >> annotation.internalCommonAnnotationProcessor,repositoryStatisticsManag >> er#test,knownRepositoryContentConsumer#test-consumer,archivaTaskSchedu >> ler#repository,ta >> skExecutor#repository-scanning,taskQueue#repository-scanning,taskQueue >> Executor#repository-scanning,schedulerConfiguration,cronExpressionVali >> dator,repositoryS >> tatisticsManager#default,metadataFacetFactory#org.apache.archiva.metad >> ata.repository.stats,repositorySessionFactory#test,metadataResolver#de >> fault,artifactMap >> pingProvider#default,repositoryPathTranslator#maven2,repositoryStorage >> #maven2,metadataFacetFactory#org.apache.archiva.metadata.repository.st >> orage.maven2.arti >> fact,metadataFacetFactory#org.apache.archiva.metadata.repository.stora >> ge.maven2.project,dependencyTreeBuilder#maven2,repositoryListener#prob >> lem-reports,metad >> ataFacetFactory#org.apache.archiva.reports,knownRepositoryContentConsu >> mer#duplicate-artifacts,wagonFactory,digesterUtils,mavenIndexerUtils,p >> lexusSisuBridge,a >> rchivaConfiguration#default,fileTypes,commons-configuration,componentC >> ontainer,org.springframework.beans.factory.config.PropertyPlaceholderC >> onfigurer#0,preDo >> wnloadPolicy#cache-failures,postDownloadPolicy#checksum,downloadErrorP >> olicy#propagate-errors,downloadErrorPolicy#propagate-errors-on-update, >> preDownloadPolicy >> #releases,preDownloadPolicy#snapshots,urlFailureCache,url-failures-cac >> he,defaultCacheBuilder,repositoryScanner#default,repositoryContentCons >> umers,repositoryC >> ontentFactory#default,pathParser#default,managedRepositoryContent#defa >> ult,managedRepositoryContent#legacy,remoteRepositoryContent#default,re >> moteRepositoryCon >> tent#legacy,metadataTools#default,pathParser#legacy,managedRepoAdmin#t >> est,archivaAdministration#mock,remoteRepositoryAdmin#mock,taskExecutor >> #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.ArchivaRepositoryScanni > 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
