-
Notifications
You must be signed in to change notification settings - Fork 3
81 lines (72 loc) · 2.97 KB
/
Copy pathtest-e2e.yml
File metadata and controls
81 lines (72 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: E2E Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test-e2e:
name: Run on Ubuntu
runs-on: ubuntu-latest
env:
TMPDIR: /tmp
steps:
- name: Clone the code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '~1.26'
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Helm
uses: azure/setup-helm@v4
with:
# kustomize v5.5.0 probes helm with `helm version -c`; the -c shorthand
# was removed in helm 3.13, so pin to the last release that accepts it.
version: v3.12.3
- name: Install pinned tools
run: make kind kustomize cmctl chainsaw
- name: Bring up the prod-fidelity env
run: task test-infra:up
- name: Run e2e suite
run: task test-infra:test-e2e
- name: Dump the downstream data plane on failure
if: failure()
run: |
set +e
UKC=${TMPDIR}/.kind-nso-upstream.yaml
bin/kind-v0.32.0 get kubeconfig --name nso-upstream > "${UKC}"
echo "::group::Upstream NSO manager"
KUBECONFIG="${UKC}" kubectl -n network-services-operator-system get pods -o wide
KUBECONFIG="${UKC}" kubectl -n network-services-operator-system describe deploy network-services-operator-controller-manager
KUBECONFIG="${UKC}" kubectl -n network-services-operator-system describe pod -l app.kubernetes.io/name=network-services-operator
KUBECONFIG="${UKC}" kubectl -n network-services-operator-system logs -l app.kubernetes.io/name=network-services-operator --tail=200 --all-containers
echo "::endgroup::"
echo "::group::Upstream cert-manager + webhook cert"
KUBECONFIG="${UKC}" kubectl -n cert-manager get pods -o wide
KUBECONFIG="${UKC}" kubectl -n network-services-operator-system get certificate,secret
echo "::endgroup::"
KC=${TMPDIR}/.kind-nso-downstream.yaml
bin/kind-v0.32.0 get kubeconfig --name nso-downstream > "${KC}"
export KUBECONFIG="${KC}"
echo "::group::GatewayClasses"
kubectl get gatewayclass -o wide
echo "::endgroup::"
echo "::group::Gateways (all namespaces)"
kubectl get gateway -A -o wide
echo "::endgroup::"
echo "::group::datum-downstream-gateway pods"
kubectl -n datum-downstream-gateway get pods -o wide
kubectl -n datum-downstream-gateway logs deploy/envoy-gateway --tail=200
echo "::endgroup::"
echo "::group::Extension server"
kubectl -n network-services-operator-system get pods -o wide
kubectl -n network-services-operator-system logs -l app.kubernetes.io/component=envoy-gateway-extension-server --tail=200
echo "::endgroup::"