turborepo
0d3a72ac - feat: Spike sccache-over-Turborepo-Remote-Cache shim (experimental)

Commit
138 days ago
feat: Spike sccache-over-Turborepo-Remote-Cache shim (experimental) Proves the compile-level remote caching story for native Cargo support: sccache can use Turborepo Remote Cache as its storage backend with zero sccache modifications. turborepo-sccache-shim is a small localhost server speaking the WebDAV subset sccache's opendal backend uses, translating GET/PUT/PROPFIND into artifacts API calls through turborepo-api-client. Measured against turborepo-vercel-api-mock on the turbo-trace closure (166 cacheable units): cold-target rebuild 21.6s -> 12.0s wall (4.4x CPU) at a 100% hit rate, statistically identical to sccache's local disk backend — the shim adds no measurable overhead. Artifact profile: 95.5 MiB total, median 195 KiB, max 7 MiB. Findings the loop caught (documented in the crate README): - opendal 0.55 requires `getlastmodified` in PROPFIND multistatus responses; without it sccache silently degrades to read-only mode. - Strict env mode strips SCCACHE_WEBDAV_* from cargo task environments; a productionized shim should inject the variables directly. - The two cache layers are exactly complementary: sccache cannot cache link-invoking crates (bins/cdylibs/proc-macros), which are precisely the deliverables turbo's task cache stores. The mock API binary now accepts a fixed port argument for scripting.
Author
Parents
Loading