-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (59 loc) · 2.27 KB
/
nightly-e2e.yml
File metadata and controls
70 lines (59 loc) · 2.27 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
name: Nightly E2E Smoke (Kind)
on:
schedule:
# 02:00 UTC daily
- cron: "0 2 * * *"
workflow_dispatch:
concurrency:
group: nightly-e2e-kind-smoke
cancel-in-progress: false
env:
GO_VERSION: "1.25"
jobs:
e2e-kind-smoke:
name: E2E (Kind smoke)
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- uses: helm/kind-action@v1
with:
cluster_name: imp-nightly-smoke
- name: Install Helm
uses: azure/setup-helm@v4
- name: Build local E2E images
run: |
docker build -f Dockerfile.operator -t local/imp-operator:e2e .
docker build -f Dockerfile.agent -t local/imp-agent:e2e .
- name: Load local E2E images into Kind
run: |
kind load docker-image local/imp-operator:e2e --name imp-nightly-smoke
kind load docker-image local/imp-agent:e2e --name imp-nightly-smoke
- name: Run E2E tests (retry once)
run: |
set -euo pipefail
FILTER='smoke'
if ! go test -tags e2e ./test/e2e/... -v -timeout 30m -ginkgo.label-filter="${FILTER}"; then
echo "First run failed; retrying once..."
go test -tags e2e ./test/e2e/... -v -timeout 30m -ginkgo.label-filter="${FILTER}"
fi
- name: Collect diagnostics on failure
if: failure()
run: |
mkdir -p artifacts
kubectl get nodes -o wide > artifacts/nodes.txt || true
kubectl get pods -A -o wide > artifacts/pods-all.txt || true
kubectl get events -A --sort-by=.lastTimestamp > artifacts/events.txt || true
kubectl -n imp-system get all > artifacts/imp-system-all.txt || true
kubectl -n imp-system describe pods > artifacts/imp-system-pods-describe.txt || true
kubectl -n imp-system logs deploy/imp-operator --all-containers > artifacts/imp-operator-logs.txt || true
kubectl -n imp-system logs ds/imp-agent --all-containers > artifacts/imp-agent-logs.txt || true
- name: Upload diagnostics
if: failure()
uses: actions/upload-artifact@v7
with:
name: nightly-e2e-kind-smoke-diagnostics
path: artifacts/