Skip to content

Commit

Permalink
feat(sdk)!: remove kfp.deprecated code
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Sun <[email protected]>
  • Loading branch information
chensun committed Nov 8, 2024
1 parent 1708ce7 commit f7787e9
Show file tree
Hide file tree
Showing 343 changed files with 160 additions and 42,987 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ bazel-*
# VSCode
.vscode

# test yaml
sdk/python/tests/compiler/pipeline.yaml
sdk/python/tests/compiler/testdata/testpackage/pipeline.yaml

# Test temporary files
_artifacts

Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pytest]
addopts = --ignore=sdk/python/kfp/deprecated --ignore=sdk/python/kfp/tests
addopts = --ignore=sdk/python/kfp/tests
testpaths = sdk/python/kfp

This file was deleted.

51 changes: 0 additions & 51 deletions samples/core/condition/condition.py

This file was deleted.

22 changes: 7 additions & 15 deletions samples/core/condition/condition_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
from __future__ import annotations

import unittest
import kfp.deprecated as kfp

import kfp
from kfp.samples.test.utils import debug_verify
from kfp.samples.test.utils import KfpTask
from kfp.samples.test.utils import run_pipeline_func
from kfp.samples.test.utils import TestCase
import kfp_server_api
from ml_metadata.proto import Execution
from .condition import condition

from .condition_v2 import condition as condition_v2
from kfp.samples.test.utils import KfpTask, debug_verify, run_pipeline_func, TestCase


def verify_heads(t: unittest.TestCase, run: kfp_server_api.ApiRun,
Expand All @@ -43,24 +47,12 @@ def verify_tails(t: unittest.TestCase, run: kfp_server_api.ApiRun,
run_pipeline_func([
TestCase(
pipeline_func=condition_v2,
mode=kfp.dsl.PipelineExecutionMode.V2_ENGINE,
arguments={"force_flip_result": "heads"},
verify_func=verify_heads,
),
TestCase(
pipeline_func=condition_v2,
mode=kfp.dsl.PipelineExecutionMode.V2_ENGINE,
arguments={"force_flip_result": "tails"},
verify_func=verify_tails,
),
TestCase(
pipeline_func=condition,
mode=kfp.dsl.PipelineExecutionMode.V1_LEGACY,
arguments={"force_flip_result": "heads"},
),
TestCase(
pipeline_func=condition,
mode=kfp.dsl.PipelineExecutionMode.V1_LEGACY,
arguments={"force_flip_result": "tails"},
),
])
Loading

0 comments on commit f7787e9

Please sign in to comment.