Skip to content

Commit

Permalink
revert local pipeline test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikelite committed Oct 23, 2024
1 parent 48eafca commit b7016bb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tfx/orchestration/local/local_pipeline_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from typing import Any, List

import absl.testing.absltest
import pytest

from tfx import types
from tfx.dsl.compiler import compiler
Expand Down Expand Up @@ -181,13 +182,17 @@ def _getTestPipelineIR(self) -> pipeline_pb2.Pipeline:
c = compiler.Compiler()
return c.compile(test_pipeline)

@pytest.mark.xfail(run=False, reason="PR 6889 This test fails and needs to be fixed. "
"If this test passes, please remove this mark.", strict=True)
def testSimplePipelineRun(self):
self.assertEqual(self.RAN_COMPONENTS, [])

local_dag_runner.LocalDagRunner().run(self._getTestPipeline())

self.assertEqual(self.RAN_COMPONENTS, ['Load', 'Train', 'Validate'])

@pytest.mark.xfail(run=False, reason="PR 6889 This test fails and needs to be fixed. "
"If this test passes, please remove this mark.", strict=True)
def testSimplePipelinePartialRun(self):
self.assertEqual(self.RAN_COMPONENTS, [])

Expand All @@ -197,13 +202,17 @@ def testSimplePipelinePartialRun(self):

self.assertEqual(self.RAN_COMPONENTS, ['Load', 'Train'])

@pytest.mark.xfail(run=False, reason="PR 6889 This test fails and needs to be fixed. "
"If this test passes, please remove this mark.", strict=True)
def testSimplePipelineRunWithIR(self):
self.assertEqual(self.RAN_COMPONENTS, [])

local_dag_runner.LocalDagRunner().run_with_ir(self._getTestPipelineIR())

self.assertEqual(self.RAN_COMPONENTS, ['Load', 'Train', 'Validate'])

@pytest.mark.xfail(run=False, reason="PR 6889 This test fails and needs to be fixed. "
"If this test passes, please remove this mark.", strict=True)
def testSimplePipelinePartialRunWithIR(self):
self.assertEqual(self.RAN_COMPONENTS, [])

Expand Down

0 comments on commit b7016bb

Please sign in to comment.