-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Break up request graph cache serialisation and run after build completion #9384
Merged
Merged
Changes from 16 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c3fd8f2
Break up request graph cache serialisation and run after build comple…
JakeLane c06fa33
Fix test to abort before writing to cache
JakeLane 863b5bd
Write cache to disk when build fails
JakeLane d93e422
Move cache aborting to build queue
JakeLane 63f0017
Fix cache node shallow copy
JakeLane 0cfdedb
Merge branch 'v2' into jlane2/write-request-graph-to-disk-background
JakeLane d1e726d
Merge branch 'v2' of github.com:parcel-bundler/parcel into jlane2/wri…
JakeLane b82ab4c
Resolve windows cache path issue
JakeLane 07302ca
Merge branch 'v2' into jlane2/write-request-graph-to-disk-background
JakeLane 80507da
Simplify cache chunking by moving implementation to FSCache
JakeLane 730c274
Use promise queue to manage cache writes
JakeLane e5d8565
Merge branch 'v2' into jlane2/write-request-graph-to-disk-background
JakeLane 51ffd03
Resolve unhandled errors with promise queue
JakeLane 84d0e1d
Only serialise and write cache chunks to disk when changed
JakeLane ed110a1
Merge branch 'v2' of github.com:parcel-bundler/parcel into jlane2/wri…
JakeLane 48f1d25
Merge branch 'v2' into jlane2/write-request-graph-to-disk-background
JakeLane 96c1abc
Add getRequestGraphNodeKey function and refactor for loop
JakeLane c88cab5
Move to set to track cached requests to disk
JakeLane 921c7ba
Bring back catch on queue add
JakeLane 6d339a6
Update unit test for RequestTracker
JakeLane 3965abb
Update progress for cache write and handle node invalidation
JakeLane e0b3ba2
Update unit test to use new graph set
JakeLane 3d8b1e3
Invalidate written cache on disk on request completion
JakeLane 0941434
Merge branch 'v2' into jlane2/write-request-graph-to-disk-background
JakeLane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there any elegant way to share the implementation between the two Cache types as (AFAICT) they're identical?
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.
Instantiate a
FSCache
instance inside lmdb cache and forward calls ofsetLargeBlob
to that?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.
That sounds good to me, will clean this up