Closed chirag-droid closed 5 months ago
I don't know if this has anything to do with @actions/cache
but any help would be appreciated. Its unusual that my post run action completes in ~2m11s
I tracked down the pr that caused this. #1284
And looked in the source code, basically you have to manually do process.exit(0)
. I think many actions using @actions/cache
are affected.
See https://github.com/actions/toolkit/issues/1578
Note that this repo does not contain the '@actions/cache' package, it's part of https://github.com/actions/toolkit
Thanks for pointing it out.
actions/toolkit
seems unresponsive about issues and prs. I have opened an issue there too
If this issue was not actually related to actions/cache, please close it @chirag-droid, thanks.
while this issue is closed, it seems a workaround is easy to do (process.exit(0)), could this be added to actions./cache?
while this issue is closed, it seems a workaround is easy to do (process.exit(0)), could this be added to actions./cache?
No they need to fix the internal problem or nodejs need to fix it.
the workaround can be applied in your own script
Here is snippet of my custom action.
This always finishes in about ~2m11s no matter the OS or cache size.
Here is a debug log from a project using this action. The cache saved message comes up at almost instantly but the action doesn't exit until ~2m11s.
https://github.com/chirag-droid/Render3d/actions/runs/7684436720/job/20962442772