Skip to content

Commit

Permalink
Migrated kubeflow-pipeline-upgrade-test to GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: hbelmiro <[email protected]>
  • Loading branch information
hbelmiro committed Jun 29, 2024
1 parent 7a21329 commit 520a868
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 228 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/upgrade-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: KFP upgrade tests

on:
push:
branches: [master]

pull_request:
paths:
- '.github/workflows/upgrade-test.yml'
- 'backend/**'
- 'manifests/kustomize/**'

jobs:
upgrade-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create KFP cluster
uses: ./.github/actions/kfp-cluster

- name: Prepare upgrade tests
working-directory: backend/test/integration
run: go test -v ./... -namespace ${NAMESPACE} -args -runUpgradeTests=true -testify.m=Prepare

- name: Prepare verification tests
working-directory: backend/test/integration
run: go test -v ./... -namespace ${NAMESPACE} -args -runUpgradeTests=true -testify.m=Verify

- name: Prepare upgrade tests v2
working-directory: backend/test/v2/integration/
run: go test -v ./... -namespace ${NAMESPACE} -args -runUpgradeTests=true -testify.m=Prepare

- name: Prepare verification tests v2
working-directory: backend/test/v2/integration
run: go test -v ./... -namespace ${NAMESPACE} -args -runUpgradeTests=true -testify.m=Verify
84 changes: 0 additions & 84 deletions test/e2e_test_gke_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,90 +37,6 @@ spec:
- name: namespace
value: kubeflow
templates:
- name: upgrade-test-preparation
inputs:
parameters:
- name: target-image-prefix
- name: test-results-gcs-dir
- name: api-integration-test-image-suffix
steps:
- - name: build-api-integration-test-image
template: build-image
arguments:
parameters:
- name: docker-path
value: .
- name: docker-file
value: test/api-integration-test/Dockerfile
- name: image-name
value: "{{inputs.parameters.target-image-prefix}}{{inputs.parameters.api-integration-test-image-suffix}}"
- - name: run-upgrade-tests-preparation
template: run-upgrade-tests-preparation
arguments:
parameters:
- name: test-results-gcs-dir
value: "{{inputs.parameters.test-results-gcs-dir}}"
- name: api-integration-test-image
value: "{{inputs.parameters.target-image-prefix}}{{inputs.parameters.api-integration-test-image-suffix}}"

- name: upgrade-test-verification
inputs:
parameters:
- name: target-image-prefix
- name: test-results-gcs-dir
- name: api-integration-test-image-suffix
steps:
- - name: run-upgrade-tests-verification
template: run-upgrade-tests-verification
arguments:
parameters:
- name: test-results-gcs-dir
value: "{{inputs.parameters.test-results-gcs-dir}}"
- name: api-integration-test-image
value: "{{inputs.parameters.target-image-prefix}}{{inputs.parameters.api-integration-test-image-suffix}}"

- name: upgrade-test-preparation-v2
inputs:
parameters:
- name: target-image-prefix
- name: test-results-gcs-dir
- name: api-integration-test-image-suffix
steps:
- - name: build-api-integration-test-image
template: build-image
arguments:
parameters:
- name: docker-path
value: .
- name: docker-file
value: test/api-integration-test/Dockerfile
- name: image-name
value: "{{inputs.parameters.target-image-prefix}}{{inputs.parameters.api-integration-test-image-suffix}}"
- - name: run-upgrade-tests-preparation-v2
template: run-upgrade-tests-preparation-v2
arguments:
parameters:
- name: test-results-gcs-dir
value: "{{inputs.parameters.test-results-gcs-dir}}/v2"
- name: api-integration-test-image
value: "{{inputs.parameters.target-image-prefix}}{{inputs.parameters.api-integration-test-image-suffix}}"

- name: upgrade-test-verification-v2
inputs:
parameters:
- name: target-image-prefix
- name: test-results-gcs-dir
- name: api-integration-test-image-suffix
steps:
- - name: run-upgrade-tests-verification-v2
template: run-upgrade-tests-verification-v2
arguments:
parameters:
- name: test-results-gcs-dir
value: "{{inputs.parameters.test-results-gcs-dir}}/v2"
- name: api-integration-test-image
value: "{{inputs.parameters.target-image-prefix}}{{inputs.parameters.api-integration-test-image-suffix}}"

# Build and push image
- name: build-image
retryStrategy:
Expand Down
144 changes: 0 additions & 144 deletions test/upgrade-tests.sh

This file was deleted.

0 comments on commit 520a868

Please sign in to comment.