Skip to content

Commit d487b18

Browse files
sbryngelsonclaude
andcommitted
Rename _nfs_cache_* to _cache_*: Frontier uses Lustre, not NFS
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1f79637 commit d487b18

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/scripts/retry-build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
# Usage: source .github/scripts/retry-build.sh
66
# retry_build ./mfc.sh build -j 8 --gpu acc
77

8-
# Try normal cleanup; if it fails, escalate to NFS cache nuke.
8+
# Try normal cleanup; if it fails, escalate to cache nuke.
99
_retry_clean() {
1010
local clean_cmd="$1"
1111
if eval "$clean_cmd" 2>/dev/null; then
1212
return 0
1313
fi
1414
echo " Normal cleanup failed."
15-
if type _nfs_cache_nuke > /dev/null 2>&1; then
15+
if type _cache_nuke > /dev/null 2>&1; then
1616
echo " Escalating to NFS cache nuke..."
17-
_nfs_cache_nuke
17+
_cache_nuke
1818
else
19-
echo " _nfs_cache_nuke not available, best-effort rm."
19+
echo " _cache_nuke not available, best-effort rm."
2020
rm -rf build/staging build/install build/lock.yaml 2>/dev/null || true
2121
fi
2222
}

.github/scripts/setup-build-cache.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ esac
2929
_cache_key="${_cache_cluster}-${_cache_device}-${_cache_interface}-${_cache_runner}"
3030
_cache_base="${_cache_root}/${_cache_key}/build"
3131

32-
# Check if an NFS cache directory is healthy (readable, writable, no stale handles).
33-
_nfs_cache_healthy() {
32+
# Check if the cache directory is healthy (readable, writable, no stale handles).
33+
_cache_healthy() {
3434
local dir="$1"
3535
if ! ls "$dir" > /dev/null 2>&1; then
3636
echo " Health check FAILED: cannot list $dir"
@@ -51,8 +51,8 @@ _nfs_cache_healthy() {
5151

5252
# Nuclear recovery: rename stale cache out of the way and create a fresh one.
5353
# Uses mv (operates on parent directory entry) which works even when children
54-
# have stale NFS file handles that prevent rm -rf from succeeding.
55-
_nfs_cache_nuke() {
54+
# have stale file handles that prevent rm -rf from succeeding.
55+
_cache_nuke() {
5656
local base="${1:-$_cache_base}"
5757
local stale_name="${base}.stale.$(date +%s)"
5858
echo " NFS cache nuke: parking stale dir -> $stale_name"
@@ -74,9 +74,9 @@ echo " Cache key: $_cache_key"
7474
echo " Cache dir: $_cache_dir"
7575

7676
# Pre-flight: detect stale NFS handles before wasting a build attempt.
77-
if ! _nfs_cache_healthy "$_cache_dir"; then
77+
if ! _cache_healthy "$_cache_dir"; then
7878
echo " Stale NFS cache detected — nuking and recreating."
79-
_nfs_cache_nuke "$_cache_base"
79+
_cache_nuke "$_cache_base"
8080
_cache_dir="$(cd "$_cache_base" && pwd -P)"
8181
fi
8282

@@ -94,7 +94,7 @@ ln -s "$_cache_dir" "build"
9494

9595
echo " Symlink: build -> $_cache_dir"
9696

97-
# Garbage-collect stale cache dirs parked by _nfs_cache_nuke more than 7 days ago.
97+
# Garbage-collect stale cache dirs parked by _cache_nuke more than 7 days ago.
9898
_cache_parent="$(dirname "$_cache_base")"
9999
find "$_cache_parent" -maxdepth 1 -name "*.stale.*" -mtime +7 -exec rm -rf {} + 2>/dev/null || true
100100

0 commit comments

Comments
 (0)