test(cli): cover sandbox oclif command adapters - #2938
Conversation
This reverts commit 4ebeae4.
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR updates CLI command infrastructure across multiple adapter files: requiring arguments in channel commands, adding CLI usage examples to 11 commands, migrating 2 commands to ChangesCLI Command Metadata and Argument Updates
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
## Summary Remove broad coverage ignores from low-risk global oclif adapters and cover their parser-to-action mapping directly. ## Stack Navigation - Position: 39 of 60 - Previous PR: [#2936 — test(cli): cover oclif metadata routing helpers](#2936) - Next PR: [#2938 — test(cli): cover sandbox oclif command adapters](#2938) ## Changes - Removed file-level V8 ignores from list, status, maintenance, and onboard oclif adapters. - Added direct source-level tests for list/status adapter helpers and maintenance typed option mapping. - Covered onboard/setup/setup-spark compatibility argv generation through mocked action facades. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Verification - [x] `npx prek run --all-files` passes - [x] `npm test` passes - [x] Tests added or updated for new or changed behavior - [x] No secrets, API keys, or credentials committed - [ ] Docs updated for user-facing behavior changes - [ ] `make docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- Signed-off-by: Carlos Villela <cvillela@nvidia.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Added comprehensive test coverage for command adapter behavior verification. * **Chores** * Code cleanup and maintenance improvements to internal directives. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
## Summary Split share oclif command classes out of the SSHFS action/helper module so parser adapters and action logic are independently testable. ## Stack Navigation - Position: 41 of 60 - Previous PR: [#2938 — test(cli): cover sandbox oclif command adapters](#2938) - Next PR: [#2940 — test(cli): narrow sandbox logs coverage ignores](#2940) ## Changes - Added `share-cli-commands.ts` for the share parent and mount/unmount/status oclif adapters. - Left SSHFS action helpers in `share-command.ts`. - Updated the oclif command registry to import share command classes from the new adapter module. - Added direct share adapter tests with mocked share actions. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Verification - [x] `npx prek run --all-files` passes - [x] `npm test` passes - [x] Tests added or updated for new or changed behavior - [x] No secrets, API keys, or credentials committed - [ ] Docs updated for user-facing behavior changes - [ ] `make docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- Signed-off-by: Carlos Villela <cvillela@nvidia.com> --------- Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Summary
Remove broad coverage ignores from sandbox oclif adapters whose parser behavior can now be tested in-process.
Stack Navigation
Changes
Type of Change
Verification
npx prek run --all-filespassesnpm testpassesmake docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit
New Features
sandbox:doctorcommand for sandbox and gateway health diagnostics--tail/-nand--sinceoptions to logs commandImprovements
jsonoryamloptions-yshorthand for yes flag in destroy and rebuild commands