Skip to content

Reuse readonly Playground mount snapshots - #2223

Merged
chubes4 merged 1 commit into
mainfrom
fix/2222-readonly-mount-reuse
Aug 6, 2026
Merged

Reuse readonly Playground mount snapshots#2223
chubes4 merged 1 commit into
mainfrom
fix/2222-readonly-mount-reuse

Conversation

@chubes4

@chubes4 chubes4 commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • reuse source-generation-verified readonly directory snapshots across unchanged runs
  • serialize concurrent preparation with renewable leases
  • clone prepared snapshots per runtime using copy-on-write when supported
  • preserve symlink escape/cycle safety and nested overlay behavior
  • report preparation mode, reuse, bytes, files, and elapsed time
  • bound retained snapshots by age and count

Closes #2222.

Verification

  • npm run build
  • npm run test:playground-readonly-mounts
  • npm run test:playground-readonly-mounts-integration
  • git diff --check

Filesystems without reflink/copy-on-write support safely fall back to a physical per-runtime copy.

AI assistance

  • Model: OpenAI gpt-5.6-sol
  • Tool: OpenCode
  • Use: A general coding agent implemented and tested the reusable staging contract under Chris Huber direction. Chris remains responsible for every line.

AI assistance: OpenAI gpt-5.6-sol via OpenCode; used to implement and test wp-codebox #2222 under Chris Huber direction.
@chubes4
chubes4 merged commit 07fb9db into main Aug 6, 2026
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.

Avoid full-copy staging for multi-gigabyte readonly source mounts

1 participant