Alex O'Ree created JSPWIKI-1217:
-----------------------------------
Summary: Maven parallel builds fail
Key: JSPWIKI-1217
URL: https://issues.apache.org/jira/browse/JSPWIKI-1217
Project: JSPWiki
Issue Type: Improvement
Components: Build system
Reporter: Alex O'Ree
Been seeing this on the ci server with github pull requests so i decided to
investigate and to try and reproduce this.
Surefire random test orders - no effect
Surefire parallel build "all" setting - no effect
Surefire perCoreThreadCount = 1 - no effect
mvn -T 1C - reproducible unit test failures with the main jar file
> [ERROR] Failures:
[ERROR] XMLGroupDatabaseTest.testGroups:81 expected: <4> but was: <5>
[ERROR] GroupsTest.testTag:47 expected: <<a
href="/test/Group.jsp?group=Admin">Admin</a>, <a
href="/test/Group.jsp?group=Art">Art</a>, <a
href="/test/Group.jsp?group=Literature">Literature</a>, <a
href="/test/Group.jsp?group=TV">TV</a>
> but was: <<a href="/test/Group.jsp?group=Admin">Admin</a>, <a
> href="/test/Group.jsp?group=Art">Art</a>, <a
> href="/test/Group.jsp?group=Literature">Literature</a>, <a
> href="/test/Group.jsp?group=Test">Test</a>, <a
> href="/test/Group.jsp?group=TV">TV</a>
and then other times, the following test case fails
[ERROR] Errors:
[ERROR] RSSGeneratorTest.testBlogRSS2:68 » IllegalState FATAL: database does
not exist
[INFO]
[ERROR] Tests run: 873, Failures: 0, Errors: 1, Skipped: 0
--
This message was sent by Atlassian Jira
(v8.20.10#820010)