Skip to content

Commit 15e0bcf

Browse files
committed
fix
1 parent 2e68271 commit 15e0bcf

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/pika.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ jobs:
124124
rm -rf /usr/share/dotnet
125125
rm -rf /opt/ghc
126126
rm -rf /usr/local/share/boost
127+
# 彻底清理临时文件
128+
find / -type f -name "*.log" -delete 2>/dev/null || true
129+
find / -type f -name "*.tmp" -delete 2>/dev/null || true
130+
find / -name '*cache*' -type d -exec rm -rf {} + 2>/dev/null || true
131+
find / -name '*.bak' -type f -delete 2>/dev/null || true
127132
df -h
128133
129134
- name: Checkout
@@ -145,6 +150,9 @@ jobs:
145150
run: |
146151
rm -rf ./buildtrees
147152
rm -rf ./deps
153+
# Clean build intermediate files but keep binaries
154+
find ./build -name "*.o" -type f -delete || true
155+
find ./build -name "*.a" -type f -delete || true
148156
df -h
149157
150158
- name: Test
@@ -155,6 +163,18 @@ jobs:
155163
working-directory: ${{ github.workspace }}
156164
run: ./pikatests.sh all clean
157165

166+
- name: Cleanup After Unit Test
167+
run: |
168+
# Clean up test data to free space before integration tests
169+
rm -rf ./log* ./db* ./dump* ./dbsync* || true
170+
df -h
171+
172+
- name: Create Log Directories
173+
run: |
174+
mkdir -p /__w/pikiwidb/pikiwidb/codis/admin/../log
175+
mkdir -p /__w/pikiwidb/pikiwidb/log
176+
df -h
177+
158178
- name: Start codis, pika master and pika slave
159179
working-directory: ${{ github.workspace }}/build
160180
run: |

tests/support/server.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ proc start_server {options {code undefined}} {
287287
set line [exec head -n1 $stdout]
288288
if {[string match {*already in use*} $line]} {
289289
error_and_quit $config_file $line
290-
}
290+
}0
291291

292292
while 1 {
293293
# check that the server actually started and is ready for connections

0 commit comments

Comments
 (0)