{{ message }}
Fix cache-save process.exit issue causing premature workflow termination#1347
Closed
Copilot wants to merge 1 commit into
Closed
Fix cache-save process.exit issue causing premature workflow termination#1347Copilot wants to merge 1 commit into
Copilot wants to merge 1 commit into
Conversation
Copilot
AI
changed the title
[WIP]
Fix cache-save process.exit issue causing premature workflow termination
Aug 21, 2025
Copilot stopped work on behalf of
priyagupta108 due to an error
August 21, 2025 05:16
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.

Problem
The
cache-save.tsfile was callingprocess.exit(0)when used as a post-action step in GitHub Actions workflows, which could terminate the entire workflow prematurely. This happened because:run()function had anearlyExitparameter that would callprocess.exit(0)when truerun(true)at module load timepostaction step inaction.yml, it would exit the process immediately after cachingRoot Cause
This pattern was apparently added to "resolve issue with slow post action step" according to the comment, but using
process.exit(0)in a GitHub Actions post-step is incorrect and can cause unexpected workflow termination.Solution
Removed the
earlyExitparameter andprocess.exit(0)call entirely, following the same pattern used insetup-node.ts:Testing
run()to be called without parametersThis fix ensures that the cache-save post-action step completes normally without prematurely terminating the GitHub Actions workflow, while maintaining all existing caching functionality.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.