Skip to content

Commit a8882c5

Browse files
sbryngelsonclaude
andcommitted
Add workspace pre-clean to avoid stale NFS handles on self-hosted runners
The actions/checkout clean step fails with ESTALE errors on NFS-backed storage when build artifacts from previous runs have stale file handles. Pre-clean with rm -rf (which tolerates stale handles) and disable checkout's built-in clean. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 17bdcc8 commit a8882c5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,13 @@ jobs:
199199
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
200200
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
201201
steps:
202+
- name: Clean workspace
203+
run: rm -rf "$GITHUB_WORKSPACE"/* "$GITHUB_WORKSPACE"/.[!.]* 2>/dev/null || true
204+
202205
- name: Clone
203206
uses: actions/checkout@v4
207+
with:
208+
clean: false
204209

205210
- name: Build
206211
if: matrix.cluster != 'phoenix'

0 commit comments

Comments
 (0)