Skip to content

perf: content-hash based cache keys for CI compatibility#5

Open
zzzz465 wants to merge 1 commit intogoforj:cmilesdev/custom-loaderfrom
zzzz465:fix/artifact-cache-content-hash
Open

perf: content-hash based cache keys for CI compatibility#5
zzzz465 wants to merge 1 commit intogoforj:cmilesdev/custom-loaderfrom
zzzz465:fix/artifact-cache-content-hash

Conversation

@zzzz465
Copy link
Copy Markdown

@zzzz465 zzzz465 commented Mar 27, 2026

Replace mtime-based cache invalidation with content hashing:

  • artifact_cache: use SHA-256 of file content instead of ModTime
  • discovery_cache: use content hash for file matching, add WIRE_DISCOVERY_CACHE_DIR env var
  • Bump cache versions (artifact v4, discovery v4)

This enables wire cache to work correctly in CI environments where file mtimes are not preserved across runs (e.g., S3 cache restore, git checkout).

Replace mtime-based cache invalidation with content hashing:
- artifact_cache: use SHA-256 of file content instead of ModTime
- discovery_cache: use content hash for file matching, add WIRE_DISCOVERY_CACHE_DIR env var
- Bump cache versions (artifact v4, discovery v4)

This enables wire cache to work correctly in CI environments where
file mtimes are not preserved across runs (e.g., S3 cache restore,
git checkout).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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