Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 355ff97

Browse files
authored
move get_manager_logs out of if checking for existing cluster (#183)
1 parent ce2470d commit 355ff97

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

tests/codebuild/run_canarytest.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,13 @@ function cleanup {
88
# We want to run every command in this function, even if some fail.
99
set +e
1010

11-
# Describe, if the test fails the Additional field might have more helpful info.
12-
# This is helpful for nonEphemeral cluster since we are not printing manager pod logs
13-
echo "Job descriptions:"
14-
kubectl describe TrainingJob
15-
kubectl describe ProcessingJob
16-
kubectl describe HyperparameterTuningJob
17-
kubectl describe BatchTransformJob
18-
kubectl describe HostingDeployment
19-
kubectl describe HostingAutoscalingPolicy
11+
# Managable to print logs for ephemeral cluster
12+
get_manager_logs
2013

2114
delete_all_resources "default"
2215

2316
if [ -z "${USE_EXISTING_CLUSTER}" ]
2417
then
25-
# Managable to print logs for ephemeral cluster
26-
get_manager_logs
2718
# Delete the role associated with the cluster thats being deleted
2819
delete_generated_role "${role_name}"
2920
# Tear down the cluster if we set it up.

0 commit comments

Comments
 (0)