Skip to content

Commit

Permalink
fix: workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaansehgal99 committed Feb 15, 2024
1 parent 83597c0 commit 581d58d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e-preset-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Determine Affected Models
id: affected_models
run: |
PR_BRANCH=${{ github.head_ref }} \
PR_BRANCH=${{ github.ref_name }} \
python3 .github/workflows/kind-cluster/determine_models.py
- name: Print Determined Models
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
# COMBINED_MATRIX.append(combined)
# break
COMBINED_MATRIX=$(echo ${{ steps.affected_models.outputs.matrix }} | jq --argjson configs "$CONFIGS" -c '
COMBINED_MATRIX=$(echo '${{ steps.affected_models.outputs.matrix }}' | jq --argjson configs "$CONFIGS" -c '
map(. as $model | $configs[] | select(.name == $model.name) | $model + .)
')
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
- name: Wait for Resource to be ready
if: steps.check_test_image.outputs.IMAGE_EXISTS == 'true' && steps.check_prod_image.outputs.IMAGE_EXISTS == 'false'
run: |
kubectl rollout status ${{steps.resource.outputs.RESOURCE_TYPE}}/${{ matrix.model.name }}
kubectl rollout status ${{steps.resource.outputs.RESOURCE_TYPE}}/${{ matrix.model.name }} --timeout=1800s
- name: Test home endpoint
if: steps.check_test_image.outputs.IMAGE_EXISTS == 'true' && steps.check_prod_image.outputs.IMAGE_EXISTS == 'false'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/preset-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,3 @@ jobs:
if: ${{ always() }}
run: |
kubectl get job --no-headers -o custom-columns=":metadata.name" | grep "^docker-build-job-${{ matrix.model.name }}-[0-9]" | xargs -r kubectl delete job
kubectl get pods --no-headers -o custom-columns=":metadata.name" | grep "^docker-build-job-${{ matrix.model.name }}-[0-9]" | xargs -r kubectl delete pod

0 comments on commit 581d58d

Please sign in to comment.