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

tests: use cache instead of artifacts for devtools build #13840

Merged
merged 11 commits into from
Apr 18, 2022

Conversation

connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Apr 8, 2022

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!

@connorjclark connorjclark requested a review from a team as a code owner April 8, 2022 21:46
@connorjclark connorjclark requested review from adamraine and removed request for a team April 8, 2022 21:46
@connorjclark
Copy link
Collaborator Author

another bonus, in #13841 i just ran into an issue re-running failed jobs because of the 1-day artifact retention we have here

@@ -93,11 +93,15 @@ jobs:
with:
node-version: 14.x

- name: Download artifact
uses: actions/download-artifact@v2
- name: Cache build artifacts
Copy link
Member

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

@brendankenny
Copy link
Member

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants