Skip to content

Commit dc9336d

Browse files
committed
[test]: set job title and retry
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent bdc1c7a commit dc9336d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.circleci/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ workflows:
44
build-and-test-multi-arch:
55
jobs:
66
- kubernetes-test:
7+
name: "K8s test - Autoscaling disabled"
78
platforms: linux/arm64
89
machine-type: ubuntu2204arm64large
910
k8s-version: 'v1.25.16'
@@ -13,6 +14,7 @@ workflows:
1314
test-existing-keda: false
1415
test-upgrade: true
1516
- kubernetes-test:
17+
name: "K8s test - Autoscaling Jobs"
1618
platforms: linux/arm64
1719
machine-type: ubuntu2204arm64large
1820
k8s-version: 'v1.26.15'
@@ -22,6 +24,7 @@ workflows:
2224
test-existing-keda: true
2325
test-upgrade: true
2426
- kubernetes-test:
27+
name: "K8s test - Autoscaling Deployments"
2528
platforms: linux/arm64
2629
machine-type: ubuntu2204arm64large
2730
k8s-version: 'v1.27.14'
@@ -31,6 +34,7 @@ workflows:
3134
test-existing-keda: true
3235
test-upgrade: true
3336
- kubernetes-test:
37+
name: "K8s test - Autoscaling Jobs - HTTPS"
3438
platforms: linux/arm64
3539
machine-type: ubuntu2204arm64large
3640
k8s-version: 'v1.28.10'
@@ -40,6 +44,7 @@ workflows:
4044
test-existing-keda: true
4145
test-upgrade: true
4246
- kubernetes-test:
47+
name: "K8s test - Autoscaling Jobs - Ingress hostname"
4348
platforms: linux/arm64
4449
machine-type: ubuntu2204arm64large
4550
k8s-version: 'v1.29.5'
@@ -49,6 +54,7 @@ workflows:
4954
test-existing-keda: false
5055
test-upgrade: true
5156
- kubernetes-test:
57+
name: "K8s test - Autoscaling Deployments - HTTPS"
5258
platforms: linux/arm64
5359
machine-type: ubuntu2204arm64large
5460
k8s-version: 'v1.30.1'
@@ -58,36 +64,43 @@ workflows:
5864
test-existing-keda: false
5965
test-upgrade: true
6066
- docker-test:
67+
name: "Docker test - Use random user (true)"
6168
test-strategy: test
6269
use-random-user: true
6370
platforms: linux/arm64
6471
machine-type: ubuntu2204arm64
6572
- docker-test:
73+
name: "Docker test - Use random user (false)"
6674
test-strategy: test
6775
use-random-user: false
6876
platforms: linux/arm64
6977
machine-type: ubuntu2204arm64
7078
- docker-test:
79+
name: "Docker test - Video recording"
7180
test-strategy: test_video
7281
use-random-user: false
7382
platforms: linux/arm64
7483
machine-type: ubuntu2204arm64
7584
- docker-test:
85+
name: "Docker test - Video recording dynamic file name"
7686
test-strategy: test_video_dynamic_name
7787
use-random-user: false
7888
platforms: linux/arm64
7989
machine-type: ubuntu2204arm64
8090
- docker-test:
91+
name: "Docker test - Dynamic Grid"
8192
test-strategy: test_node_docker
8293
use-random-user: false
8394
platforms: linux/arm64
8495
machine-type: ubuntu2204arm64
8596
- docker-test:
97+
name: "Docker test - Parallel execution"
8698
test-strategy: test_parallel
8799
use-random-user: false
88100
platforms: linux/arm64
89101
machine-type: ubuntu2204arm64
90102
- docker-test:
103+
name: "Docker test - Node relay commands"
91104
test-strategy: test_node_relay
92105
use-random-user: false
93106
platforms: linux/arm64

.github/workflows/docker-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,13 @@ jobs:
142142
TEST_PARALLEL_HARDENING: ${{ github.event.inputs.parallel-hardening || 'true' }}
143143
REQUEST_TIMEOUT: ${{ github.event.inputs.request-timeout || '400' }}
144144
- name: Run Docker Compose to ${{ matrix.test-strategy }}
145-
run: USE_RANDOM_USER_ID=${{ matrix.use-random-user }} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make ${{ matrix.test-strategy }}
145+
uses: nick-invision/retry@master
146+
with:
147+
timeout_minutes: 20
148+
max_attempts: 2
149+
retry_wait_seconds: 60
150+
command: |
151+
USE_RANDOM_USER_ID=${{ matrix.use-random-user }} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make ${{ matrix.test-strategy }}
146152
- name: Upload recorded video
147153
if: matrix.test-video == true
148154
uses: actions/upload-artifact@main

0 commit comments

Comments
 (0)