Conversation
✅ Deploy Preview for devsydev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning Review limit reachedNext included review available in 21 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (14)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe Microsandbox driver now supports workspace permission and stat virtualization policies, propagates the configured container user, validates the runtime version, serializes mount policies, and verifies bidirectional ownership and mode behavior in end-to-end tests. ChangesMicrosandbox workspace policy
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant ProviderConfig
participant MicrosandboxDriver
participant cliClient
participant MicroSandbox
ProviderConfig->>MicrosandboxDriver: workspace policy and user
MicrosandboxDriver->>MicrosandboxDriver: parse policy and build spec
MicrosandboxDriver->>cliClient: request version
cliClient->>MicroSandbox: msb --version
MicroSandbox-->>cliClient: version output
MicrosandboxDriver->>cliClient: run with user and mount policy
cliClient->>MicroSandbox: sandbox command
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 27 functions across 11 files. (3 skipped: 3 unsupported.) ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Deploy Preview for images-devsy-sh canceled.
|
b60a08b to
35af9b6
Compare
|
Tick the box to add this pull request to the merge queue (same as
|
|
@greptileai review |
|
| rawVersion, err := d.client.Version(ctx) | ||
| if err != nil { | ||
| return &driver.PreflightError{Provider: provider.MicrosandboxDriver, Err: err} | ||
| } | ||
| version, err := parseMicrosandboxVersion(rawVersion) | ||
| if err != nil { | ||
| return &driver.PreflightError{Provider: provider.MicrosandboxDriver, Err: err} | ||
| } | ||
| if version.LT(minimumMicrosandboxVersion) { |
There was a problem hiding this comment.
If a user has MicroSandbox v0.6.14 and an existing VM, this shared preflight rejects the runtime before every runner operation. Because stop, delete, status, and logs all construct a runner first, users cannot manage or clean up that VM through Devsy. Apply the version requirement only to operations that need the new mount policies, or allow lifecycle cleanup against older runtimes.
Knowledge Base Used: Supported provider backends
35af9b6 to
b6fee01
Compare
Summary
containerUsertomsb run --userstat-virtandhost-permspolicies while preserving additional bind-mount defaultsValidation
coderabbit review --uncommitted --agent— clean, zero findingsgo test ./pkg/driver/microsandbox ./pkg/options ./pkg/providergo test ./e2e/tests/up -run '^$'golangci-lintfor the MicroSandbox packagegit diff --checkThe live MicroSandbox E2E requires the installed runtime and Apple Silicon/macOS integration environment; it was not run in this pass.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation