-
Notifications
You must be signed in to change notification settings - Fork 1k
76 lines (64 loc) · 2.37 KB
/
Copy pathe2e-chaos-tests.yml
File metadata and controls
76 lines (64 loc) · 2.37 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
name: E2E Tests
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
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
jobs:
chaos-tests:
name: Kubernetes Chaos test
runs-on: ubuntu-latest
timeout-minutes: 120
if: github.repository == 'line/armeria'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- id: setup-jdk-25
name: Setup Java 25
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: 'zulu'
java-version: 25
- name: Setup Minikube
id: minikube
uses: medyagh/setup-minikube@e9e035a86bbc3caea26a450bd4dbf9d0c453682e # v0.0.21
- 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
shell: bash
- name: Setup Gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
- name: Build Chaos test images
run: |
# The images should be built in the minikube docker environment
eval $(minikube -p minikube docker-env)
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:k8sBuild
shell: bash
- 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: |
# --rerun-tasks is required to run the tests because only the environment variable is changed
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:test --rerun-tasks
shell: bash
- name: Run Chaos Tests - network-duplicate.yaml
env:
CHAOS_TEST: network-duplicate.yaml
run: |
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:test --rerun-tasks
shell: bash