Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1472

Fix flaky (sub-) test of GradientDescentUtilsTest in sandbox component 'nlp-utils'

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.2.0
    • None
    • None

    Description

      A flaky test has been discovered with recent modernizations of the sandbox components. It lives in 'nlp-utils' and the problem signals a fragile test setup or potentially numerical instabilities:

      Error: org.apache.opennlp.utils.regression.GradientDescentUtilsTest.testConvergence Time elapsed: 1.156 s <<< ERROR!
      3270java.lang.RuntimeException: failed to converge at iteration 75129 with cost going from 5.010577258277822 to 5.010577258277823
      3271 at org.apache.opennlp.utils.regression.GradientDescentUtilsTest.testConvergence(GradientDescentUtilsTest.java:34)

      The problem (sometimes) occurs on different platforms / environments (Win, Lin, Mac).

      Aims:

      • Investigate the cause of the flakyness
      • Fix the test (environment / setup) so it runs reliably.

      Attachments

        Activity

          People

            mawiesne Martin Wiesner
            mawiesne Martin Wiesner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: