diff --git a/python/paddle/fluid/tests/unittests/test_dist_ctr.py b/python/paddle/fluid/tests/unittests/test_dist_ctr.py index f1bbce89821d57c76a91b48f5a71b253d78ff2dc..40c405321fb94412ff0c4f79c55a2eae508b2f8a 100644 --- a/python/paddle/fluid/tests/unittests/test_dist_ctr.py +++ b/python/paddle/fluid/tests/unittests/test_dist_ctr.py @@ -22,17 +22,6 @@ import os flag_name = os.path.splitext(__file__)[0] -def skip_ci(func): - on_ci = bool(int(os.environ.get("SKIP_UNSTABLE_CI", '0'))) - - def __func__(*args, **kwargs): - if on_ci: - return - return func(*args, **kwargs) - - return __func__ - - class TestDistCTR2x2(TestDistBase): def _setup_config(self): self._sync_mode = True @@ -43,7 +32,7 @@ class TestDistCTR2x2(TestDistBase): "dist_ctr.py", delta=1e-2, check_error_log=True, log_name=flag_name) -@skip_ci +@unittest.skip(reason="Skip unstable ci") class TestDistCTRWithL2Decay2x2(TestDistBase): def _setup_config(self): self._sync_mode = True diff --git a/python/paddle/fluid/tests/unittests/test_dist_fleet_ctr.py b/python/paddle/fluid/tests/unittests/test_dist_fleet_ctr.py index acefd65b56b94e6b0862d8e2676bc9cb8826981b..5d3c0fbdd0c9aebf7b229f77aadafea5fb8a23c6 100644 --- a/python/paddle/fluid/tests/unittests/test_dist_fleet_ctr.py +++ b/python/paddle/fluid/tests/unittests/test_dist_fleet_ctr.py @@ -19,17 +19,6 @@ import unittest from test_dist_fleet_base import TestFleetBase -def skip_ci(func): - on_ci = bool(int(os.environ.get("SKIP_UNSTABLE_CI", '0'))) - - def __func__(*args, **kwargs): - if on_ci: - return - return func(*args, **kwargs) - - return __func__ - - class TestDistMnist2x2(TestFleetBase): def _setup_config(self): self._sync_mode = False diff --git a/python/paddle/fluid/tests/unittests/test_dist_fleet_geo.py b/python/paddle/fluid/tests/unittests/test_dist_fleet_geo.py index e34d55b411d9f30b639a14223a59db762bc20992..447f1c16e7dfcd0140392ccd34c1d90350f2bd14 100644 --- a/python/paddle/fluid/tests/unittests/test_dist_fleet_geo.py +++ b/python/paddle/fluid/tests/unittests/test_dist_fleet_geo.py @@ -24,17 +24,6 @@ from test_dist_fleet_base import TestFleetBase from dist_simnet_bow import train_network -def skip_ci(func): - on_ci = bool(int(os.environ.get("SKIP_UNSTABLE_CI", '0'))) - - def __func__(*args, **kwargs): - if on_ci: - return - return func(*args, **kwargs) - - return __func__ - - class TestDistGeoCtr_2x2(TestFleetBase): def _setup_config(self): self._sync_mode = False diff --git a/python/paddle/fluid/tests/unittests/test_dist_se_resnext_async.py b/python/paddle/fluid/tests/unittests/test_dist_se_resnext_async.py index 3a34f744b2d2fa2bdb49888463520392091b7be0..cfa548de0f941ffb2c7317e3f012f88e5383abbd 100644 --- a/python/paddle/fluid/tests/unittests/test_dist_se_resnext_async.py +++ b/python/paddle/fluid/tests/unittests/test_dist_se_resnext_async.py @@ -20,23 +20,12 @@ import os flag_name = os.path.splitext(__file__)[0] -def skip_ci(func): - on_ci = bool(int(os.environ.get("SKIP_UNSTABLE_CI", '0'))) - - def __func__(*args, **kwargs): - if on_ci: - return - return func(*args, **kwargs) - - return __func__ - - class TestDistSeResneXt2x2Async(TestDistBase): def _setup_config(self): self._sync_mode = False self._use_reader_alloc = False - @skip_ci + @unittest.skip(reason="Skip unstable ci") def test_dist_train(self): self.check_with_place( "dist_se_resnext.py", diff --git a/python/paddle/fluid/tests/unittests/test_dist_se_resnext_dgc.py b/python/paddle/fluid/tests/unittests/test_dist_se_resnext_dgc.py index d929ccea64824069cd8ea7ef4553f1711927c588..b48ec89a2afc9038b959a028a9dda2198929f929 100644 --- a/python/paddle/fluid/tests/unittests/test_dist_se_resnext_dgc.py +++ b/python/paddle/fluid/tests/unittests/test_dist_se_resnext_dgc.py @@ -21,17 +21,6 @@ import os flag_name = os.path.splitext(__file__)[0] -def skip_ci(func): - on_ci = bool(int(os.environ.get("SKIP_UNSTABLE_CI", '0'))) - - def __func__(*args, **kwargs): - if on_ci: - return - return func(*args, **kwargs) - - return __func__ - - class TestDistSeResnetNCCL2DGC(TestDistBase): def _setup_config(self): self._sync_mode = True @@ -40,7 +29,7 @@ class TestDistSeResnetNCCL2DGC(TestDistBase): self._nccl2_mode = True self._use_dgc = True - @skip_ci + @unittest.skip(reason="Skip unstable ci") def test_dist_train(self): import paddle.fluid as fluid if fluid.core.is_compiled_with_cuda(): diff --git a/python/paddle/fluid/tests/unittests/test_dist_se_resnext_nccl.py b/python/paddle/fluid/tests/unittests/test_dist_se_resnext_nccl.py index f557bcb09f7a1bf7701b47e8d39cc23605091dfa..41470ef1415363715aed47c5da30a180bb500ccb 100644 --- a/python/paddle/fluid/tests/unittests/test_dist_se_resnext_nccl.py +++ b/python/paddle/fluid/tests/unittests/test_dist_se_resnext_nccl.py @@ -21,24 +21,13 @@ import os flag_name = os.path.splitext(__file__)[0] -def skip_ci(func): - on_ci = bool(int(os.environ.get("SKIP_UNSTABLE_CI", '0'))) - - def __func__(*args, **kwargs): - if on_ci: - return - return func(*args, **kwargs) - - return __func__ - - class TestDistSeResneXtNCCL(TestDistBase): def _setup_config(self): self._sync_mode = True self._use_reader_alloc = False self._nccl2_mode = True - @skip_ci + @unittest.skip(reason="Skip unstable ci") def test_dist_train(self): import paddle.fluid as fluid if fluid.core.is_compiled_with_cuda(): @@ -56,7 +45,7 @@ class TestDistSeResneXtNCCLMP(TestDistBase): self._nccl2_mode = True self._mp_mode = True - @skip_ci + @unittest.skip(reason="Skip unstable ci") def test_dist_train(self): import paddle.fluid as fluid if fluid.core.is_compiled_with_cuda(): diff --git a/python/paddle/fluid/tests/unittests/test_dist_se_resnext_sync.py b/python/paddle/fluid/tests/unittests/test_dist_se_resnext_sync.py index 044a3706c649bda2fa41882bf187870b3f91090f..cb4d07b4ccb662f134605d537d8746f8a5019fbb 100644 --- a/python/paddle/fluid/tests/unittests/test_dist_se_resnext_sync.py +++ b/python/paddle/fluid/tests/unittests/test_dist_se_resnext_sync.py @@ -21,23 +21,12 @@ import os flag_name = os.path.splitext(__file__)[0] -def skip_ci(func): - on_ci = bool(int(os.environ.get("SKIP_UNSTABLE_CI", '0'))) - - def __func__(*args, **kwargs): - if on_ci: - return - return func(*args, **kwargs) - - return __func__ - - class TestDistSeResneXt2x2(TestDistBase): def _setup_config(self): self._sync_mode = True self._use_reader_alloc = False - @skip_ci + @unittest.skip(reason="Skip unstable ci") def test_dist_train(self): self.check_with_place( "dist_se_resnext.py",