GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — A cache hit whose outputs can't be restored exits 0 and is reported as a hit · Issue #767 · voidzero-dev/vite-task

A cache hit whose outputs can't be restored exits 0 and is reported as a hit #767

New issue
Copy link
New issue
Copy link
Closed
#770
Closed
A cache hit whose outputs can't be restored exits 0 and is reported as a hit#767
#770
Copy link
Labels
remote cacheRemote caching

Description

@wan9chi
wan9chi
opened on Sep 27, 2026
Issue body actions

When vp run gets a cache hit but can't restore the task's output files, for example because the cached archive was deleted or is corrupt, it prints an error, but:

  • the run exits with code 0, so CI passes without the task's outputs;
  • the summary line still says cache hit;
  • vp run --last-details shows the task with ✓ as a cache hit, without the error.

The broken entry also stays in the cache, so every later run hits it and fails the same way until vp cache clean.

Remote caching makes this easier to reach. An entry from the remote cache is saved locally before its outputs are restored, so an archive that downloads but can't be restored leaves the same broken entry behind (#756).

Steps to reproduce

  1. Run a cached task that has output files, such as vp run build.
  2. Delete its .tar.zst archive under node_modules/.vite/task-cache/.
  3. Run vp run build again and check the exit code, then run vp run --last-details.
$ … ◉ cache hit, replaying
✗ Cache lookup failed: failed to restore cached outputs from …/node_modules/.vite/task-cache/v18/….tar.zst; the archive may have been deleted or corrupted. Run `vp cache clean` to clear the cache.: No such file or directory (os error 2)

---
vp run: cache hit, 94ms saved.

The exit code is 0, and --last-details shows:

Statistics:   1 tasks • 1 cache hits • 0 cache misses
...
  [1] my-package#build: $ … ✓
      → Cache hit - output replayed - 94ms saved

Expected: the run fails with a non-zero exit code, the summary reports the task as failed with its error, and later runs don't keep hitting the broken entry.

Activity

  1. wan9chi
    added
    remote cacheRemote caching
    on Sep 27, 2026
  2. wan9chi
    added 2 commits that reference this issue on Sep 27, 2026

    fix(cache): fail the run when a cache hit's outputs can't be restored

    This issue will close once commit 7a0993c is merged into the 'main' branch.
    7a0993c

    fix(cache): fail the run when a cache hit's outputs can't be restored

    This issue will close once commit 6ca1c05 is merged into the 'main' branch.
    6ca1c05
  3. wan9chi
    closed this as completedin #770on Oct 2, 2026
  4. jong-kyung
    added a commit that references this issue on Oct 8, 2026

    fix(cache): fail the run when a cache hit's outputs can't be restored (…

    This issue will close once commit 040e086 is merged into the 'main' branch.
    040e086
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    remote cacheRemote caching

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.