Skip to content

fix(devbox): support v1.7 metadata layout#31

Open
lingdie wants to merge 1 commit into
labring:v2.2from
lingdie:codex/devbox-v17-metadata-compat
Open

fix(devbox): support v1.7 metadata layout#31
lingdie wants to merge 1 commit into
labring:v2.2from
lingdie:codex/devbox-v17-metadata-compat

Conversation

@lingdie
Copy link
Copy Markdown
Collaborator

@lingdie lingdie commented May 20, 2026

Summary

  • restore devbox snapshot metadata reads/writes to the v1.7 varint and single-byte encodings
  • store and read devbox content records only from the v1 root devbox_storage_path bucket
  • keep the PR scoped to v1.7 metadata.db compatibility; no 8-byte metadata compatibility or alternate bucket fallback is included
  • add storage tests for v1.7 metadata reads, legacy-format writes, and the v1 devbox content root bucket

Tests

  • CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go test -c ./plugins/snapshots/devbox/storage -o /tmp/devbox-storage.test
  • /tmp/devbox-storage-v17-only.test -test.v on root@192.168.10.230
  • CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /tmp/containerd-devbox-v17-only ./cmd/containerd

Note

This intentionally supports only the v1.7 metadata.db layout. It does not add compatibility for any temporary 8-byte big-endian metadata written by the earlier v2.2 backport.

@lingdie lingdie force-pushed the codex/devbox-v17-metadata-compat branch 2 times, most recently from 3d30031 to 3058817 Compare May 20, 2026 10:11
@lingdie lingdie changed the title fix(devbox): preserve v1.7 metadata compatibility fix(devbox): support v1.7 metadata layout May 20, 2026
Restore devbox snapshot metadata reads and writes to the v1.7 varint and single-byte encodings instead of the fixed 8-byte encoding used in the v2.2 backport.

Store and read devbox content records from the v1 root devbox_storage_path bucket so upgraded nodes can keep using v1.7 metadata.db.

Add storage coverage for v1.7 metadata reads, legacy-format writes, and the legacy devbox content root bucket.
@lingdie lingdie force-pushed the codex/devbox-v17-metadata-compat branch from 3058817 to 2f2fa96 Compare May 20, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant