-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kubeflow:master' into platformspec
- Loading branch information
Showing
155 changed files
with
2,682 additions
and
12,977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
approvers: | ||
- hbelmiro | ||
- DharmitD | ||
reviewers: | ||
- rimolive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Set up KFP on KinD" | ||
description: "Step to start and configure KFP on KinD" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Create k8s Kind Cluster | ||
uses: container-tools/kind-action@v2 | ||
with: | ||
cluster_name: kfp | ||
kubectl_version: v1.29.2 | ||
version: v0.22.0 | ||
node_image: kindest/node:v1.29.2 | ||
|
||
- name: Build images | ||
shell: bash | ||
run: ./scripts/deploy/github/build-images.sh | ||
|
||
- name: Deploy KFP | ||
shell: bash | ||
run: ./scripts/deploy/github/deploy-kfp.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Set up KFP Tekton on KinD" | ||
description: "Step to start and configure KFP on KinD" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Create k8s Kind Cluster | ||
uses: container-tools/kind-action@v2 | ||
with: | ||
cluster_name: kfp | ||
kubectl_version: v1.29.2 | ||
version: v0.22.0 | ||
node_image: kindest/node:v1.29.2 | ||
|
||
- name: Build images | ||
shell: bash | ||
run: ./scripts/deploy/github/build-images.sh | ||
|
||
- name: Deploy KFP | ||
shell: bash | ||
run: ./scripts/deploy/github/deploy-kfp-tekton.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: KFP backend visualization tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
pull_request: | ||
paths: | ||
- '.github/workflows/backend-visualization.yml' | ||
- 'backend/src/apiserver/visualization/**' | ||
- 'test/presubmit-backend-visualization.sh' | ||
|
||
jobs: | ||
backend-visualization-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Run tests | ||
run: ./test/presubmit-backend-visualization.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Frontend Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'frontend/**' | ||
- '.github/workflows/frontend.yml' | ||
|
||
jobs: | ||
frontend-tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Clean npm cache | ||
run: npm cache clean --force | ||
|
||
- name: Install dependencies | ||
run: cd ./frontend && npm ci | ||
|
||
- name: Run Frontend Tests | ||
run: cd ./frontend && npm run test:ci | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: k8s execution tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
pull_request: | ||
paths: | ||
- '.github/workflows/kfp-kubernetes-execution-tests.yml' | ||
- 'sdk/python/**' | ||
- 'api/v2alpha1/**' | ||
- 'kubernetes_platform/**' | ||
|
||
jobs: | ||
kfp-kubernetes-execution-tests: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create KFP cluster | ||
uses: ./.github/actions/kfp-cluster | ||
|
||
- name: Forward API port | ||
run: ./scripts/deploy/github/forward-port.sh "kubeflow" "ml-pipeline" 8888 8888 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: apt-get update | ||
run: sudo apt-get update | ||
|
||
- name: Install protobuf-compiler | ||
run: sudo apt-get install protobuf-compiler -y | ||
|
||
- name: Install setuptools | ||
run: | | ||
pip3 install setuptools | ||
pip3 freeze | ||
- name: Install Wheel | ||
run: pip3 install wheel==0.42.0 | ||
|
||
- name: Install protobuf | ||
run: pip3 install protobuf==4.25.3 | ||
|
||
- name: Generate API proto files | ||
working-directory: ./api | ||
run: make clean python | ||
|
||
- name: Install kfp-pipeline-spec from source | ||
run: | | ||
python3 -m pip install api/v2alpha1/python | ||
- name: Generate kfp-kubernetes proto files from source | ||
working-directory: ./kubernetes_platform | ||
run: make clean python | ||
|
||
- name: Install kfp-kubernetes from source | ||
run: | | ||
pip install -e ./kubernetes_platform/python[dev] | ||
- name: Install requirements | ||
run: pip install -r ./test/kfp-kubernetes-execution-tests/requirements.txt | ||
|
||
- name: Run tests | ||
run: | | ||
export KFP_ENDPOINT="http://localhost:8888" | ||
export TIMEOUT_SECONDS=2700 | ||
pytest ./test/kfp-kubernetes-execution-tests/sdk_execution_tests.py --asyncio-task-timeout $TIMEOUT_SECONDS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: KFP Runtime Code Tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
pull_request: | ||
paths: | ||
- '.github/workflows/kfp-sdk-runtime-tests.yml' | ||
- 'sdk/python/**' | ||
- 'test/presubmit-test-kfp-runtime-code.sh' | ||
|
||
jobs: | ||
kfp-runtime-tests: | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
python: ['3.8', '3.9', '3.10', '3.11', '3.12'] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Run KFP Runtime Code Tests | ||
run: | | ||
export PULL_NUMBER="${{ github.event.inputs.pull_number || github.event.pull_request.number }}" | ||
./test/presubmit-test-kfp-runtime-code.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: KFP SDK Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- 'sdk/**' | ||
- '.github/workflows/kfp-sdk-tests.yml' | ||
|
||
jobs: | ||
sdk-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.9, 3.10, 3.11, 3.12] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Run SDK Tests | ||
run: | | ||
./test/presubmit-tests-sdk.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Re-Run PR tests | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
rerun_pr_tests: | ||
name: rerun_pr_tests | ||
if: ${{ github.event.issue.pull_request }} | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: estroz/rerun-actions@main | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
comment_id: ${{ github.event.comment.id }} |
Oops, something went wrong.