-
Notifications
You must be signed in to change notification settings - Fork 593
84 lines (77 loc) · 2.97 KB
/
e2e_nightly.yaml
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
82
83
84
name: e2e tests (nightly)
on:
schedule:
- cron: '30 4 * * *'
workflow_dispatch: {}
jobs:
ensure-nightly-image-was-built:
timeout-minutes: ${{ fromJSON(vars.GHA_EXTENDED_TIMEOUT_MINUTES) }}
runs-on: ubuntu-latest
steps:
- name: Check if image built this night exists
run: docker pull kong/nightly-ingress-controller:$(date +%Y-%m-%d)
e2e-tests:
needs: ensure-nightly-image-was-built
uses: ./.github/workflows/_e2e_tests.yaml
secrets: inherit
with:
kic-image: kong/nightly-ingress-controller:nightly
all-supported-k8s-versions: true
run-gke: true
run-istio: true
e2e-tests-unreleased-kong:
needs: ensure-nightly-image-was-built
uses: ./.github/workflows/_e2e_tests.yaml
secrets: inherit
with:
kic-image: kong/nightly-ingress-controller:nightly
# TODO: Previously we've used kong/kong:amd64-latest but that image reports
# its version (through AdminAPI / endpoint) as SHA instead of a semver.
# This breaks KIC's Admin root configuration verification on startup.
# To unblock this, we're switching to kong/kong-gateway-dev:nightly because
# it reports the next release to be released as semver in the version field.
# ref: https://github.com/Kong/kubernetes-ingress-controller/issues/4014
kong-image: kong/kong-gateway-dev:nightly
kong-effective-version: "3.4.1"
all-supported-k8s-versions: false
run-gke: false
run-istio: false
integration-tests-unreleased-kong:
uses: ./.github/workflows/_integration_tests.yaml
secrets: inherit
with:
kong-container-repo: kong/kong
kong-container-tag: nightly
kong-oss-effective-version: "3.4.1"
kong-enterprise-container-repo: kong/kong-gateway-dev
kong-enterprise-container-tag: nightly
kong-enterprise-effective-version: "3.4.1"
log-output-file: /tmp/integration-tests-kic-logs
test-reports:
needs:
- e2e-tests
- e2e-tests-unreleased-kong
- integration-tests-unreleased-kong
uses: ./.github/workflows/_test_reports.yaml
secrets: inherit
with:
coverage: false # E2E tests do not generate coverage reports
notify-on-slack:
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
needs:
- ensure-nightly-image-was-built
- e2e-tests
- e2e-tests-unreleased-kong
- test-reports
if: always() && contains(needs.*.result, 'failure') && github.event_name == 'schedule'
steps:
- name: Notify on Slack for failures of e2e tests run automatically at night
uses: 8398a7/action-slack@v3
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
# Since notify-on-slack is triggered on failure (if statement), we can hardcode this.
status: failure
fields: repo,message,commit,author,action,eventName,ref,workflow
text: ':red_circle: E2E tests failed for nightly run, please check why.'