Skip to content
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

Hanging after Cache saved successfully message #59

Closed
andyexeter opened this issue Feb 15, 2024 · 1 comment · Fixed by #60
Closed

Hanging after Cache saved successfully message #59

andyexeter opened this issue Feb 15, 2024 · 1 comment · Fixed by #60

Comments

@andyexeter
Copy link
Contributor

Hey there,

We've noticed recently that on a cold cache this action hangs for over 2 minutes after the "Cache saved successfully" message. This is probably related to the actions/cache package and the Node version (see actions/setup-node#878)

They solved this by exiting early rather than waiting for the cache save promise to resolve: https://github.com/actions/setup-node/pull/917/files

I propose to implement the same fix here, and also as per the node action moving the cache saving to a runs.post hook so it runs after other steps if the workflow was successful e.g. https://github.com/actions/setup-node/blob/25b062c917b0c75f8b47d8469aff6c94ffd89abb/action.yml#L38-L39

I'm happy to create a PR for this.

@xhyrom
Copy link
Collaborator

xhyrom commented Feb 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants