Repository navigation
test(runtime): cover MicroSandbox image backend parity - #1448
Conversation
✅ Deploy Preview for devsydev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (8)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAdds end-to-end image parity tests for builtin and external MicroSandbox providers. The suite checks registry fallback, Docker-only images, and Dockerfile builds with a local Dev Container Feature. CI and provider documentation include the suite. ChangesMicroSandbox image parity
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Other Sequence Diagram(s)sequenceDiagram
participant ParityTests
participant MicroSandboxProviders
participant Docker
participant LoopbackRegistry
participant RunningEnvironment
ParityTests->>MicroSandboxProviders: Run each image case against both providers
ParityTests->>Docker: Build or inspect local images
ParityTests->>LoopbackRegistry: Serve Alpine image and count manifest reads
MicroSandboxProviders->>RunningEnvironment: Start configured workspace
ParityTests->>RunningEnvironment: Check image and feature markers
Merge Risk: ⚪ Minimal · up to The image-parity suite is ready to merge after normal checks; no concrete blocking issue remains. Pre-merge checks |
|
✅ Deploy Preview for images-devsy-sh canceled.
|
|
@greptileai review |
|
|
@coderabbitai full review |
✅ Action performedFull review finished. |
MicroSandbox's shared lifecycle checks did not exercise the host image backend. Add six real VM cases that run the same registry fallback, Docker-only image import, and Dockerfile plus local Dev Container Feature build against the built-in driver and external provider v0.1.5.
The registry case publishes an image to an isolated loopback registry, verifies that its reference is absent from Docker, and checks manifest reads and the guest OS. The local image and Feature cases verify filesystem and environment markers inside the guest. A dedicated CI matrix entry installs checksum-pinned MicroSandbox v0.7.7 and requires KVM, with a 20-minute suite deadline and a 25-minute job deadline. The runtime documentation records the new coverage and remaining parity requirements.
Validation:
e2e/tests/upande2e/framework; suite dry run selects all six new cases.task cli:lint:ci, all-file prek, and module verification.eab1acacagainst built-in and external v0.1.5.EPERM; five local focused race runs and an uncached full package race run also passed. No test or timeout was weakened.