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

Increase timeout and handle status message error #47

Open
dhadka opened this issue Aug 11, 2021 · 0 comments
Open

Increase timeout and handle status message error #47

dhadka opened this issue Aug 11, 2021 · 0 comments

Comments

@dhadka
Copy link

dhadka commented Aug 11, 2021

This action can sometimes fail with a timeout followed by an error parsing the status message:

> Task :foundation:feature-manager:compileReleaseKotlin FROM-CACHE
TypeError [ERR_INVALID_CHAR]: Invalid character in statusMessage
    at ServerResponse.writeHead (_http_server.js:278:11)
    at Coroutine$handle$lambda.doResume (/home/runner/work/_actions/burrunan/gradle-cache-action/v1/dist/cache-action-entrypoint.js:33524:125)
    at Coroutine$handle$lambda.CoroutineImpl.resumeWith_tl1gpc$ (/home/runner/work/_actions/burrunan/gradle-cache-action/v1/dist/cache-action-entrypoint.js:1824:32)
    at SupervisorCoroutine.ScopeCoroutine.afterResume_s8jyv4$ (/home/runner/work/_actions/burrunan/gradle-cache-action/v1/dist/cache-action-entrypoint.js:12371:16)
    at SupervisorCoroutine.AbstractCoroutine.resumeWith_tl1gpc$ (/home/runner/work/_actions/burrunan/gradle-cache-action/v1/dist/cache-action-entrypoint.js:8539:51)
    at Coroutine$getEntry_0.CoroutineImpl.resumeWith_tl1gpc$ (/home/runner/work/_actions/burrunan/gradle-cache-action/v1/dist/cache-action-entrypoint.js:1830:147)
    at CancellableContinuationImpl.DispatchedTask.run (/home/runner/work/_actions/burrunan/gradle-cache-action/v1/dist/cache-action-entrypoint.js:12320:75)
    at SetTimeoutBasedDispatcher$ScheduledMessageQueue.MessageQueue.process (/home/runner/work/_actions/burrunan/gradle-cache-action/v1/dist/cache-action-entrypoint.js:13043:12)
    at SetTimeoutBasedDispatcher$ScheduledMessageQueue.processQueue_8be2vx$ (/home/runner/work/_actions/burrunan/gradle-cache-action/v1/dist/cache-action-entrypoint.js:12826:40)
    at processTicksAndRejections (internal/process/task_queues.js:75:11) {
  code: 'ERR_INVALID_CHAR'
}
> Task :foundation:feature-manager:javaPreCompileRelease
Could not load entry <removed-id> from remote build cache: Read timed out

I also suspect that since this is proxying Gradle requests to the Actions Cache, it is subject to Gradle's http timeout which defaults to 30 seconds. Since that encompasses all of restoreCache, which downloads the cache contents, it seems like any large cache would fail.

Please consider increasing the timeout and handling the "invalid character in statusMessage" error.

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

1 participant