Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add wait for tekton deployment to finish #540

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/collect-data-self-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ jobs:
regionName: ${{ secrets.aws_region }}
bucketName: kepler-power-model
EOF

# TODO: Remove this once the fix is released in new kepler-action version
- name: Wait for Tekton to be ready
run: |
kubectl wait deployment tekton-pipelines-controller \
--for=condition=Available --namespace tekton-pipelines --timeout=5m
kubectl wait deployment tekton-pipelines-webhook \
--for=condition=Available --namespace tekton-pipelines --timeout=5m

- name: Deploy Tasks and Pipelines
working-directory: model_training/tekton
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/tekton-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ jobs:
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
kubectl apply -f pvc/hostpath.yaml

# TODO: Remove this once the fix is released in new kepler-action version
- name: Wait for Tekton to be ready
run: |
kubectl wait deployment tekton-pipelines-controller \
--for=condition=Available --namespace tekton-pipelines --timeout=5m
kubectl wait deployment tekton-pipelines-webhook \
--for=condition=Available --namespace tekton-pipelines --timeout=5m

- name: Deploy Tasks and Pipelines
working-directory: model_training/tekton
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/train-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ jobs:
bucketName: kepler-power-model
EOF

# TODO: Remove this once the fix is released in new kepler-action version
- name: Wait for Tekton to be ready
run: |
kubectl wait deployment tekton-pipelines-controller \
--for=condition=Available --namespace tekton-pipelines --timeout=5m
kubectl wait deployment tekton-pipelines-webhook \
--for=condition=Available --namespace tekton-pipelines --timeout=5m

- name: Deploy Tasks and Pipelines
working-directory: model_training/tekton
run: |
Expand Down