Skip to content

Add dry run support to CLI commands #123

Closed

Description

@cwing-nvidia

Summary

Add --dry-run / -n flag to major CLI commands that shows what would happen without actually executing the operations. This improves user confidence and helps with debugging configuration issues.

Motivation

  • Confidence building: Users can verify complex commands before execution
  • Configuration debugging: See resolved configs and planned operations
  • Cost savings: Avoid accidental expensive operations (large rollout collections)
  • Learning: New users can explore commands safely
  • Script validation: Verify automation scripts work as expected

Proposed Commands to Support

Higher Priority:
ng_run --dry-run - Show which servers would start and their resolved configurations
ng_collect_rollouts --dry-run - Show rollout plan (input count, output path, estimated time/cost)
ng_init_resources_server --dry-run - Show what files/directories would be created

Lower Priority:
ng_test --dry-run - Show which tests would run for specific server
ng_test_all --dry-run - Show all tests that would run

Example Usage

# Show what servers would start
ng_run --dry-run "+config_paths=[path1,path2]"
# Output:
# Would start 3 servers:
#   - simple_weather_server (port 8001)
#   - openai_model_server (port 8002) 
#   - simple_agent_server (port 8003)
# Resolved config: /tmp/nemo_gym_merged_config.yaml

Implementation Considerations

  • Add --dry-run flag to argument parsers
  • Create preview/summary functions for each command
  • Consider config resolution without server startup
  • Mock expensive operations (API calls, model loading)
  • Use consistent output format across commands

Acceptance Criteria

[ ] All dry-run outputs are consistent and informative
[ ] Help text documents dry-run behavior for supported commands
[ ] No side effects during dry-run operations

Activity

  1. changed the title [-]Add dry run support to NeMo Gym CLI commands[/-] [+]Add dry run support to CLI commands[/+] on Oct 8, 2025
  2. added
    core-infra
    on Oct 23, 2025
  3. added
    usability
    on Oct 23, 2025
  4. linked a pull request that will close this issuefeat: ng_run Dry run support #743on Feb 25, 2026
  5. added 2 commits that reference this issue on Aug 12, 2026
    92e5957
    1999869
  6. added a commit that references this issue on Aug 12, 2026
    c86feed
  7. added a commit that references this issue on Aug 15, 2026
    15d9adf
  8. added a commit that references this issue on Aug 15, 2026
    ef74828
  9. added a commit that references this issue on Aug 17, 2026
    54cee4f
  10. added 2 commits that reference this issue on Aug 20, 2026
    4a58218
    ce3a06d
  11. 39 remaining items

  12. added a commit that references this issue on Sep 23, 2026
    4101fa5
  13. added 2 commits that reference this issue on Sep 23, 2026
    e035785
    1c82610
  14. added a commit that references this issue on Sep 27, 2026
    9faeed1
  15. added a commit that references this issue on Sep 28, 2026
    8320fad
  16. added 3 commits that reference this issue on Sep 29, 2026
    4f576d5
    8bef18f
    fce4910
  17. added a commit that references this issue on Sep 30, 2026
    28c6035
  18. added a commit that references this issue on Oct 1, 2026
    f112c67
  19. added a commit that references this issue on Oct 1, 2026
    fadd0c7
  20. added a commit that references this issue on Oct 2, 2026
    d6169d3
  21. added a commit that references this issue on Oct 8, 2026
    0b27f0e
  22. added a commit that references this issue on Oct 17, 2026
    f3c4229
  23. added a commit that references this issue on Oct 19, 2026
    d7ec086
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

core-infrausability

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions