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

@actions/ccache causing 2min slowdown with Node 20 runtime #1643

Open
chirag-droid opened this issue Jan 29, 2024 · 0 comments
Open

@actions/ccache causing 2min slowdown with Node 20 runtime #1643

chirag-droid opened this issue Jan 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chirag-droid
Copy link

Describe the bug
Saving cache hangs up the node process causing a 2min slowdown. This is related to nodejs/node#47228. This has caused many Github actions to manually call process.exit() to prevent this slow down. Which I think is bad and can cause unexpected bugs to happen in future.

To Reproduce
Steps to reproduce the behavior:

  1. Call saveCache in your action with Node 20 runtime
import * as core from '@actions/core'
import * as cache from '@actions/cache'

async function run(): Promise<void> {
  try {
    await cache.saveCache(".cache", "cache-bug")
  } catch (error: any) {
    // Show fail error if there is any error
    core.error(error)
    core.setFailed(error.message)
  }
}

run()

Expected behavior
The Node process shouldn't hang up and cause slow down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant