Skip to content

Commit e41d111

Browse files
authored
ci: use tmpfs for test intermediates (#244)
1 parent c3dffeb commit e41d111

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/test_full.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ jobs:
3333
- name: Run all tests
3434
shell: bash
3535
run: |
36-
export JOB_TMP="/tmp/rbc_test_$(date +%s%N)"
36+
# Clean up stale tmpfs dirs from previous crashed runs
37+
find /dev/shm -maxdepth 1 -name 'rbc_test_*' -mmin +120 -exec rm -rf {} + 2>/dev/null || true
38+
39+
export JOB_TMP="/dev/shm/rbc_test_$(date +%s%N)"
3740
mkdir -p $JOB_TMP
3841
echo "JOB_TMP=$JOB_TMP" >> $GITHUB_ENV
3942
echo "Job temp directory: $JOB_TMP"
@@ -88,4 +91,5 @@ jobs:
8891
shell: bash
8992
run: |
9093
echo "Cleaning up job temp directory: $JOB_TMP"
94+
echo "Temp directory size: $(du -sh $JOB_TMP 2>/dev/null | cut -f1)"
9195
rm -rf $JOB_TMP

0 commit comments

Comments
 (0)