Skip to content

Commit

Permalink
Added pre upgrade test in end2end (#50)
Browse files Browse the repository at this point in the history
* added pre upgrade test in end2end

Signed-off-by: Yuvraj <[email protected]>
  • Loading branch information
yindia authored Feb 23, 2022
1 parent 1f3d47a commit 01379ee
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions flytetools/.github/workflows/end2end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,7 @@ jobs:
- name: Prime docker cache
run: |
flytectl sandbox exec -- docker load -i /root/snapshot.tar
- name: Upgrade Helm charts
run: |
flytectl sandbox exec -- helm repo add flyteorg https://flyteorg.github.io/flyte
flytectl sandbox exec -- helm repo update
flytectl sandbox exec -- helm upgrade flyte -n flyte --kubeconfig=/etc/rancher/k3s/k3s.yaml flyteorg/flyte -f /flyteorg/share/flyte/values.yaml --wait --set ${{ github.event.repository.name }}.image.repository=flyteorg/${{ github.event.repository.name }},${{ github.event.repository.name }}.image.tag=latest
- name: Setup Flytekit
env:
DNS: "127.0.0.1:30081"
run: |
python -m pip install --upgrade pip
pip install flytekit
Expand All @@ -52,8 +45,18 @@ jobs:
project: flytesnacks
version: "latest"
domain: development
- name: Run tests
id: run-tests
- name: Pre Upgrade Tests
if: ${{ github.event.repository.name == 'flyteadmin' }}
env:
PRIORITIES: "${{ inputs.priorities }}"
run: |
./boilerplate/flyte/end2end/end2end.sh
- name: Upgrade Helm charts
run: |
flytectl sandbox exec -- helm repo add flyteorg https://flyteorg.github.io/flyte
flytectl sandbox exec -- helm repo update
flytectl sandbox exec -- helm upgrade flyte -n flyte --kubeconfig=/etc/rancher/k3s/k3s.yaml flyteorg/flyte -f /flyteorg/share/flyte/values.yaml --wait --set ${{ github.event.repository.name }}.image.repository=flyteorg/${{ github.event.repository.name }},${{ github.event.repository.name }}.image.tag=latest
- name: Post Upgrade Tests
env:
PRIORITIES: "${{ inputs.priorities }}"
run: |
Expand Down

0 comments on commit 01379ee

Please sign in to comment.