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

2 minute hang after install & caching #51

Closed
Crzyrndm opened this issue Mar 14, 2024 · 5 comments
Closed

2 minute hang after install & caching #51

Crzyrndm opened this issue Mar 14, 2024 · 5 comments

Comments

@Crzyrndm
Copy link

Crzyrndm commented Mar 14, 2024

actions/toolkit#1643
~90s of logged activity then stuck for 2 minutes. ^^ issue suggests calling process.exit as a workaround
image

@carlosperate
Copy link
Owner

carlosperate commented Mar 19, 2024

Just to confirm, the log shown in the screenshot seems to run correctly (although there seems to be a cache miss) and after that last log entry it waits for 2min without doing anything else? what is the next log entry after that? is it the next workflow job step?

Is the cache actually saved successfully? Can you see it in repo caches? https://github.com/<username>/<project>/actions/caches

@Crzyrndm
Copy link
Author

Crzyrndm commented Mar 19, 2024

  • The hang only happens on a cache miss
  • It caches successfully
  • After 2 minutes it continues to the next workflow step. There is no further log entry for this step

Demo: https://github.com/Crzyrndm/cache-hang/actions/runs/8350274641/job/22856302537?pr=1

@meisZWFLZ
Copy link

I am also experiencing this issue:
here
image
and here
image

In my case the cache was also sucessful.

The actual step running this action: action.yml
release: 10-2020-q4

@carlosperate
Copy link
Owner

Thanks for the confirmation of the issue @Crzyrndm and the additional info @Crzyrndm.

I've been able to replicate the same behaviour (~2min hangs on cache misses, without anything happening after the last log entry during that time) and it seems to be resolved by updating the @actions/cache dependency to the latest version (in hopes that a PR like actions/cache#1217 might have fixed it).

In the same environment were I was able to easily replicate the issue it seems to be resolved when using carlosperate/arm-none-eabi-gcc-action@v1.8.2. @Crzyrndm @meisZWFLZ could you try the latest release and check if it has been fixed on your CI runs as well? Thanks!

@Crzyrndm
Copy link
Author

This is working for me. Thanks for the fix @carlosperate

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

No branches or pull requests

3 participants