Skip to content

Commit

Permalink
more debug to see which readiness probe is failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Oct 23, 2023
1 parent a705bde commit f405c66
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/env-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
- name: Base Image Built
run: |
# shellcheck disable=SC2086
# shellcheck disable=SC2086,SC2006
cat <<EOT >>$GITHUB_STEP_SUMMARY
### chainlink image used for this test run :link: => ${{ env.CHAINLINK_VERSION }}
### test-base-image image tag for this test run :ship: => ci.${{ github.sha }}
### chainlink image tag used for this test run :link: => `${{ env.CHAINLINK_VERSION }}`
### test-base-image image tag for this test run :ship: => `ci.${{ github.sha }}`
EOT
- name: Build Test Runner
uses: smartcontractkit/chainlink-github-actions/docker/build-push@ce87f8986ca18336cc5015df75916c2ec0a7c4b3 # v2.1.2
Expand Down
4 changes: 3 additions & 1 deletion env/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (m *K8sClient) WaitPodsReady(ns string, rcd *ReadyCheckData, expectedPodCou
for {
select {
case <-timeout.C:
return fmt.Errorf("waitcontainersready, no pods in %s with selector %s after timeout %s",
return fmt.Errorf("waitcontainersready, no pods in '%s' with selector '%s' after timeout '%s'",
ns, rcd.ReadinessProbeCheckSelector, rcd.Timeout)
case <-ticker.C:
podList, err := m.ListPods(ns, rcd.ReadinessProbeCheckSelector)
Expand All @@ -303,8 +303,10 @@ func (m *K8sClient) WaitPodsReady(ns string, rcd *ReadyCheckData, expectedPodCou
allReady := true
for _, pod := range podList.Items {
if pod.Status.Phase == "Succeeded" {
log.Debug().Str("Pod", pod.Name).Msg("Pod is in Succeeded state")
continue
} else if pod.Status.Phase != v1.PodRunning {
log.Debug().Str("Pod", pod.Name).Str("Phase", string(pod.Status.Phase)).Msg("Pod is not running")
allReady = false
break
}
Expand Down
2 changes: 1 addition & 1 deletion env/e2e/common/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

const (
TestEnvType = "chainlink-testing-framework-test"
TestEnvType = "chainlink-testing-framework-env-test"
)

var (
Expand Down

0 comments on commit f405c66

Please sign in to comment.