mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Flaky test_random.test_sample_multinomial

Open haojin2 opened this issue 8 years ago • 6 comments

Link to the failed build: http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/incubator-mxnet/detail/PR-10533/34/pipeline

======================================================================

FAIL: test_random.test_sample_multinomial

----------------------------------------------------------------------

Traceback (most recent call last):

  File "C:\Anaconda3\envs\py2\lib\site-packages\nose\case.py", line 197, in runTest

    self.test(*self.arg)

  File "C:\jenkins_slave\workspace\ut-python-gpu\tests\python\unittest\common.py", line 157, in test_new

    orig_test(*args, **kwargs)

  File "C:\jenkins_slave\workspace\ut-python-gpu\tests\python\unittest\test_random.py", line 400, in test_sample_multinomial

    mx.test_utils.assert_almost_equal(freq, x[i], rtol=0.20)

  File "C:\jenkins_slave\workspace\ut-python-gpu\pkg_vc14_gpu\python\mxnet\test_utils.py", line 493, in assert_almost_equal

    raise AssertionError(msg)

AssertionError: 

Items are not equal:

Error 10000000317344786.000000 exceeds tolerance rtol=0.200000, atol=0.000000.  Location of maximum error:(4,), a=0.000200, b=0.000000

 a: array([ 0.3922,  0.3044,  0.2064,  0.0968,  0.0002])

 b: array([ 0.40000001,  0.30000001,  0.2       ,  0.1       ,  0.        ], dtype=float32)

-------------------- >> begin captured logging << --------------------

common: INFO: Setting test np/mx/python random seeds, use MXNET_TEST_SEED=22688242 to reproduce.

--------------------- >> end captured logging << ---------------------

haojin2 avatar May 07 '18 20:05 haojin2

Hi @haojin2, please also add information about the configuration in which this is happening - otherwise, it will be hard to reproduce the failure. Ideally, just link a CI result.

marcoabreu avatar May 08 '18 21:05 marcoabreu

@marcoabreu here's the link to the failed build: http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/incubator-mxnet/detail/PR-10533/34/pipeline, will also update the issue description

haojin2 avatar May 08 '18 21:05 haojin2

http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/incubator-mxnet/detail/PR-11186/3/pipeline

larroy avatar Jun 08 '18 14:06 larroy

Failed here: http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/incubator-mxnet/detail/PR-11157/8/pipeline

aaronmarkham avatar Jun 14 '18 04:06 aaronmarkham

Can be reproduced with:

MXNET_TEST_SEED=1599588672 nosetests -v --logging-level=DEBUG tests/python/unittest/test_random.py:test_sample_multinomial

anirudh2290 avatar Jun 21 '18 19:06 anirudh2290

Logs - http://jenkins.mxnet-ci.amazon-ml.com/blue/rest/organizations/jenkins/pipelines/incubator-mxnet/branches/PR-10889/runs/15/nodes/752/log/?start=0

======================================================================
FAIL: test_operator_gpu.test_sample_multinomial
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Anaconda3\envs\py3\lib\site-packages\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "C:\Anaconda3\envs\py3\lib\site-packages\nose\util.py", line 620, in newfunc
    return func(*arg, **kw)
  File "C:\jenkins_slave\workspace\ut-python-gpu\tests\python\gpu\../unittest\common.py", line 157, in test_new
    orig_test(*args, **kwargs)
  File "C:\jenkins_slave\workspace\ut-python-gpu\tests\python\gpu\../unittest\test_random.py", line 384, in test_sample_multinomial
    mx.test_utils.assert_almost_equal(freq, x[i], rtol=0.20)
  File "C:\jenkins_slave\workspace\ut-python-gpu\pkg_vc14_gpu\python\mxnet\test_utils.py", line 493, in assert_almost_equal
    raise AssertionError(msg)
AssertionError: 
Items are not equal:
Error 10000000317344786.000000 exceeds tolerance rtol=0.200000, atol=0.000000.  Location of maximum error:(4,), a=0.000200, b=0.000000
 a: array([ 0.4068,  0.2872,  0.2026,  0.1032,  0.0002])
 b: array([ 0.40000001,  0.30000001,  0.2       ,  0.1       ,  0.        ], dtype=float32)
-------------------- >> begin captured logging << --------------------
common: INFO: Setting test np/mx/python random seeds, use MXNET_TEST_SEED=227838357 to reproduce.
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
XML: C:\jenkins_slave\workspace\ut-python-gpu\nosetests_gpu_operator.xml
----------------------------------------------------------------------
Ran 385 tests in 1184.726s

FAILED (SKIP=9, failures=1)

anirudhacharya avatar Jun 26 '18 19:06 anirudhacharya