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

3640 - Caching overhaul #48

Merged
merged 22 commits into from Apr 20, 2021

Conversation

rseanhall
Copy link
Contributor

@rseanhall rseanhall commented Mar 22, 2021

@rseanhall
Copy link
Contributor Author

There's still some things to work out. Here's some not-so-light reading for anyone interested. @robmen @barnson

Detect is supposed to be fast, so it can't fully verify every payload for every package. The engine was wasting its time by trying to verify file sizes without the hash. Even worse, it was making decisions during planning based on that insufficient verification.

Contributes to #3640
Contributes to #3640 and #5253
Inactivate the engine during OnCacheAcquireBegin and Complete to allow setting the source from there.

Fixes #3640
Contributes to #5253
Always send OnCacheAcquireProgress between OnCacheAcquireBegin and OnCacheAcquireComplete.
Track the successful cache acquisition progress during the final progress call.
Remove the container's cache progress when reextracting
Skip extracting payloads that are already cached
Add verifyStep to OnCacheVerifyProgress.
Send OnContainerOrPayloadVerify events only if file existed in cache.
@rseanhall rseanhall marked this pull request as ready for review April 20, 2021 04:11
@rseanhall rseanhall changed the title 3640 - Cache work in progress 3640 - Caching overhaul Apr 20, 2021
@rseanhall rseanhall enabled auto-merge (rebase) April 20, 2021 04:11
@rseanhall rseanhall merged commit 61a8d39 into wixtoolset:master Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants