Skip to content

Commit a4c5b1a

Browse files
committed
Rebase on KFP commit 7d8e921
2 parents 40e6e1b + 7d8e921 commit a4c5b1a

File tree

15 files changed

+74
-21
lines changed

15 files changed

+74
-21
lines changed

.github/workflows/kfp-kubernetes-execution-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ jobs:
7474

7575
- name: Run tests
7676
id: test
77+
env:
78+
PULL_NUMBER: ${{ github.event.pull_request.number }}
79+
REPO_NAME: ${{ github.repository }}
7780
run: |
7881
export KFP_ENDPOINT="http://localhost:8888"
7982
export TIMEOUT_SECONDS=2700

.github/workflows/kfp-samples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
id: tests
4949
env:
5050
PULL_NUMBER: ${{ github.event.pull_request.number }}
51+
REPO_NAME: ${{ github.repository }}
5152
run: |
5253
./backend/src/v2/test/sample-test.sh
5354
continue-on-error: true

.github/workflows/kfp-sdk-runtime-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ jobs:
2828
- name: Run KFP Runtime Code Tests
2929
run: |
3030
export PULL_NUMBER="${{ github.event.inputs.pull_number || github.event.pull_request.number }}"
31+
export REPO_NAME="${{ github.repository }}"
3132
./test/presubmit-test-kfp-runtime-code.sh

.github/workflows/sdk-execution.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,13 @@ jobs:
6666

6767
- name: Run tests
6868
id: tests
69+
env:
70+
PULL_NUMBER: ${{ github.event.pull_request.number }}
71+
REPO_NAME: ${{ github.repository }}
6972
run: |
7073
export KFP_ENDPOINT="http://localhost:8888"
7174
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
7376
continue-on-error: true
7477

7578
- name: Collect failed logs

OWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ reviewers:
1616
- VaniHaripriya
1717
- mprahl
1818
emeritus_approvers:
19-
- harshad16
19+
- harshad16

backend/src/v2/test/sample-test.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ python3 -m pip install -r ./requirements-sample-test.txt
2323

2424
popd
2525

26+
REPO_NAME="${REPO_NAME:-kubeflow/pipelines}"
27+
2628
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"
2830
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"
3032
fi
3133

3234
python3 -m pip install $KFP_PACKAGE_PATH

backend/src/v2/test/scripts/ci-env.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ GCS_ROOT="gs://${PROJECT}/${COMMIT_SHA}/v2-sample-test"
1818
GCR_ROOT="gcr.io/${PROJECT}/${COMMIT_SHA}/v2-sample-test"
1919
# This is kfp-ci endpoint.
2020
HOST=${HOST:-"https://$(curl https://raw.githubusercontent.com/kubeflow/testing/master/test-infra/kfp/endpoint)"}
21+
REPO_NAME="${REPO_NAME:-kubeflow/pipelines}"
2122

2223
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"
2425
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"
2627
fi
2728

2829
cat <<EOF >kfp-ci.env

docs/versions.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
[
22
{
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",
55
"aliases": [
66
"stable",
77
"latest"
88
]
99
},
10+
{
11+
"version": "https://kubeflow-pipelines.readthedocs.io/en/sdk-2.11.0/",
12+
"title": "2.11.0",
13+
"aliases": []
14+
},
1015
{
1116
"version": "https://kubeflow-pipelines.readthedocs.io/en/sdk-2.10.1/",
1217
"title": "2.10.1",

kubernetes_platform/python/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,21 @@ def pipeline():
289289
task = simple_task()
290290
kubernetes.set_image_pull_policy(task, "Always")
291291
```
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+
```

sdk/RELEASE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@
1010

1111
## Documentation updates
1212

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+
1333
# 2.11.0
1434

1535
## Features

0 commit comments

Comments
 (0)