Skip to content

Commit 4b713d3

Browse files
liangfutjtanaa
authored andcommitted
[CI] add docker volume prune to neuron CI (vllm-project#12291)
Signed-off-by: Liangfu Chen <[email protected]>
1 parent 6bcfac0 commit 4b713d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.buildkite/run-neuron-test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ if [ -f /tmp/neuron-docker-build-timestamp ]; then
2525
last_build=$(cat /tmp/neuron-docker-build-timestamp)
2626
current_time=$(date +%s)
2727
if [ $((current_time - last_build)) -gt 86400 ]; then
28+
# Remove dangling images (those that are not tagged and not used by any container)
2829
docker image prune -f
29-
docker system prune -f
30+
# Remove unused volumes / force the system prune for old images as well.
31+
docker volume prune -f && docker system prune -f
32+
# Remove huggingface model artifacts and compiler cache
3033
rm -rf "${HF_MOUNT:?}/*"
3134
rm -rf "${NEURON_COMPILE_CACHE_MOUNT:?}/*"
3235
echo "$current_time" > /tmp/neuron-docker-build-timestamp

0 commit comments

Comments
 (0)