-
Notifications
You must be signed in to change notification settings - Fork 28
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
perf(action): Filter out pre-cached images #98
Conversation
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.
Good work! It's probably worth another pass with fresh eyes after addressing review feedback to double check that all of the proper assertions were actually added since tests don't fail by themselves.
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.
Lots of great progress here. Good to see more asserts working their way in. This is getting close to landing.
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.
Good progress!
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.
Note: I haven't divided the PR into separate PRs yet but will do so after the other issues with this PR are addressed satisfactorily.
Consider quantifying the approximate performance improvement of this change on the test workflow in the commit message. |
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.
Commit message: when documenting performance it's useful it say the approximate runtime before and after the change since there's a huge difference between making a 1-hour job 1 minute faster and making a 2-minute job 1 minute faster. Consider "in test workflow: the" --> "in the test workflow, the" (or "in Test workflow, the").
b37a43a
to
c4f1b66
Compare
c878b70
to
5bb6ebc
Compare
Only save relevant Docker images. Improve performance when run as root, e.g., in Test workflow, the Save Cache job ran for approximately 5 minutes and now runs in less than 10 seconds. The Restore Cache job ran in approximately 40 seconds and now runs in less than 10 seconds. Previously, unnecessary Docker images were saved because GitHub Actions pre-caches a standard set of Docker images when Docker runs as root; those images aren't accessible when using rootless-docker, so this change doesn't impact users of rootless-docker.
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.
LGTM No further questions your honor. Congratulations on finishing this one!
Fixes #45.
Only save relevant Docker images. Improve performance when run as root, e.g., in Test workflow, the Save Cache job ran for approximately 5 minutes and now runs in less than 10 seconds. The Restore Cache job ran in approximately 40 seconds and now runs in less than 10 seconds. Previously, unnecessary Docker images were saved because GitHub Actions pre-caches a standard set of Docker images when Docker runs as root; those images aren't accessible when using rootless-docker, so this change doesn't impact users of rootless-docker.