[ 
https://issues.apache.org/jira/browse/JSPWIKI-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arturo Bernal updated JSPWIKI-1371:
-----------------------------------
    Description: 
In the Java CI of the branch release/v3.0.1-rc2 (ubuntu-latest, Java 21), 
SearchManagerTest.testWildcardAfterUnderscoreInPageName failed: expected 
[Page_WithUnderscore] but was [Page_WithUnderscore, ThisPage]. The same commit 
passed in another run.

What I measured: the surefire configuration of jspwiki-main uses runOrder 
random. ImageTest saves the page ThisPage in its test repository and does not 
delete it, while InsertPageTest deletes it in @AfterEach. Running ImageTest and 
then SearchManagerTest in the same JVM (-Dsurefire.runOrder=alphabetical) 
passed, so I could not reproduce the failure and the cause is not confirmed.

  was:
In the Java CI of the branch release/v3.0.1-rc2 (ubuntu-latest, Java 21), 
SearchManagerTest.testWildcardAfterUnderscoreInPageName failed: expected 
[Page_WithUnderscore] but was [Page_WithUnderscore, ThisPage].

ImageTest and InsertPageTest save the page ThisPage and do not delete it, so it 
can still be in the search index when SearchManagerTest runs. The same commit 
passed in another run.

        Summary: SearchManagerTest failed once in the CI of the release branch 
with an extra page ThisPage in the result  (was: SearchManagerTest fails when 
ImageTest or InsertPageTest leave the page ThisPage)

> SearchManagerTest failed once in the CI of the release branch with an extra 
> page ThisPage in the result
> -------------------------------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-1371
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1371
>             Project: JSPWiki
>          Issue Type: Bug
>            Reporter: Arturo Bernal
>            Priority: Major
>
> In the Java CI of the branch release/v3.0.1-rc2 (ubuntu-latest, Java 21), 
> SearchManagerTest.testWildcardAfterUnderscoreInPageName failed: expected 
> [Page_WithUnderscore] but was [Page_WithUnderscore, ThisPage]. The same 
> commit passed in another run.
> What I measured: the surefire configuration of jspwiki-main uses runOrder 
> random. ImageTest saves the page ThisPage in its test repository and does not 
> delete it, while InsertPageTest deletes it in @AfterEach. Running ImageTest 
> and then SearchManagerTest in the same JVM (-Dsurefire.runOrder=alphabetical) 
> passed, so I could not reproduce the failure and the cause is not confirmed.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to