Skip to content

Commit

Permalink
Updating and adding a timeout to the cleanup cluster step (#7727)
Browse files Browse the repository at this point in the history
# Description
Updating and adding a timeout to the cleanup cluster step.

## Type of change
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

Signed-off-by: ytimocin <[email protected]>
  • Loading branch information
ytimocin authored Aug 1, 2024
1 parent 78b52b1 commit a61a428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/cleanup-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fi
# Delete all test namespaces.
echo "delete all test namespaces"
namespaces=$(kubectl get namespace |
grep -E '^kubernetes-interop-tutorial.*|^corerp.*|^default-.*|^radiusfunctionaltestbucket.*|^radius-test.*|^kubernetes-cli.*|^dpsb-.*|^dsrp-.*|^azstorage-workload.*|^dapr-serviceinvocation|^daprrp-rs-.*|^mynamespace.*|^demo.*|^tutorial-demo.*|^ms.+' |
grep -E '^kubernetes-interop-tutorial.*|^corerp.*|^test.*|^default-.*|^radiusfunctionaltestbucket.*|^radius-test.*|^kubernetes-cli.*|^dpsb-.*|^dsrp-.*|^azstorage-workload.*|^dapr-serviceinvocation|^daprrp-rs-.*|^mynamespace.*|^demo.*|^tutorial-demo.*|^ms.+' |
awk '{print $1}')
for ns in $namespaces; do
if [ -z "$ns" ]; then
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/long-running-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ jobs:
--yes --verbose
- name: Clean up cluster
if: always()
timeout-minutes: 60
run: ./.github/scripts/cleanup-cluster.sh
report-failure:
name: Report test failure
Expand Down

0 comments on commit a61a428

Please sign in to comment.