File tree Expand file tree Collapse file tree 15 files changed +74
-21
lines changed
kubernetes_platform/python
kfp-kubernetes-execution-tests Expand file tree Collapse file tree 15 files changed +74
-21
lines changed Original file line number Diff line number Diff line change 74
74
75
75
- name : Run tests
76
76
id : test
77
+ env :
78
+ PULL_NUMBER : ${{ github.event.pull_request.number }}
79
+ REPO_NAME : ${{ github.repository }}
77
80
run : |
78
81
export KFP_ENDPOINT="http://localhost:8888"
79
82
export TIMEOUT_SECONDS=2700
Original file line number Diff line number Diff line change 48
48
id : tests
49
49
env :
50
50
PULL_NUMBER : ${{ github.event.pull_request.number }}
51
+ REPO_NAME : ${{ github.repository }}
51
52
run : |
52
53
./backend/src/v2/test/sample-test.sh
53
54
continue-on-error : true
Original file line number Diff line number Diff line change 28
28
- name : Run KFP Runtime Code Tests
29
29
run : |
30
30
export PULL_NUMBER="${{ github.event.inputs.pull_number || github.event.pull_request.number }}"
31
+ export REPO_NAME="${{ github.repository }}"
31
32
./test/presubmit-test-kfp-runtime-code.sh
Original file line number Diff line number Diff line change @@ -66,10 +66,13 @@ jobs:
66
66
67
67
- name : Run tests
68
68
id : tests
69
+ env :
70
+ PULL_NUMBER : ${{ github.event.pull_request.number }}
71
+ REPO_NAME : ${{ github.repository }}
69
72
run : |
70
73
export KFP_ENDPOINT="http://localhost:8888"
71
74
export TIMEOUT_SECONDS=2700
72
- pytest ./test/sdk-execution-tests/sdk_execution_tests.py --asyncio-task-timeout $TIMEOUT_SECONDS
75
+ pytest -v -n 5 ./test/sdk-execution-tests/sdk_execution_tests.py
73
76
continue-on-error : true
74
77
75
78
- name : Collect failed logs
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ reviewers:
16
16
- VaniHaripriya
17
17
- mprahl
18
18
emeritus_approvers:
19
- - harshad16
19
+ - harshad16
Original file line number Diff line number Diff line change @@ -23,10 +23,12 @@ python3 -m pip install -r ./requirements-sample-test.txt
23
23
24
24
popd
25
25
26
+ REPO_NAME=" ${REPO_NAME:- kubeflow/ pipelines} "
27
+
26
28
if [[ -n " ${PULL_NUMBER} " ]]; then
27
- export KFP_PACKAGE_PATH=" git+https://github.com/opendatahub-io/data-science-pipelines @refs/pull/${PULL_NUMBER} /merge#egg=kfp&subdirectory=sdk/python"
29
+ export KFP_PACKAGE_PATH=" git+https://github.com/${REPO_NAME} @refs/pull/${PULL_NUMBER} /merge#egg=kfp&subdirectory=sdk/python"
28
30
else
29
- export KFP_PACKAGE_PATH=' git+https://github.com/opendatahub-io/data-science-pipelines #egg=kfp&subdirectory=sdk/python'
31
+ export KFP_PACKAGE_PATH=" git+https://github.com/${REPO_NAME} #egg=kfp&subdirectory=sdk/python"
30
32
fi
31
33
32
34
python3 -m pip install $KFP_PACKAGE_PATH
Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ GCS_ROOT="gs://${PROJECT}/${COMMIT_SHA}/v2-sample-test"
18
18
GCR_ROOT=" gcr.io/${PROJECT} /${COMMIT_SHA} /v2-sample-test"
19
19
# This is kfp-ci endpoint.
20
20
HOST=${HOST:- " https://$( curl https://raw.githubusercontent.com/kubeflow/testing/master/test-infra/kfp/endpoint) " }
21
+ REPO_NAME=" ${REPO_NAME:- kubeflow/ pipelines} "
21
22
22
23
if [[ -z " ${PULL_NUMBER} " ]]; then
23
- KFP_PACKAGE_PATH=' git+https://github.com/kubeflow/pipelines\ #egg=kfp&subdirectory=sdk/python'
24
+ KFP_PACKAGE_PATH=" git+https://github.com/${REPO_NAME} #egg=kfp&subdirectory=sdk/python"
24
25
else
25
- KFP_PACKAGE_PATH=' git+https://github.com/kubeflow/pipelines @refs/pull/${PULL_NUMBER}/merge\ #egg=kfp&subdirectory=sdk/python'
26
+ KFP_PACKAGE_PATH=" git+https://github.com/${REPO_NAME} @refs/pull/${PULL_NUMBER} /merge#egg=kfp&subdirectory=sdk/python"
26
27
fi
27
28
28
29
cat << EOF >kfp-ci.env
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
- "version" : " https://kubeflow-pipelines.readthedocs.io/en/sdk-2.11 .0/" ,
4
- "title" : " 2.11 .0" ,
3
+ "version" : " https://kubeflow-pipelines.readthedocs.io/en/sdk-2.12 .0/" ,
4
+ "title" : " 2.12 .0" ,
5
5
"aliases" : [
6
6
" stable" ,
7
7
" latest"
8
8
]
9
9
},
10
+ {
11
+ "version" : " https://kubeflow-pipelines.readthedocs.io/en/sdk-2.11.0/" ,
12
+ "title" : " 2.11.0" ,
13
+ "aliases" : []
14
+ },
10
15
{
11
16
"version" : " https://kubeflow-pipelines.readthedocs.io/en/sdk-2.10.1/" ,
12
17
"title" : " 2.10.1" ,
Original file line number Diff line number Diff line change @@ -289,3 +289,21 @@ def pipeline():
289
289
task = simple_task()
290
290
kubernetes.set_image_pull_policy(task, " Always" )
291
291
```
292
+
293
+ ### ImagePullSecrets: Set secrets to authenticate image pulls
294
+ ``` python
295
+ from kfp import dsl
296
+ from kfp import kubernetes
297
+
298
+ @dsl.container_component
299
+ def hello ():
300
+ return dsl.ContainerSpec(
301
+ image = ' some-private-image:tag' ,
302
+ command = [' echo' , ' hello' ]
303
+ )
304
+
305
+ @dsl.pipeline
306
+ def pipeline ():
307
+ task = hello()
308
+ kubernetes.set_image_pull_secrets(task, [' secret-name' ])
309
+ ```
Original file line number Diff line number Diff line change 10
10
11
11
## Documentation updates
12
12
13
+ # 2.12.0
14
+
15
+ ## Features
16
+
17
+ * Add support for placeholders in resource limits [ \# 11501] ( https://github.com/kubeflow/pipelines/pull/11501 )
18
+ * Introduce cache_key to sdk [ \# 11466] ( https://github.com/kubeflow/pipelines/pull/11466 )
19
+ * Add support for importing models stored in the Modelcar format (sidecar) [ \# 11606] ( https://github.com/kubeflow/pipelines/pull/11606 )
20
+
21
+ ## Breaking changes
22
+
23
+ ## Deprecations
24
+
25
+ ## Bug fixes and other changes
26
+
27
+ * dsl.component docstring typo [ \# 11547] ( https://github.com/kubeflow/pipelines/pull/11547 )
28
+ * Update broken api-connect link [ \# 11521] ( https://github.com/kubeflow/pipelines/pull/11521 )
29
+ * Fix kfp-sdk-test for different python versions [ \# 11559] ( https://github.com/kubeflow/pipelines/pull/11559 )
30
+
31
+ ## Documentation updates
32
+
13
33
# 2.11.0
14
34
15
35
## Features
You can’t perform that action at this time.
0 commit comments