-
Notifications
You must be signed in to change notification settings - Fork 209
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
[Miniflare 3] Re-implement Cache gateway using new storage system #562
Conversation
This attempts to fix an issue where tests would pass, but AVA would hang. Step-through debugging doesn't seem to work when the `workerThreads` option is enabled either.
|
Closes DEVX-590
51cf124
to
727b069
Compare
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.
Looking great!
Add test for parsing Cache API messages from `workerd`
Remove extraneous `as`s
Extract parameters to `getMatchResponse()` into separate type
Remove `log` member on `CacheGateway`
Assert `resHeaders` created as opposed to `??=`
This PR builds on #555, and re-implements the Cache gateway using the new storage system. Specifically, it uses the same abstract expiring-key-value-metadata store as the KV gateway. The gateway now uses streams all the way from the incoming request to the blob store. 🙂
Whilst implementing this, I noticed tests passing but hanging. 😕 I'm hoping the
ava
bump should've fixed this. You may wish to review this in isolation. 👍 (alternatively fixing #532 will mean we don't need to use AVA shared workers for getting ports, which seem to be the buggy component)Closes DEVX-590