-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
tests: use cache instead of artifacts for devtools build #13840
Conversation
another bonus, in #13841 i just ran into an issue re-running failed jobs because of the 1-day artifact retention we have here |
.github/workflows/devtools.yml
Outdated
@@ -93,11 +93,15 @@ jobs: | |||
with: | |||
node-version: 14.x | |||
|
|||
- name: Download artifact | |||
uses: actions/download-artifact@v2 | |||
- name: Cache build artifacts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of renaming these two? Load cached build artifacts
or something? Less important for the logs, but kind of confusing when reading this file
Yes! Artifact upload/download is approaching unbearable levels. I'm curious if gzipping the artifact before uploading would have had similar improvements (https://twitter.com/AcidOxee/status/1512029210080129026) since you can see the file count slowly flip by in the logs, but if caching works it works :) |
Removes 8 minutes on the "upload artifact" side, and 2 minutes on the "download artifacts" side.
before
after
Not sure why the cache is sized at 15 MB but the artifact before was 90 MB... but the jobs are passing so...
Perhaps GH compresses better in cache action than for artifacts?
Thanks for the idea @diegohaz!