Skip to content

Commit fe79a51

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 9d509fb commit fe79a51

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,13 @@ jobs:
178178
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
179179
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
180180
steps:
181+
- name: Clean workspace
182+
run: rm -rf "$GITHUB_WORKSPACE"/* "$GITHUB_WORKSPACE"/.[!.]* 2>/dev/null || true
183+
181184
- name: Clone
182185
uses: actions/checkout@v4
186+
with:
187+
clean: false
183188

184189
- name: Build
185190
if: matrix.cluster != 'phoenix' && matrix.cluster != 'frontier_all'
@@ -254,17 +259,22 @@ jobs:
254259
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
255260
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
256261
steps:
262+
- name: Clean workspace
263+
run: rm -rf "$GITHUB_WORKSPACE"/* "$GITHUB_WORKSPACE"/.[!.]* 2>/dev/null || true
264+
257265
- name: Clone - PR
258266
uses: actions/checkout@v4
259267
with:
260268
path: pr
269+
clean: false
261270

262271
- name: Clone - Master
263272
uses: actions/checkout@v4
264273
with:
265274
repository: MFlowCode/MFC
266275
ref: master
267276
path: master
277+
clean: false
268278

269279
- name: Setup & Build
270280
if: matrix.build_script != '' && matrix.cluster != 'frontier_all'

0 commit comments

Comments
 (0)