-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hang on Windows after "Adding to the cache ..." #11494
Comments
Hello @kevinoid. Thank you for your report. We'll investigate the issue. |
@dmitry-shibanov Were you able to investigate the issue? Is there anything else that I can do to assist? It appears that builds are still hanging in "Adding to the cache ...". |
Hello, @kevinoid ! I'm sorry for the late response, I just wanted to give you a little ping to see if your issue resolved in the meantime? :) |
Hi @dusan-trickovic, Thanks for checking in! Nope, it's still not resolved. Is there anything I can do to help investigate? |
Understood. I will investigate it and reach out to you again when I have a solution or if I need some more clarification (or at least when I have some updates / suggestions). Thank you very much for your cooperation! :) |
I've determined the cause of the issue: The invocation of Although the root cause of the issue is not in setup-node, I would suggest adding a reasonable timeout for the |
To avoid inadvertently running node.js (using Windows Script Host) instead of node.exe when .js is present in %PATHEXT% (as it is by default). The problem is exacerbated by a regression in .cmd shims generated by npm (npm/cmd-shim#64 npm/cmd-shim#71) and has already caused problems in CI (https://github.com/actions/setup-node/issues/720). Continue to export node and node.js from the package for backward compatibility. These may be removed in a future version. Signed-off-by: Kevin Locke <[email protected]>
Hi, @kevinoid ! Thanks for the update, I'm glad you've found the culprit behind this issue :) And thank you for the suggestion - I will investigate it and forward it to my team as well :) |
Hello @kevinoid, thank you for your investigation. In order to investigate further and work on the issue, could you help us by providing the repro steps? This will assist us in replicating the issue and resolving it more effectively. Appreciate your help! |
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
https://github.com/actions/setup-node/issues/720 Signed-off-by: Kevin Locke <[email protected]>
Thanks @mahabaleshwars. I've copied the reproduction into https://github.com/kevinoid/setup-node-issue-720. To reproduce the issue, simply clone the repository and run the workflow in GitHub Actions. |
Hi @kevinoid, This issue needs to be fixed in the Windows runner image instead of implementing a timeout for --version invocations.
Please can you raise this issue with runner-images? |
Hi @mahabaleshwars, I agree that fixing the root cause is preferable to adding a timeout. Since the root cause is an old bug in npm (npm/cmd-shim#64 and npm/cmd-shim#71), I don't see much value of opening an issue in runner-images. Are you hoping they'll come up with a workaround, or that it'll generate more interest, or something else? |
Moving to runner-images team for further investigation |
Description:
In one of my repositories,
actions/setup-node
hangs after "Adding to the cache ..." until the job times out.Action version:
v3
Platform:
Runner type:
Tools version:
I've observed the error with
node-version: '14.18'
andnode-version: '>=17.1'
.Repro steps:
I'm observing the issue in my eslint-config-kevinoid repository. I've created a minimal workflow which reproduces the issue which produced this failing workflow run.
Minimal Workflow Issue Reproduction YAML
Note that the 5 minute timeout in the reproduction was added arbitrarily to make the issue easier to test and demonstrate. The original workflow
actions/setup-node@v3
failed after 6 hours.Also note that the issue does not occur if the
actions/checkout@v3
step is removed.Expected behavior:
The
actions/setup-node@v3
step would complete in a reasonable amount of time.Actual behavior:
The
actions/setup-node@v3
step does not complete after 5 minutes (or 6 hours).The text was updated successfully, but these errors were encountered: