Skip to content

feat(cache): show remote cache hits - #757

Draft
wan9chi wants to merge 1 commit into
remote-cache-restorefrom
remote-cache-hit-source
Draft

wan9chi wants to merge 1 commit into
remote-cache-restorefrom
remote-cache-hit-source

Conversation

@wan9chi

@wan9chi wan9chi commented Sep 24, 2026

Copy link
Copy Markdown
Member

Motivation

#756 restores task results from the remote cache, but a remote hit looks the same as a local one. Showing where a hit came from makes it clear that the remote cache is working and how much of a run it served.

A cache hit now records whether it came from the local or the remote cache. Remote hits are marked, and local hits look as before:

  • Inline: $ vtt write-file dist/output.txt built ◉ remote cache hit, replaying
  • Compact summary, single task: vp run: remote cache hit, 1.2s saved.
  • Compact summary, several tasks: vp run: 2/2 cache hit (100%, 1 remote).
  • --last-details statistics: Statistics: 2 tasks • 2 cache hits (1 remote) • 0 cache misses
  • --last-details task details: → Remote cache hit - output replayed - 1.2s saved

The saved summary records the source for --last-details. A summary saved without it reads as local hits.

The restore snapshot now shows the remote hit, and a new ignored local_and_remote_hits case runs a remote hit and a local hit together, followed by --last-details.

@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 8d89f96 to 00bacf6 Compare September 24, 2026 19:46
@wan9chi
wan9chi added this pull request to stack #751 September 24, 2026 19:46
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

fspy benchmark

linux

dynamic/launch             change  +1.26%  [ -5.11% ..  +8.61%]  overhead  +302.68%
dynamic/access             change  +0.31%  [-14.85% ..  +5.42%]  overhead   +11.37%
dynamic/access-relative    change  -0.42%  [-14.19% ..  +2.18%]  overhead   +59.68%
dynamic/access-contended   change  +0.50%  [-12.11% .. +15.67%]  overhead   +23.74%
static/launch              change  +0.11%  [ -5.07% ..  +6.84%]  overhead  +731.56%
static/access              change  -0.02%  [-14.53% .. +16.48%]  overhead  +818.60%
static/access-relative     change  -0.32%  [ -7.15% ..  +2.58%]  overhead +1372.53%
static/access-contended    change  +0.52%  [ -2.08% ..  +2.27%]  overhead +3200.67%

macos

dynamic/launch             change  -0.55%  [ -4.25% ..  +4.17%]  overhead  +210.87%
dynamic/access             change  -0.34%  [ -3.70% ..  +3.31%]  overhead    +4.01%
dynamic/access-relative    change  -0.10%  [ -2.77% ..  +2.77%]  overhead  +286.09%
dynamic/access-contended   change  -0.01%  [-12.35% .. +12.02%]  overhead    +2.29%

windows

dynamic/launch             change  +0.14%  [ -6.86% ..  +6.46%]  overhead   +26.79%
dynamic/access             change  +0.00%  [ -0.92% ..  +0.75%]  overhead    +1.13%
dynamic/access-relative    change  -0.18%  [ -1.24% ..  +0.71%]  overhead    +1.62%
dynamic/access-contended   change  +0.00%  [ -1.93% ..  +3.13%]  overhead    +1.58%

@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 00bacf6 to d9ec5a7 Compare September 25, 2026 02:04
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch 2 times, most recently from acbe343 to 0f57cb9 Compare September 25, 2026 02:28
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 0f57cb9 to 527f703 Compare September 25, 2026 02:29
@wan9chi
wan9chi removed this pull request from stack #751 September 25, 2026 02:34
@wan9chi
wan9chi added this pull request to stack #759 September 25, 2026 02:35
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 527f703 to 33bfa6a Compare September 25, 2026 02:38
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 33bfa6a to 21f0eca Compare September 25, 2026 03:07
A cache hit now records whether it came from the local or the remote
cache. Remote hits are marked inline (`◉ remote cache hit, replaying`),
in the compact summary (`vp run: remote cache hit, 1s saved.` for a
single task, `2/3 cache hit (66%, 1 remote)` otherwise), in the full
summary's statistics (`2 cache hits (1 remote)`), and in the task details
(`→ Remote cache hit - output replayed - 1s saved`). Local hits look as
before.

The saved summary records the source, and summaries saved without it
read as local hits.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 21f0eca to 6e5fd41 Compare September 25, 2026 04:12

This branch has not been deployed

No deployments
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