Skip to content

OCI registry-backed remote cache for 2DFS builder - #6

Open
AlperPeker wants to merge 35 commits into
2DFS:mainfrom
AlperPeker:prototype/full-remote-cache-flow
Open

AlperPeker wants to merge 35 commits into
2DFS:mainfrom
AlperPeker:prototype/full-remote-cache-flow

Conversation

@AlperPeker

Copy link
Copy Markdown

Summary

This PR adds an OCI registry-backed remote cache to the 2DFS builder.

The implementation includes:

  • deterministic remote blob caching using OCI registry tags
  • remote key metadata for mapping allotment identity to cached blobs
  • remote key lookup and blob restoration in the allotment build flow
  • local cache hydration after successful remote restoration
  • blob-before-key remote publication ordering
  • CLI configuration for remote cache registry access
  • focused unit and integration tests
  • updated current-state remote cache documentation

Validation

The following checks pass:

  • go mod verify
  • go test -count=1 ./cache
  • go test -count=1 ./oci -run 'Remote|LocalCacheKey'
  • go test -count=1 ./filesystem
  • go test ./oci -run '^$'

The full go test ./oci suite is currently blocked by the existing external Docker registry test TestDownloadIndexDocker, which returns HTTP 429 Too Many Requests. The OCI package itself compiles successfully and the remote-cache-focused tests pass.

Notes

The current implementation keeps the remote cache client-side and uses standard OCI registry operations. No registry-side remote-cache extension or central mutable cache index is required.

Historical implementation snapshots are preserved in:

  • docs/remote-cache-v1.md
  • docs/remote-cache-v2.md

The current implementation is documented in:

  • docs/remote-cache-current.md

AlperPeker added 30 commits June 4, 2026 17:46
Extract remote cache context parsing into a production helper and cover disabled, enabled, partial, and invalid configuration cases.
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