Skip to content

Commit 86d8369

Browse files
committed
Add dummy tests and --single for faster CI testing
Add dummy test files for moduleapi and sentinel suites. Use --single to run only dummy tests in CI for quick pipeline validation. Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
1 parent 2fe6b6b commit 86d8369

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/daily.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
run: CFLAGS='-Werror' ./runtest-moduleapi --single unit/moduleapi/dummy-flaky --failures-json test-failures/moduleapi.json --verbose --dump-logs ${{github.event.inputs.test_args}}
126126
- name: sentinel tests
127127
if: true && !contains(github.event.inputs.skiptests, 'sentinel')
128-
run: ./runtest-sentinel --failures-json test-failures/sentinel.json ${{github.event.inputs.cluster_test_args}}
128+
run: ./runtest-sentinel --single dummy --failures-json test-failures/sentinel.json ${{github.event.inputs.cluster_test_args}}
129129
- name: cluster tests
130130
if: true && !contains(github.event.inputs.skiptests, 'cluster')
131131
run: ./runtest-cluster --failures-json test-failures/cluster.json ${{github.event.inputs.cluster_test_args}}
@@ -1925,7 +1925,7 @@ jobs:
19251925
run: CFLAGS='-Werror' ./runtest-moduleapi --single unit/moduleapi/dummy-flaky --failures-json test-failures/moduleapi.json --log-req-res --no-latency --dont-clean --force-resp3 --dont-pre-clean --verbose --dump-logs ${{github.event.inputs.test_args}}
19261926
- name: sentinel tests
19271927
if: true && !contains(github.event.inputs.skiptests, 'sentinel')
1928-
run: ./runtest-sentinel --failures-json test-failures/sentinel.json --log-req-res --dont-clean --force-resp3 ${{github.event.inputs.cluster_test_args}}
1928+
run: ./runtest-sentinel --single dummy --failures-json test-failures/sentinel.json --log-req-res --dont-clean --force-resp3 ${{github.event.inputs.cluster_test_args}}
19291929
- name: cluster tests
19301930
if: true && !contains(github.event.inputs.skiptests, 'cluster')
19311931
run: ./runtest-cluster --failures-json test-failures/cluster.json --log-req-res --dont-clean --force-resp3 ${{github.event.inputs.cluster_test_args}}

tests/cluster/tests/03-failover-loop.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test "Create a 5 nodes cluster" {
1010
}
1111

1212
test "Cluster is up" {
13-
assert_cluster_state ok
13+
assert_cluster_state okk
1414
}
1515

1616
set iterations 20
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
test "sentinel-dummy - basic ping" {
2+
assert_equal {PONG} [S 0 PING]
3+
}
4+
5+
#test "sentinel-dummy - intentional failure" {
6+
# assert_equal "wrong" [S 0 PING]
7+
#}
8+
9+
test "sentinel-dummy - another passing test" {
10+
assert_equal {PONG} [S 1 PING]
11+
}

0 commit comments

Comments
 (0)