That’s reasonable. -Rob
> On Jul 10, 2018, at 1:17 PM, Gary Gregory <[email protected]> wrote: > > How about: > > - create a release branch > - running the tests until you are confident all is well (mvn clean test) > - skipping the tests for the real release by using -DskipTests > - adding suitable notes to the read-me and release notes > > Gary > > On Tue, Jul 10, 2018 at 10:04 AM Rob Tompkins <[email protected]> wrote: > >> I’m actually working on this but the non-deterministic unit tests drive me >> a little crazy. Is there a way we can both test randomness and have >> deterministic testing capability? >> >> -Rob >> >>> On Jul 3, 2018, at 1:24 PM, Gilles <[email protected]> wrote: >>> >>> Hello Bruno. >>> >>> On Tue, 3 Jul 2018 11:07:48 +0000 (UTC), Bruno P. Kinoshita wrote: >>>> Hi Gilles, >>>> >>>> I've checked out the latest from >>>> https://github.com/apache/commons-rng, updated the pom.xml to use 47 >>>> instead of 45, and downloaded JDK 9. >>>> >>>> [...] >>>> >>>> >>>> [INFO] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time >>>> elapsed: 6.935 s - in >>>> >> org.apache.commons.rng.sampling.distribution.DiscreteSamplerParametricTest >>>> [INFO] Running >>>> >> org.apache.commons.rng.sampling.distribution.ContinuousSamplerParametricTest >>>> [ERROR] Tests run: 35, Failures: 1, Errors: 0, Skipped: 0, Time >>>> elapsed: 52.91 s <<< FAILURE! - in >>>> >> org.apache.commons.rng.sampling.distribution.ContinuousSamplerParametricTest >>>> [ERROR] testSampling[12: >>>> >> data=org.apache.commons.math3.distribution.ExponentialDistribution@6f3f0fae >>>> (inverse method) >>>> [rng=org.apache.commons.rng.core.source32.Well44497a]: >>>> deciles=[0.3634937790195007, 0.7698452520340235, 1.230528556588627, >>>> 1.762348401992668, 2.391357772931811, 3.1612030249658347, >>>> 4.153706174924479, 5.552560797897647, >>>> >> 7.943918570829458]](org.apache.commons.rng.sampling.distribution.ContinuousSamplerParametricTest) >>>> Time elapsed: 0.117 s <<< FAILURE! >>>> java.lang.AssertionError: >>>> org.apache.commons.math3.distribution.ExponentialDistribution@6f3f0fae >>>> (inverse method) >>>> [rng=org.apache.commons.rng.core.source32.Well44497a]: Too many >>>> failures for sample size = 20000 (3 out of 50 tests failed, >>>> chi2=[26.534000000000002, 25.108, 23.597] >>>> [...] >>>> [ERROR] >>>> [ERROR] For more information about the errors and possible solutions, >>>> please read the following articles: >>>> [ERROR] [Help 1] >>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException >>>> [ERROR] >>>> [ERROR] After correcting the problems, you can resume the build with >>>> the command >>>> [ERROR] mvn <goals> -rf :commons-rng-sampling >>> >>> This a transient error due to the expected random nature of >>> the algorithms being tested. >>> Running the above command multiple times should get you past >>> this issue. >>> The real issue is with module "commons-rng-examples" (that >>> still fails on my machine with CP 47 and Java 9). >>> >>> Regards, >>> Gilles >>> >>>> >>>> >>>> And confirmed that when executing the program, at the beginning the >>>> the log output, it said "Java version: 9.0.4, vendor: Oracle >>>> Corporation". >>>> >>>> >>>> Hope that helps, >>>> Bruno >>>> >>>> >>>> >>>> >>>> ________________________________ >>>> From: Gilles <[email protected]> >>>> To: Commons Developers List <[email protected]> >>>> Sent: Tuesday, 3 July 2018 9:23 PM >>>> Subject: [RNG] CP 47 >>>> >>>> >>>> >>>> Hi. >>>> >>>> >>>> Could someone please run, with Java 9 or later, >>>> >>>> >>>> $ mvn -Dcommons.release.dryRun=true -Ptest-deploy -Prelease >>>> >>>> -Pcommons-rng-examples clean test site deploy >>>> >>>> >>>> using commons-parent 47, and report how it went? >>>> >>>> >>>> Thanks, >>>> >>>> Gilles >>>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
