Repository navigation
fix: tolerate macOS purge spawn failures - #400
Closed
npmccallum wants to merge 1 commit into
Closed
npmccallum wants to merge 1 commit into
npmccallum wants to merge 1 commit into
Conversation
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a sandboxed self-hosted macOS runner, launching
sudo /usr/sbin/purgefails withspawn EPERM. The optional workaround's existingtry/catchdoes not recover: the bundled@actions/execuses an async Promise executor, so a synchronous spawn failure leaves its outer promise pending. The action'suncaughtExceptionhandler logs the error and Node exits zero without reaching cache cleanup or upload.Use promisified Node
execFilefor this best-effort command. Launch errors and nonzero exits reach the existing catch, while successful executions still run the workaround. Output remains captured. No new dependencies, shell, inputs, or runner permission changes. Includes regenerateddist/.Validation:
npm ciandnpm run preparepass; a second rebuild leavesdist/unchanged.dist/save.js: successful command, nonzero exit, and missing executable all reach the continuation with exit zero.spawn EPERM, no continuation, and exit zero. The patched built workaround reaches its continuation with no uncaught error under that same policy. The probe ran as the unprivileged SSH account, not the runner account; no sandbox permissions were changed.Downstream report and real job logs: pichi-vm/pichi#188. Full cache upload and subsequent restore validation remain separate from the targeted reproduction above.