You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use copy-on-write cloning for repository-private microVM rootfs #2296
Mecatl reuses the admitted execution-image cache, but its repository-private writable rootfs currently goes through cloneRootFS -> copyTree, which creates separate file trees using ordinary file copying. It does not explicitly use the filesystem's copy-on-write cloning facilities.
An old macOS development-validation installation occupied about 9.3 GiB across caches, repository state, downloads and binaries. That aggregate is motivation, not a measured estimate of duplication or promised savings; the installation has since been removed.
The pinned go-microvm dependency already exposes rootfs.CloneDir, with APFS cloning on macOS, Linux reflinks, and a copy fallback.
Proposed scope
Use the existing go-microvm cloning primitive when materializing the repository-private writable rootfs. Preserve isolation, error handling, filesystem semantics required by Mecatl, and persistent repository state. Check helper differences (including permissions, ownership and symlinks) before substitution.
Do not change verified-artifact admission/snapshot copying, retained launch-artifact copying, image-cache layout, runtime namespace selection, or upgrade/recovery behavior in this issue.
Acceptance criteria
Writable rootfs creation uses existing platform-aware copy-on-write support where available and retains a safe copy fallback.
Offline tests demonstrate that mutations to one writable rootfs do not affect the source or another clone; relevant copy/error and filesystem semantics are covered.
No new dependency is introduced if the already-pinned go-microvm API suffices.
Required local validation and CI pass; any physical-space claims are supported by measurements, not inferred from use of the helper.
Assess API and stored-state compatibility; no contract or storage migration is intended.
Activity
perf(microvm): reuse native copy-on-write rootfs cloning (#2297)