-
Notifications
You must be signed in to change notification settings - Fork 922
78 lines (65 loc) · 2.29 KB
/
e2e-chaos-tests.yml
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
name: E2E Tests
# Forked from https://github.com/fabric8io/kubernetes-client/blob/56a6c2c4f336cc6f64c19029a55c2d3d0289344f/.github/workflows/e2e-chaos-tests.yml
on:
push:
branches:
- main
tags-ignore:
# The release versions will be verified by 'publish-release.yml'
- armeria-*
pull_request:
concurrency:
group: ci-e2e-chaos-tests-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
CHAOS_MESH_VERSION: 2.6.2
KUBERNETES_VERSION: v1.25.0
MINIKUBE_VERSION: v1.32.0
jobs:
chaos-tests:
name: Kubernetes Chaos Test
runs-on: ubuntu-latest
timeout-minutes: 120
if: github.repository == 'line/armeria'
steps:
- uses: actions/checkout@v4
- id: setup-jdk-19
name: Setup Java 19
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 19
- name: Setup Minikube-Kubernetes
uses: manusa/[email protected]
with:
minikube version: ${{ env.MINIKUBE_VERSION }}
kubernetes version: ${{ env.KUBERNETES_VERSION }}
github token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Kubectl # Chaos-Mesh setup requires a functional kubectl version for all cluster versiones
uses: azure/setup-kubectl@v3
with:
version: ${{ env.KUBERNETES_VERSION }}
- name: Install Chaos Mesh
run: |
curl -sSL https://mirrors.chaos-mesh.org/v${CHAOS_MESH_VERSION}/install.sh | bash
kubectl wait --for=condition=Ready pods --all-namespaces --all --timeout=600s
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run Chaos Tests - network-delay.yaml
env:
CHAOS_TEST: network-delay.yaml
run: |
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:test
shell: bash
- name: Run Chaos Tests - network-loss.yaml
env:
CHAOS_TEST: network-loss.yaml
run: |
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:test
shell: bash
- name: Run Chaos Tests - network-duplication.yaml
env:
CHAOS_TEST: network-duplication.yaml
run: |
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:test
shell: bash