-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Added a skip_files_list_verify argument to archive.extracted state #55700
Conversation
4ef9413
to
0f0e4ef
Compare
Codecov Report
@@ Coverage Diff @@
## master #55700 +/- ##
==========================================
- Coverage 18.82% 18.81% -0.01%
==========================================
Files 819 819
Lines 175421 175243 -178
Branches 37622 37597 -25
==========================================
- Hits 33008 32953 -55
+ Misses 139758 139640 -118
+ Partials 2655 2650 -5
|
So I'm reducing code coverage of files I didn't even touch. That's my secret superpower! |
0f0e4ef
to
b55087a
Compare
b55087a
to
514aa40
Compare
@@ -533,7 +553,7 @@ def extracted(name, | |||
then re-create that directory before extracting. Note that ``clean`` | |||
and ``clean_parent`` are mutually exclusive. | |||
|
|||
.. versionadded:: Sodium | |||
.. versionadded:: Neon |
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.
not related to this PR, just a mistake from my previous one. I hope it's ok to fix it here too
I tested this logic on some scenarios like a remote source, local source, remote source hash, source_hash as a string - all seems good. Not sure about all possible edge cases - salt file caching is complicated. But this is an optional feature disabled by default so I hope it's ok. What I'm worried about in the docs. I'm not sure if I described it clearly. |
re-run full macosxmojave-py2 |
What does this PR do?
This PR adding an ability to improve the archive.extracted state performance and traffic efficiency by adding an optional argument
skip_files_list_verify
which will allow to skip the archive file list validation replacing it by checksum validation.What issues does this PR fix or reference?
#55443
Previous Behavior
Before that, it was a choice between re-downloading source every time OR keeping all archives sources in the cache without any ability to purge it efficiently.
New Behavior
Setting
skip_files_list_verify
toTrue
will enforce the checksum check and if the checksums are match - we're done here.Tests written?
Yes
Commits signed with GPG?
Yes