Skip to content

Commit

Permalink
odpi#7 wait for init/config to complete & capture logs
Browse files Browse the repository at this point in the history
Signed-off-by: Nigel Jones <[email protected]>
  • Loading branch information
planetf1 committed Jun 12, 2023
1 parent 016711a commit bf0a96a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ jobs:
sleep 1
done
kubectl wait pods --selector=app.kubernetes.io/component=platform --for condition=Ready --timeout=5m
# We could wait for the init job to complete, but the risk is it gets purged - so for now, skip this check
- name: Wait for init/config to complete
run: |
until kubectl get pod -l app.kubernetes.io/component=init -o go-template='{{.items | len}}' | grep -qxF 1; do
echo "Waiting for pod"
sleep 1
done
kubectl wait pods --selector=app.kubernetes.io/component=init --for condition=complete --timeout=5m
- name: Wait for CTS results to be available (this takes a long time - HOURS)
# This waits for the report pod to go ready - this means results are ready
run: |
Expand All @@ -108,7 +114,7 @@ jobs:
sleep 1
done
# -- note on timeouts --
# Above we've used 25 mins. Allow 5 mins for logging retrieval, + some for attachments so allow 5:20 hours here to be safe
# Above we've used 30 mins. Allow 5 mins for logging retrieval, + some for attachments so allow 5:20 hours here to be safe
# But note that kubectl exec timeouts are tricky - combo of finding running pod, connecting to pod, and running command, so are omitted below
# TODO: Could be calculated based on start time of job to maximise available job run time
# -- end --
Expand Down

0 comments on commit bf0a96a

Please sign in to comment.