Disable more flaky tests on CircleCI (#11399)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/11362.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/11399

Differential Revision: D9736673

Pulled By: yf225

fbshipit-source-id: cad8c0e86a70a01b047e648975ca5b9926e4acb3
This commit is contained in:
Will Feng 2018-09-25 10:19:39 -07:00 committed by Facebook Github Bot
parent d7e11e3aae
commit 7122f8b3bb
4 changed files with 12 additions and 0 deletions

View File

@ -831,6 +831,7 @@ class RecurrentNetworkParallelTest(TestCase):
return workspace.FetchBlob("{}_0/partest/i2h_w".format(model._device_prefix))
@unittest.skipIf("IN_CIRCLECI" in os.environ, "FIXME: flaky test in CircleCI")
def test_equiv_recurrent(self):
'''
Test that the model produces exactly same results given

View File

@ -59,6 +59,10 @@ backend_test.exclude('(test_pow_bcast'
if 'JENKINS_URL' in os.environ:
backend_test.exclude(r'(test_vgg19|test_vgg)')
# FIXME: flaky test in CircleCI
if "IN_CIRCLECI" in os.environ:
backend_test.exclude(r'(test_dynamic_slice_cpu)')
# import all test cases at global scope to make them visible to python.unittest
globals().update(backend_test
.enable_report()

View File

@ -8,6 +8,8 @@ import caffe2.python.hypothesis_test_util as hu
import hypothesis.strategies as st
import numpy as np
import unittest
import os
def sigmoid(x):
return 1.0 / (1.0 + np.exp(-x))
@ -248,6 +250,7 @@ class TestCrossEntropyOps(hu.HypothesisTestCase):
output_to_grad='xentropy',
grad_reference=weighted_sigmoid_xentr_logit_grad_ref)
@unittest.skipIf("IN_CIRCLECI" in os.environ, "FIXME: flaky test in CircleCI")
@given(n=st.integers(2, 10),
b=st.integers(1, 5),
**hu.gcs_cpu_only)

View File

@ -10,6 +10,9 @@ import caffe2.python.hypothesis_test_util as hu
import hypothesis.strategies as st
import numpy as np
import unittest
import os
class TestReduceFrontSum(hu.HypothesisTestCase):
@given(batch_size=st.integers(1, 3),
@ -111,6 +114,7 @@ class TestReduceFrontSum(hu.HypothesisTestCase):
atol=1e-4,
rtol=1e-4)
@unittest.skipIf("IN_CIRCLECI" in os.environ, "FIXME: flaky test in CircleCI")
@given(batch_size=st.integers(1, 3),
stride=st.integers(1, 3),
pad=st.integers(0, 3),