Skip to content

Commit

Permalink
chore(debug): restore commits
Browse files Browse the repository at this point in the history
Signed-off-by: slonka <[email protected]>
  • Loading branch information
slonka committed Sep 26, 2024
1 parent 3203955 commit fced19c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
E2E_PARAM_PARALLELISM: ${{ fromJSON(inputs.matrix).parallelism }}
jobs:
e2e:
timeout-minutes: 60
timeout-minutes: 360
# can't use env vars here
runs-on: ${{ inputs.runner }}
if: ${{ inputs.runner != '' }}
Expand Down Expand Up @@ -121,12 +121,10 @@ jobs:
trap "on_exit" EXIT
fi
if [[ "${{ env.E2E_PARAM_TARGET }}" != "" ]]; then
target="test/e2e-${{ env.E2E_PARAM_TARGET }}"
else
target="test/e2e"
fi
make ${MAKE_PARAMETERS} CI=true "${target}"
make ${MAKE_PARAMETERS} test/e2e/debug CI=true E2E_PKG_LIST=./test/e2e_env/kubernetes/...
- name: Setup tmate session
if: failure()
uses: mxschmitt/action-tmate@v3
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
jobs:
test_unit:
timeout-minutes: 20
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci/skip-test') }}
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down Expand Up @@ -57,8 +57,8 @@ jobs:
"sidecarContainers": [""]
},
"test_e2e_env": {
"target": ["kubernetes", "universal", "multizone"],
"k8sVersion": ["kind", "kindIpv6", "${{ env.K8S_MAX_VERSION }}"],
"target": ["kubernetes"],
"k8sVersion": ["${{ env.K8S_MAX_VERSION }}"],
"arch": ["amd64"],
"parallelism": [1],
"cniNetworkPlugin": ["flannel"],
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/build-test-distribute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ jobs:
make dev/tools
- run: |
make clean
- run: |
make check
- id: sca-project
uses: Kong/public-shared-actions/security-actions/sca@ecbcd7051e12e6e3dc37dc890820bbce457bc05f # v2.6.0
with:
Expand All @@ -84,7 +82,7 @@ jobs:
uses: ./.github/workflows/_test.yaml
with:
FULL_MATRIX: ${{ needs.check.outputs.FULL_MATRIX }}
RUNNERS_BY_ARCH: ${{ (github.event_name == 'push' || github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) && '{"amd64":"ubuntu-latest-kong","arm64":"ubuntu-latest-arm64-kong"}' || '{"amd64":"ubuntu-latest","arm64":""}' }}
RUNNERS_BY_ARCH: ${{ (github.event_name == 'push' || github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) && '{"amd64":"ubuntu-latest-kong","arm64":"ubuntu-latest-arm64-kong"}' || '{"amd64":"ubuntu-latest-kong","arm64":""}' }}
secrets: inherit
build_publish:
permissions:
Expand Down
6 changes: 5 additions & 1 deletion test/framework/k8s_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,11 @@ func (c *K8sCluster) GetKuma() ControlPlane {
func (c *K8sCluster) GetKumaCPLogs() (string, error) {
logs := ""

pods := c.GetKuma().(*K8sControlPlane).GetKumaCPPods()
kuma := c.GetKuma().(*K8sControlPlane)
if kuma == nil {
return "", errors.Errorf("no kuma-cp registered")
}
pods := kuma.GetKumaCPPods()
if len(pods) < 1 {
return "", errors.Errorf("no kuma-cp pods found for logs")
}
Expand Down

0 comments on commit fced19c

Please sign in to comment.