Skip to content

test(cache): add in-memory remote cache backend - #726

Merged
wan9chi merged 3 commits into
mainfrom
remote-cache-test-backend
Sep 17, 2026
Merged

wan9chi merged 3 commits into
mainfrom
remote-cache-test-backend

Conversation

@wan9chi

@wan9chi wan9chi commented Sep 17, 2026

Copy link
Copy Markdown
Member

Motivation

Remote cache client work needs an HTTP backend that E2E tests can start and stop without adding server lifecycle logic to the test harness.

Add remote-cache-server and cbor-http to vite-task-tools, with pnpm linking both commands into .bin. The daemon stores opaque entries, associations, and blobs in memory. It reserves and publishes its endpoint through cache.url, stops when that file is deleted, and has a bounded lifetime for failed tests. The HTTP client accepts EDN for CBOR requests and prints responses as EDN for snapshot assertions.

Six E2E cases cover entry and association semantics, blob replacement, opaque binary data, invalid requests, request limits, and daemon restart. The fixtures invoke the pnpm-linked commands directly. They are skipped on Windows because the PTY launcher cannot execute pnpm command shims. A focused unit test covers EDN escaping. CI runs the utility type check and unit test alongside the existing platform suites.

Co-authored-by: GPT-6 <codex@openai.com>
@socket-security

socket-security Bot commented Sep 17, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​cbor-edn@​0.2.2771009082100
Addednpm/​cbor2@​1.11.010010010082100
Addednpm/​@​fastify/​busboy@​3.2.210010010091100

View full report

@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown

fspy benchmark

linux

dynamic/launch             change  +0.42%  [ -7.03% ..  +7.88%]  overhead  +267.41%
dynamic/access             change  +0.00%  [ -1.22% ..  +1.08%]  overhead   +14.64%
dynamic/access-relative    change  -0.11%  [ -1.33% ..  +0.78%]  overhead   +61.31%
dynamic/access-contended   change  -0.42%  [ -2.24% ..  +2.02%]  overhead   +15.22%
static/launch              change  +0.62%  [ -5.32% ..  +6.37%]  overhead  +710.50%
static/access              change  -0.25%  [ -0.99% ..  +1.00%]  overhead  +807.90%
static/access-relative     change  -0.27%  [ -1.47% ..  +0.98%]  overhead +1373.95%
static/access-contended    change  +0.35%  [ -1.27% ..  +1.34%]  overhead +3151.94%

macos

dynamic/launch             change  -0.18%  [ -4.47% ..  +4.92%]  overhead  +225.31%
dynamic/access             change  -1.71%  [-12.12% ..  +5.24%]  overhead    +1.50%
dynamic/access-relative    change  -0.69%  [-11.09% ..  +8.54%]  overhead  +262.56%
dynamic/access-contended   change  -2.28%  [-15.20% .. +20.42%]  overhead    -1.84%

windows

dynamic/launch             change  +0.83%  [ -7.22% ..  +9.89%]  overhead   +24.13%
dynamic/access             change  -0.18%  [-25.66% ..  +7.49%]  overhead    +2.14%
dynamic/access-relative    change  +0.17%  [-10.24% .. +29.07%]  overhead    +1.05%
dynamic/access-contended   change  -0.93%  [-12.01% .. +24.19%]  overhead    +3.42%

wan9chi and others added 2 commits September 17, 2026 13:19
Co-authored-by: GPT-6 <codex@openai.com>
@wan9chi
wan9chi merged commit 6134c29 into main Sep 17, 2026
19 checks passed
@wan9chi
wan9chi deleted the remote-cache-test-backend branch September 17, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant