You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Eric Barboni (JIRA)" <ji...@codehaus.org> on 2012/06/29 14:24:21 UTC
[jira] (MRM-1638) Improve unit test for archiva build
Eric Barboni created MRM-1638:
---------------------------------
Summary: Improve unit test for archiva build
Key: MRM-1638
URL: https://jira.codehaus.org/browse/MRM-1638
Project: Archiva
Issue Type: Task
Components: Build
Affects Versions: 1.4
Environment: jdk 7.
Reporter: Eric Barboni
Due to change in jdk implementation in jdk7 test methods are executed in random order.
As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305552#comment-305552 ]
Eric Barboni edited comment on MRM-1638 at 9/6/12 10:55 AM:
------------------------------------------------------------
List of module in fault figure are useless. Some failure may be real failure
According to build 1076
org.apache.archiva:archiva-webapp-js
org.apache.archiva:problem-reports
org.apache.archiva:archiva-scheduler-repository
org.apache.archiva:archiva-rest-services
was (Author: skygolanur):
List of module in fault figure are useless. Some failure may be real failure
org.apache.archiva:archiva-webapp-js
org.apache.archiva:problem-reports
org.apache.archiva:archiva-scheduler-repository
org.apache.archiva:archiva-rest-services
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Eric Barboni
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, testupdate.patch, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302415#comment-302415 ]
Eric Barboni commented on MRM-1638:
-----------------------------------
Will look for property,
a number as properties to give the number of repetition
not set or 0 = default jvm behavior
1 to n = random + time to repeat (with a cap to 10)
Will try to do that.
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302230#comment-302230 ]
Eric Barboni commented on MRM-1638:
-----------------------------------
nope having only archetype-catalog.xml and settings.xml
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Attachments: surefirereport.txt
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Barboni updated MRM-1638:
------------------------------
Attachment: ChecksumTest.patch
Checksum Test are multiple time runnable.
-Add @Before to remove testing folder
-Remove a extends to abstrac cause not used
Test missing missing sa1 file that where there from previously runned method
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302789#comment-302789 ]
Olivier Lamy commented on MRM-1638:
-----------------------------------
patch applied. Thanks!
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated MRM-1638:
------------------------------
Fix Version/s: 1.4-M3
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305396#comment-305396 ]
Eric Barboni edited comment on MRM-1638 at 8/4/12 7:06 AM:
-----------------------------------------------------------
* fix for archiva-artifact-converter module
* fix for archiva-policies module (testPolicyYes workflow is not trivial for multiple run)
Will commit myself as warm up
was (Author: skygolanur):
* fix for archiva-artifact-converter module
* fix for archiva-policies module (testPolicyYes workflow is not trivial for multiple run)
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, testupdate.patch, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302414#comment-302414 ]
Olivier Lamy commented on MRM-1638:
-----------------------------------
Fixed.
For the random + several time, ok but not as default (something configurable via a sys props and activated in ci servers). Archiva build is already long enough for laptop :-)
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Barboni updated MRM-1638:
------------------------------
Attachment: testupdate.patch
* fix for archiva-artifact-converter module
* fix for archiva-policies module (testPolicyYes workflow is not trivial for multiple run)
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, testupdate.patch, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302226#comment-302226 ]
Olivier Lamy commented on MRM-1638:
-----------------------------------
Do you have locally any file ~/.m2/archiva.xml ?
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Attachments: surefirereport.txt
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Barboni updated MRM-1638:
------------------------------
Attachment: surefirereport.txt
Surefire report example on a archiva-configuration with last svn version I can get.
2 consecutive run clean install
1 fail first run.
3 fail second run.
:(
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Attachments: surefirereport.txt
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302409#comment-302409 ]
Eric Barboni commented on MRM-1638:
-----------------------------------
Sorry I had this parameter to run several time to check for reproductability and give more error because 1 run can be successful with luck.
My point is to use the jdk7 job to stress test junit and help making them more reliable according to the jdk7 implementation change.
Example of a potential test:
testAdd and testRemove on a same list
Add is adding one element , remove is removing one element
Theoricaly:
testRemove may be executable alone, in this dummy example it fail (deleting from empty)
or several time not
Thats why I introduce a loop in the 1.7 testrunner. My evil plan was to set the loop to more than 2 :p but I don't want to destroy jenkins.
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302413#comment-302413 ]
Eric Barboni commented on MRM-1638:
-----------------------------------
Sorry,
I spend lot of time testing that I create no regression but archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/ShowArtifactActionTest.java
miss a @Before annotation on setUp method
--
I think it's a good idea to have the runner exectuting several time a random list of method or a ascending + reverse list of method
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308544#comment-308544 ]
Eric Barboni commented on MRM-1638:
-----------------------------------
Can go through full mvn clean install locally on jdk 7 but sometimes file delete issue in the following code:
{code}
File directory = new File( "target/test-repositories" );
if (directory.exists())
{
FileUtils.deleteDirectory( directory );
}
{code}
On the module
*Archiva Base :: Consumers :: Core Consumers*
(well seen one time only and forgot to copy error :( )
*Archiva Base :: Proxy*
(setUp of AbstractProxyTestCase)
*Archiva Core Plugins :: File System Backed Metadata Repository*
(setUp of FileMetadataRepositoryTest)
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Eric Barboni
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, testupdate.patch, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302407#comment-302407 ]
Olivier Lamy commented on MRM-1638:
-----------------------------------
Thanks.
But I'm a bit confuse by the patch because with 1.7 tests are now executed twice.
I will commit a modified version.
Feel free to comment :-).
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Attachments: dummyRunner.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy reassigned MRM-1638:
---------------------------------
Assignee: Olivier Lamy
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Barboni updated MRM-1638:
------------------------------
Attachment: unitRunnerallbuild.patch
Patch to all junit test in archiva to depend on custom Runner with random method list.
Jdk6 will return non modified list to not alter current build.
Should make jenkins archiva 1.7 job a bit more heratic .
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Attachments: dummyRunner.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302411#comment-302411 ]
Eric Barboni commented on MRM-1638:
-----------------------------------
I just not want to break 1.6 build, in case of future 1.4 js release in short time.
Because I guess that current unit test are more or less good at least with method in JVM order.
My point is more to anticipate jdk 7 or 8 build.
It's not name sorting, is multiple random :p.
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Barboni updated MRM-1638:
------------------------------
Attachment: ListGenerator.patch
Usage -Dorg.apache.archiva.test=n
No more java.spec check.
Poor jenkins :p.
(A bit scare of unit test in other project when they will come to jdk7 )
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, ListGenerator.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302788#comment-302788 ]
Olivier Lamy commented on MRM-1638:
-----------------------------------
More easy to subscribe to archiva-notifications@ see how to here: http://mail-archives.apache.org/mod_mbox/archiva-notifications/
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302207#comment-302207 ]
Olivier Lamy commented on MRM-1638:
-----------------------------------
the issue looks to be more in order change in ConcurrentHashMap.
I have fixed that (normally :-) )
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305552#comment-305552 ]
Eric Barboni edited comment on MRM-1638 at 9/6/12 10:54 AM:
------------------------------------------------------------
List of module in fault figure are useless. Some failure may be real failure
org.apache.archiva:archiva-webapp-js
org.apache.archiva:problem-reports
org.apache.archiva:archiva-scheduler-repository
org.apache.archiva:archiva-rest-services
was (Author: skygolanur):
List of module in fault figure are useless. Some failure may be real failure
org.apache.archiva:archiva-artifact-converter 2 46
org.apache.archiva:archiva-configuration 4 76
org.apache.archiva:archiva-core-consumers 16 44
org.apache.archiva:archiva-policies 1 122
org.apache.archiva:archiva-repository-admin-default 16 58
org.apache.archiva:archiva-rest-services 52 118
org.apache.archiva:archiva-scheduler-repository 1 10
org.apache.archiva:archiva-webapp 9 -2 396
org.apache.archiva:archiva-webdav 1 +1 338
org.apache.archiva:problem-reports 1 12
org.apache.archiva:repository-statistics 1 22
org.apache.archiva:stage-repository-merge 2 4
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Eric Barboni
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, testupdate.patch, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302522#comment-302522 ]
Eric Barboni commented on MRM-1638:
-----------------------------------
De Nada :p.
Is it possible to recieve a mail for failure at bar..ni@irit.fr (my name but anti spam) for the jenkis jdk 7 job once parametrized with multiple test run ?
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, ListGenerator.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Barboni reassigned MRM-1638:
---------------------------------
Assignee: Eric Barboni
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Eric Barboni
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, testupdate.patch, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305552#comment-305552 ]
Eric Barboni commented on MRM-1638:
-----------------------------------
List of module in fault figure are useless. Some failure may be real failure
org.apache.archiva:archiva-artifact-converter 2 46
org.apache.archiva:archiva-configuration 4 76
org.apache.archiva:archiva-core-consumers 16 44
org.apache.archiva:archiva-policies 1 122
org.apache.archiva:archiva-repository-admin-default 16 58
org.apache.archiva:archiva-rest-services 52 118
org.apache.archiva:archiva-scheduler-repository 1 10
org.apache.archiva:archiva-webapp 9 -2 396
org.apache.archiva:archiva-webdav 1 +1 338
org.apache.archiva:problem-reports 1 12
org.apache.archiva:repository-statistics 1 22
org.apache.archiva:stage-repository-merge 2 4
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, testupdate.patch, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Eric Barboni (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Barboni updated MRM-1638:
------------------------------
Attachment: dummyRunner.patch
Fake patch: only for giving a try localy.
Aim try to reproduce jdk7 randomness.
Shuffle what SpringJUnit4ClassRunner and make it several time.
Applied to ArchivaConfigurationTest.
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Attachments: dummyRunner.patch, surefirereport.txt
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MRM-1638.
-----------------------------
Resolution: Fixed
Most of the job has been done.
So close it.
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Eric Barboni
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, testupdate.patch, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302438#comment-302438 ]
Olivier Lamy commented on MRM-1638:
-----------------------------------
applied too.
Thanks (again :-) )
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, ListGenerator.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302410#comment-302410 ]
Olivier Lamy commented on MRM-1638:
-----------------------------------
ok :-).
BTW with not using this name sorting even for 1.6 ?
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Assignee: Olivier Lamy
> Fix For: 1.4-M3
>
> Attachments: dummyRunner.patch, surefirereport.txt, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRM-1638) Improve unit test for archiva build
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRM-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy reassigned MRM-1638:
---------------------------------
Assignee: (was: Olivier Lamy)
> Improve unit test for archiva build
> -----------------------------------
>
> Key: MRM-1638
> URL: https://jira.codehaus.org/browse/MRM-1638
> Project: Archiva
> Issue Type: Task
> Components: Build
> Affects Versions: 1.4
> Environment: jdk 7.
> Reporter: Eric Barboni
> Fix For: 1.4-M3
>
> Attachments: ChecksumTest.patch, dummyRunner.patch, ListGenerator.patch, surefirereport.txt, testupdate.patch, unitRunnerallbuild.patch
>
>
> Due to change in jdk implementation in jdk7 test methods are executed in random order.
> As some unit test in archiva depend on certain order they fail random.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira