DickJC123 opened a new issue #20960:
URL: https://github.com/apache/incubator-mxnet/issues/20960


   ## Description
   I ran into a failure in this job 
https://github.com/apache/incubator-mxnet/runs/5531557396?check_suite_focus=true
 where a test was rerun because of a failure, passed on the 2nd running, but 
then ultimately was marked as failing due to the tear-down routine  
check_leak_ndarray().
   
   Exerpts from the log:
   ```
   [gw1] [ 98%] RERUN 
tests/python/unittest/test_numpy_op.py::test_np_standard_binary_funcs[lshape5-rshape5-floor_divide-floor_divide-True-numeric-<lambda>-<lambda>-2.0-10.0]
 
   ...
   [gw1] [ 98%] PASSED 
tests/python/unittest/test_numpy_op.py::test_np_standard_binary_funcs[lshape5-rshape5-floor_divide-floor_divide-True-numeric-<lambda>-<lambda>-2.0-10.0]
 
   ...
   [gw1] [ 98%] ERROR 
tests/python/unittest/test_numpy_op.py::test_np_standard_binary_funcs[lshape5-rshape5-floor_divide-floor_divide-True-numeric-<lambda>-<lambda>-2.0-10.0]
 
   ```
   ### Error Message
   ```
   ==================================== ERRORS 
====================================
   _ ERROR at teardown of 
test_np_standard_binary_funcs[lshape5-rshape5-floor_divide-floor_divide-True-numeric-<lambda>-<lambda>-2.0-10.0]
 _
   [gw1] darwin -- Python 3.8.12 
/Users/runner/hostedtoolcache/Python/3.8.12/x64/bin/python3
   
   request = <SubRequest 'check_leak_ndarray' for <Function 
test_np_standard_binary_funcs[lshape5-rshape5-floor_divide-floor_divide-True-numeric-<lambda>-<lambda>-2.0-10.0]>>
   
       @pytest.fixture(autouse=True)
       def check_leak_ndarray(request):
           garbage_expected = 
request.node.get_closest_marker('garbage_expected')
           if garbage_expected:  # Some tests leak references. They should be 
fixed.
               yield  # run test
               return
   
   ...
   >       assert not any(has_array(x) for x in gc.garbage), 'Found leaked 
NDArrays due to reference cycles'
   E       AssertionError: Found leaked NDArrays due to reference cycles
   E       assert not True
   E        +  where True = any(<generator object 
check_leak_ndarray.<locals>.<genexpr> at 0x1608ec9e0>)
   
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to