We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80787da commit 78306cbCopy full SHA for 78306cb
src/ci/scripts/free-disk-space-linux.sh
@@ -173,8 +173,11 @@ removeUnusedFilesAndDirs() {
173
fi
174
done
175
176
- # Remove all files and directories at once to save time.
177
- sudo rm -rf "${to_remove[@]}"
+ # GHA has high read latencies for uncached data
+ # so we traverse directories in parallel and feed the output to rm
178
+ printf '%s\n' "${to_remove[@]}" | \
179
+ (xargs -P 6 -I{} -- find {} -type f -printf '%p\n\c' || true) | \
180
+ sudo xargs -r -P 8 -n 100 -- rm -rf
181
}
182
183
execAndMeasureSpaceChange() {
0 commit comments