Skip to content

GitHub Actions caching causing slowdown and spurious failures in CI #10273

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

Closed
griggt opened this issue Nov 10, 2020 · 0 comments · Fixed by #10197
Closed

GitHub Actions caching causing slowdown and spurious failures in CI #10273

griggt opened this issue Nov 10, 2020 · 0 comments · Fixed by #10197

Comments

@griggt
Copy link
Contributor

griggt commented Nov 10, 2020

The CI job steps using GitHub Actions actions/[email protected] are intermittently running very slowly, and occasionally causing spurious failures due to failed cache restoration.

This has been occurring for many weeks now.

A recent example can be found here: https://github.com/lampepfl/dotty/runs/1375585886?check_suite_focus=true

ci_cache_fail

In this case, 45 minutes were spent attempting to restore the cache, and to top if off, an error occurred during the Cache SBT action (after 31 minutes!):

gzip: stdin: unexpected end of file
/usr/bin/tar: Unexpected EOF in archive
/usr/bin/tar: Unexpected EOF in archive
/usr/bin/tar: Error is not recoverable: exiting now
Warning: Tar failed with error: The process '/usr/bin/tar' failed with exit code 2

which I believe is the cause of this subsequent failure in the Test step:

Exception in thread "sbt-parser-init-thread" java.lang.ExceptionInInitializerError
	at sbt.internal.parser.SbtParserInit$$anon$2.run(SbtParser.scala:171)
Caused by: scala.reflect.internal.FatalError: Error accessing /root/.sbt/0.13/java9-rt-ext-private_build_14_0_1/rt.jar
  ...
Caused by: java.util.zip.ZipException: zip END header not found
  ...
Error:  java.lang.NoClassDefFoundError: Could not initialize class sbt.internal.parser.SbtParser$
Error:  Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
griggt added a commit to griggt/dotty that referenced this issue Nov 10, 2020
This enables per-runner, local, persistent cache for CI.
michelou pushed a commit to michelou/scala3 that referenced this issue Nov 12, 2020
This enables per-runner, local, persistent cache for CI.
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.

1 participant