Repository navigation
feat: add vmsan doctor command and fix JSON output - #56
Conversation
- Add `vmsan doctor` with 8 diagnostic checks (KVM, disk, network, binaries, kernel, rootfs) with human and JSON output modes - Fix stop/remove commands missing try/catch error handling - Fix network command bypassing evlog with direct console.log - Add unit tests for all doctor checks
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Use the explicit VmsanPaths interface import instead of ReturnType<typeof vmsanPaths> for better readability and consistency with the test file.
* docs: sync documentation with beta.1 CLI changes * fix(docs): correct --cpus to --vcpus and remove premature doctor section - Fix `--cpus` → `--vcpus` in vm-lifecycle and docker-images examples (the CLI flag is `--vcpus`, `--cpus` does not exist) - Remove `vmsan doctor` section from CLI reference since the command has not been merged to main yet (lives on feat/doctor-json-audit) * docs: re-add vmsan doctor section (merges after PR #56)
Summary
vmsan doctorcommand with 8 diagnostic checks: KVM access, disk space, default network interface, Firecracker/Jailer/Agent binaries, kernel image, and base rootfs. Supports both human-readable and--jsonoutput modes.stopandremovecommands missingtry/catcherror handling withhandleCommandError().networkcommand bypassing evlog structured logging by usingconsole.log(JSON.stringify(...))directly — now usescmdLog.set()+cmdLog.emit()like other commands.Workflow task: D1
Test plan
bun run test— 196 tests pass (180 existing + 16 new)bun run typecheck— passesbun run lint— passesvmsan doctorshows human output with check statusesvmsan --json doctoremits structured JSON with checks array and summary