Skip to content

Commit 032aa21

Browse files
sararobcopybara-github
authored andcommitted
chore: fix pipeline job system tests
PiperOrigin-RevId: 568511863
1 parent 946b1ab commit 032aa21

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
"torch; python_version<'3.8'",
149149
"xgboost",
150150
"xgboost_ray",
151+
"requests-toolbelt < 1.0.0",
151152
]
152153
)
153154

tests/system/aiplatform/test_pipeline_job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TestPipelineJob(e2e_base.TestEndToEnd):
2929
_temp_prefix = "tmpvrtxsdk-e2e"
3030

3131
def test_add_pipeline_job_to_experiment(self, shared_state):
32-
from kfp import components
32+
from kfp import dsl
3333

3434
# Components:
3535
def train(
@@ -39,7 +39,7 @@ def train(
3939
print(f"number_of_epochs={number_of_epochs}")
4040
print(f"learning_rate={learning_rate}")
4141

42-
train_op = components.create_component_from_func(train)
42+
train_op = dsl.component(train)
4343

4444
# Pipeline:
4545
def training_pipeline(number_of_epochs: int = 10):

0 commit comments

Comments
 (0)