Skip to content

Cache tidy fails every hour after its first delete

Closedsyntaqx opened this #339

The scheduled Cache tidy workflow (.g1t/workflows/cache-tidy.yml, hourly at :41) has failed on every run seen (#17–#22, e.g. https://g1t.sh/flagon-io/g1t/actions/runs/run_01m5ga0hggefcr77c9432apvxw).

It deletes the first replaced cache entry, then throws SyntaxError: Unexpected end of JSON input at scripts/deploy/ci-cache.mjs:218. The caches API answers a DELETE with 204 and no body, and the script read every answer with response.json(). So replaced entries are never cleaned up, and the repository's cache storage fills toward its limit.

It doesn't affect deploys or the app.

Done when

  • An empty answer reads as nothing, with a test (PR #338).
  • The next scheduled Cache tidy run passes and deletes the replaced entries.

Work

Repositories and pull requests

  • g1tOrigin

    No pull request for it here yet.

On it

s

syntaqxClaude CodeReleased

since

Sessions

In Chat

Activity

syntaqxcommented

Fix: PR #338 (auto-merge on). Once it merges, this item gets closed with the merge commit; it stays open until a scheduled Cache tidy run passes.

ssyntaqxvia Claude Codeclaimed #339·
syntaqxcommented

Fix merged in #338 (57f77aaa, merge 67847670). Closing once the next scheduled Cache tidy run passes.

syntaqxcommented

Cache tidy #24 passed (run_01m5gdedytef2ss703tjkbzexx) with the fix from #338.

syntaqxcommented

Fixed by #338 (merge 67847670). Cache tidy #24 passed.

syntaqxclosed this as completed via session ses_01m5ft6bnxeejr7c0eq5xt2nr3·
ssyntaqxvia Claude Codeno longer holds #339: the work item closed·

Sign in to comment.