You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/01/07 19:03:00 UTC

[jira] [Commented] (SUREFIRE-1872) unwanted change in random generator?

    [ https://issues.apache.org/jira/browse/SUREFIRE-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17260740#comment-17260740 ] 

Michael Osipov commented on SUREFIRE-1872:
------------------------------------------

Where you able to bisect the problem?

> unwanted change in random generator?
> ------------------------------------
>
>                 Key: SUREFIRE-1872
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1872
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Bernd Wahlen
>            Priority: Minor
>
> We are using maven-surefire-plugin:3.0.0-M4 with argLine.
> When updating to M5 solr testcases fail with the following message:
> {code:java}
> [ERROR]   SearchCitiesImplTest>SolrTestCaseJ4.assertNonBlockingRandomGeneratorAvailable:2918->Assert.assertEquals:117 Algorithm specified using test.solr.allowed.securerandom system property does not match actual algorithm expected:<NativePRNG[NonBlocking]> but was:<NativePRNG[]>
> [ERROR]   MatchSolrIndexQueryTest>SolrTestCaseJ4.assertNonBlockingRandomGeneratorAvailable:2918->Assert.assertEquals:117 Algorithm specified using test.solr.allowed.securerandom system property does not match actual algorithm expected:<NativePRNG[NonBlocking]> but was:<NativePRNG[]>
> [ERROR]   SearchUsersQueryTest>SolrTestCaseJ4.assertNonBlockingRandomGeneratorAvailable:2918->Assert.assertEquals:117 Algorithm specified using test.solr.allowed.securerandom system property does not match actual algorithm expected:<NativePRNG[NonBlocking]> but was:<NativePRNG[]>
> {code}
> example plugin config from pom:
> setup is jenkins:2.274-centos docker image + maven-3.6.3 + adoptopenjdk-15
> {code:java}
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-plugin</artifactId>
>                 <configuration>
>                     <trimStackTrace>false</trimStackTrace>
>                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
>                     <excludes>
>                         <exclude>**/Test*.java</exclude>
>                         <exclude>**/Abstract*.java</exclude>
>                     </excludes>
>                     <systemProperties>
>                         <property>
>                             <name>java.awt.headless</name>
>                             <value>true</value>
>                         </property>
>                         <property>
>                             <name>java.net.preferIPv4Stack</name>
>                             <value>true</value>
>                         </property>
>                     </systemProperties>
>                     <argLine>-Dfile.encoding=UTF-8 -Dtest.solr.allowed.securerandom=NativePRNGNonBlocking</argLine>
>                 </configuration>
>                 <version>3.0.0-M4</version> <!-- rollback M5 solr tests fail because random switches unwantedly to NativePRNG -->
>             </plugin>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)