Skip to content

Commit

Permalink
Break up request graph cache serialisation and run after build compl…
Browse files Browse the repository at this point in the history
…etion (#9384)

* Break up request graph cache serialisation and run after build completion

* Fix test to abort before writing to cache

* Write cache to disk when build fails

* Move cache aborting to build queue

* Fix cache node shallow copy

* Resolve windows cache path issue

* Simplify cache chunking by moving implementation to FSCache

* Use promise queue to manage cache writes

* Resolve unhandled errors with promise queue

* Only serialise and write cache chunks to disk when changed

* Add getRequestGraphNodeKey function and refactor for loop

* Move to set to track cached requests to disk

* Bring back catch on queue add

* Update unit test for RequestTracker

* Update progress for cache write and handle node invalidation

* Update unit test to use new graph set

* Invalidate written cache on disk on request completion
  • Loading branch information
JakeLane authored Feb 16, 2024
1 parent 2215d36 commit 0560499
Show file tree
Hide file tree
Showing 14 changed files with 336 additions and 512 deletions.
377 changes: 0 additions & 377 deletions flow-libs/cli-progress.js.flow

This file was deleted.

Loading

0 comments on commit 0560499

Please sign in to comment.