Skip to content

Commit 60b078b

Browse files
committed
fix(apple): clarify required cleanup path guidance
1 parent 28dd89c commit 60b078b

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎packages/apple-runner/src/runner-cache.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export function assertSafeDerivedCleanup(
305305
}
306306
throw new AppError('COMMAND_FAILED', 'Refusing to clean AGENT_DEVICE_IOS_RUNNER_DERIVED_PATH', {
307307
derivedPath,
308-
hint: `Move AGENT_DEVICE_IOS_RUNNER_DERIVED_PATH to a non-symlinked subdirectory of ${path.join(projectRoot(), '.tmp')}. To skip automatic cleanup, unset AGENT_DEVICE_IOS_CLEAN_DERIVED.`,
308+
hint: `Move AGENT_DEVICE_IOS_RUNNER_DERIVED_PATH to a non-symlinked subdirectory of ${path.join(projectRoot(), '.tmp')}. Unset AGENT_DEVICE_IOS_CLEAN_DERIVED to disable cleanup requested by that variable. Explicit cleanup, forced rebuilds, and cache repair still require a contained override.`,
309309
});
310310
}
311311

‎scripts/__tests__/runner-isolation-diagnostics.test.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ describe('scripts/build-xcuitest-apple.sh cleanup', () => {
224224
expect(result.status).toBe(1);
225225
expect(result.stderr).toContain('Refusing to clean AGENT_DEVICE_IOS_RUNNER_DERIVED_PATH');
226226
expect(result.stderr).toContain('to a non-symlinked subdirectory of');
227-
expect(result.stderr).toContain(
228-
'To skip automatic cleanup, unset AGENT_DEVICE_IOS_CLEAN_DERIVED.',
229-
);
227+
expect(result.stderr).toContain('AGENT_DEVICE_IOS_CLEAN_DERIVED');
230228
expect(fs.readFileSync(path.join(result.derived, 'Build', 'sentinel'), 'utf8')).toBe('keep');
231229
expect(fs.existsSync(result.xcodebuildArgs)).toBe(false);
232230
});

0 commit comments

Comments
 (0)