-
Notifications
You must be signed in to change notification settings - Fork 1.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
Make caching more verbose #650
Conversation
Hi, guys. Could someone review my patch, please? |
packages/cache/src/cache.ts
Outdated
@@ -100,6 +100,7 @@ export async function restoreCache( | |||
options | |||
) | |||
|
|||
await listTar(archivePath, compressionMethod) |
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.
Listing out the contents of the tar file might not be ideal in all scenarios. If users are concerned more about cache speed than log verbosity, we should consider making this optional.
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.
Thanks for your review. I've added it under if (core.isDebug())
conditinal.
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.
Ping |
@joshmgross I've updated the PR a week ago. Do you expect from me any other actions or do I miss something? |
@aiqiaoy or @yacaovsnc could you take a look at this PR? |
Thanks @rosik for the PR. Could you please add a test for the |
856f207
to
967b069
Compare
I've added a unit test, but I'm worried it's not covered by an end-to-end test. The |
Sorry for the silence, I was out for the last couple weeks. Personally I think it's fine that this isn't covered in the end-to-end test - to test that we need to set FWIW, I forked the repo and set |
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.
Thanks for the PR. Looks good to me.
- Print cache size when saving cache similarly to restoring - Print restore success similarly to saving - Print cached file list if debug logging is enabled See also: actions/cache#471
If you ask for my opinion, I vote for enabling ACTIONS_STEP_DEBUG in the main repo. It sounds helpful for the coverage. So, what's next? I've rebased my patch on top of the fresh main branch. Do you expect any other actions from me now? |
Ping |
@rosik the cache action can include this change after we release a new npm package. Are you waiting for this change? @konradpabjan let's include this change next time we release. Do you handle npm releases for cache toolkit too? |
So so. We can always invent a workaround for debugging, but it's usually a little bit nasty. |
This makes logs of saving and restoring cache more similar to each other.
Part of actions/cache#471