13
13
# limitations under the License.
14
14
"""Tests for tfx.orchestration.portable.launcher."""
15
15
16
- import pytest
17
16
import contextlib
18
17
import copy
19
18
import os
@@ -490,8 +489,6 @@ def testLauncher_EmptyOptionalInputTriggersExecution(self):
490
489
],
491
490
)
492
491
493
- @pytest .mark .xfail (run = False , reason = "PR 6889 This test fails and needs to be fixed. "
494
- "If this test passes, please remove this mark." , strict = True )
495
492
def testLauncher_PublishingNewArtifactsAndUseCache (self ):
496
493
# In this test case, there are two executions:
497
494
# In the first one,trainer reads the fake upstream outputs and publish
@@ -578,8 +575,6 @@ def testLauncher_PublishingNewArtifactsAndUseCache(self):
578
575
],
579
576
)
580
577
581
- @pytest .mark .xfail (run = False , reason = "PR 6889 This test fails and needs to be fixed. "
582
- "If this test passes, please remove this mark." , strict = True )
583
578
def testLauncher_CacheIsSupportedForNodeWithNoOutput (self ):
584
579
# Even though a node has no output at all, the launcher should treat the
585
580
# second execution as CACHED as long as the cache context is the same.
@@ -639,8 +634,6 @@ def testLauncher_CacheIsSupportedForNodeWithNoOutput(self):
639
634
],
640
635
)
641
636
642
- @pytest .mark .xfail (run = False , reason = "PR 6889 This test fails and needs to be fixed. "
643
- "If this test passes, please remove this mark." , strict = True )
644
637
def testLauncher_CacheDisabled (self ):
645
638
# In this test case, there are two executions:
646
639
# In the first one,trainer reads the fake upstream outputs and publish
@@ -757,8 +750,6 @@ def testLauncher_CacheDisabled(self):
757
750
],
758
751
)
759
752
760
- @pytest .mark .xfail (run = False , reason = "PR 6889 This test fails and needs to be fixed. "
761
- "If this test passes, please remove this mark." , strict = True )
762
753
def testLauncher_ReEntry (self ):
763
754
# Some executors or runtime environment may reschedule the launcher job
764
755
# before the launcher job can publish any results of the execution to MLMD.
@@ -830,8 +821,6 @@ def create_test_launcher(executor_operators):
830
821
execution_preparation_result = third_test_launcher ._prepare_execution ()
831
822
self .assertFalse (execution_preparation_result .is_execution_needed )
832
823
833
- @pytest .mark .xfail (run = False , reason = "PR 6889 This test fails and needs to be fixed. "
834
- "If this test passes, please remove this mark." , strict = True )
835
824
def testLauncher_ToleratesDoubleCleanup (self ):
836
825
# Some executors or runtime environment may delete stateful_working_dir,
837
826
# tmp_dir and unexpectedly. The launcher should handle such cases gracefully
@@ -895,8 +884,6 @@ def testLauncher_ToleratesDoubleCleanup(self):
895
884
],
896
885
)
897
886
898
- @pytest .mark .xfail (run = False , reason = "PR 6889 This test fails and needs to be fixed. "
899
- "If this test passes, please remove this mark." , strict = True )
900
887
def testLauncher_ExecutionFailed (self ):
901
888
# In the case that the executor failed and raises an execption.
902
889
# An Execution will be published.
@@ -916,8 +903,6 @@ def testLauncher_ExecutionFailed(self):
916
903
with self .assertRaises (FakeError ):
917
904
_ = test_launcher .launch ()
918
905
919
- @pytest .mark .xfail (run = False , reason = "PR 6889 This test fails and needs to be fixed. "
920
- "If this test passes, please remove this mark." , strict = True )
921
906
def testLauncher_ExecutionFailedViaReturnCode (self ):
922
907
# In the case that the executor failed and raises an execption.
923
908
# An Execution will be published.
@@ -965,8 +950,6 @@ def testLauncher_ExecutionFailedViaReturnCode(self):
965
950
],
966
951
)
967
952
968
- @pytest .mark .xfail (run = False , reason = "PR 6889 This test fails and needs to be fixed. "
969
- "If this test passes, please remove this mark." , strict = True )
970
953
def testLauncher_with_CustomDriver_NewSpan (self ):
971
954
self .reloadPipelineWithNewRunId ()
972
955
test_launcher = launcher .Launcher (
@@ -1019,8 +1002,6 @@ def testLauncher_with_CustomDriver_NewSpan(self):
1019
1002
],
1020
1003
)
1021
1004
1022
- @pytest .mark .xfail (run = False , reason = "PR 6889 This test fails and needs to be fixed. "
1023
- "If this test passes, please remove this mark." , strict = True )
1024
1005
def testLauncher_with_CustomDriver_ExistingSpan (self ):
1025
1006
LauncherTest .fakeExampleGenOutput (self ._mlmd_connection , self ._example_gen ,
1026
1007
2 , 1 )
0 commit comments