Skip to content

Commit 71dd189

Browse files
authored
chore: split unit test steps in ci workflow (#5002)
Signed-off-by: kostas <kostas@dragonflydb.io>
1 parent 473e002 commit 71dd189

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
echo "disk space is:"
141141
df -h
142142
143-
- name: C++ Unit Tests
143+
- name: C++ Unit Tests - IoUring
144144
run: |
145145
cd ${GITHUB_WORKSPACE}/build
146146
echo Run ctest -V -L DFLY
@@ -151,7 +151,14 @@ jobs:
151151
# Run allocation tracker test separately without alsologtostderr because it generates a TON of logs.
152152
FLAGS_fiber_safety_margin=4096 timeout 5m ./allocation_tracker_test
153153
154-
echo "Running tests with --force_epoll"
154+
timeout 5m ./dragonfly_test
155+
timeout 5m ./json_family_test --jsonpathv2=false
156+
timeout 5m ./tiered_storage_test --vmodule=db_slice=2 --logtostderr
157+
158+
159+
- name: C++ Unit Tests - Epoll
160+
run: |
161+
cd ${GITHUB_WORKSPACE}/build
155162
156163
# Create a rule that automatically prints stacktrace upon segfault
157164
cat > ./init.gdb <<EOF
@@ -166,18 +173,14 @@ jobs:
166173
167174
FLAGS_fiber_safety_margin=4096 FLAGS_force_epoll=true timeout 5m ./allocation_tracker_test
168175
169-
echo "Finished running tests with --force_epoll"
170-
171-
echo "Running tests with --cluster_mode=emulated"
176+
- name: C++ Unit Tests - IoUring with cluster mode
177+
run: |
172178
FLAGS_fiber_safety_margin=4096 FLAGS_cluster_mode=emulated timeout 20m ctest -V -L DFLY
173179
174-
echo "Running tests with both --cluster_mode=emulated & --lock_on_hashtags"
180+
- name: C++ Unit Tests - IoUring with cluster mode and FLAGS_lock_on_hashtags
181+
run: |
175182
FLAGS_fiber_safety_margin=4096 FLAGS_cluster_mode=emulated FLAGS_lock_on_hashtags=true timeout 20m ctest -V -L DFLY
176183
177-
timeout 5m ./dragonfly_test
178-
timeout 5m ./json_family_test --jsonpathv2=false
179-
timeout 5m ./tiered_storage_test --vmodule=db_slice=2 --logtostderr
180-
181184
- name: Upload unit logs on failure
182185
if: failure()
183186
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)