Skip to content

Commit 9acb375

Browse files
sbryngelsonclaude
andcommitted
ci: tolerate stale NFS file handles on rm -rf build
Suppress errors from stale NFS file handles when wiping the build directory before a fresh build. Stale-handle files are inaccessible and cannot cause SIGILL, so ignoring rm failures is safe. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 18ff901 commit 9acb375

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/scripts/prebuild-case-optimization.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ case "$cluster" in
2222
*) echo "ERROR: Unknown cluster '$cluster'"; exit 1 ;;
2323
esac
2424

25-
rm -rf build
25+
rm -rf build 2>/dev/null || true
2626

2727
. ./mfc.sh load -c "$flag" -m g
2828

.github/workflows/common/bench.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fi
2525
# Phoenix builds inside SLURM; Frontier pre-builds via build.sh on the login node.
2626
# Phoenix: always nuke stale builds (heterogeneous compute nodes → ISA mismatch risk).
2727
if [ "$job_cluster" = "phoenix" ]; then
28-
rm -rf build
28+
rm -rf build 2>/dev/null || true
2929
fi
3030

3131
if [ ! -d "build" ]; then

.github/workflows/common/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ build_opts="$gpu_opts"
1313
# Phoenix builds inside SLURM on heterogeneous compute nodes — always start fresh
1414
# to avoid SIGILL from stale binaries compiled on a different microarchitecture.
1515
if [ "$job_cluster" = "phoenix" ]; then
16-
rm -rf build
16+
# Suppress stale NFS file handle errors — those files are inaccessible anyway.
17+
rm -rf build 2>/dev/null || true
1718
fi
1819

1920
if [ ! -d "build" ]; then

.github/workflows/frontier/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ build_opts="$gpu_opts"
2020

2121
. ./mfc.sh load -c $compiler_flag -m $([ "$job_device" = "gpu" ] && echo "g" || echo "c")
2222

23-
rm -rf build
23+
rm -rf build 2>/dev/null || true
2424

2525
source .github/scripts/retry-build.sh
2626
if [ "$run_bench" == "bench" ]; then

0 commit comments

Comments
 (0)