Skip to content

feat(cli): tell the user what to type after gym eval submit - #5357

Merged
marta-sd merged 2 commits into
mainfrom
prokotg/gym-job-hint
Nov 19, 2026
Merged

marta-sd merged 2 commits into
mainfrom
prokotg/gym-job-hint

Conversation

@prokotg

@prokotg prokotg commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Stacked on #5345 (which is stacked on #5344 and #5295): this branch is based on prokotg/gym-job-cancel-logs, so the diff shows only this PR. I retarget it as the PRs below it merge.

  • The human output of gym eval submit now ends with the submission's id, the command to look at it, and a pointer to the rest. Before, the id appeared only as the last part of the run-directory path, with nothing saying that gym job status takes it.
  • It is left out of --json (which prints only the record), when no benchmark could be submitted, and for an executor gym job status cannot look at (Kubernetes): submit.is_inspectable asks whether the executor can say what is happening to its jobs.
  • It is printed with a plain print, not rich, because rich wraps a long id at 80 columns when stdout is not a terminal.
  • The quickstart and the orchestration index show the new lines, and the Job Management page mentions gym job --help.

PR plan

Five PRs, Slurm only. Goal: status, cancel and logs for a submitted run without going to the scheduler.

  1. feat(orchestration): add job-management interfaces and types #5295: the types, the capability interfaces, the operations declared, and the submit-time log plan.
  2. feat(cli): add gym job list, status and info #5344: the logic of status and info, Slurm Inspectable, gym job list, status, info.
  3. feat(cli): add gym job cancel and logs #5345: the logic of cancel, cancel_submission and logs, Slurm Terminable and LogReadable, gym job cancel and logs.
  4. This PR: gym eval submit tells you what to type next.
  5. feat(cli): add gym job resubmit #5444: gym job resubmit; gym eval resubmit stays as a deprecated alias until 2026-11-23, with a test that fails then.

What it prints

$ gym eval submit -c submit.yaml
Run directory: /lustre/my-project/evals/gym-job-20261029T093012Z-4f1a9c
submitted gpqa → Slurm job 1234567
Submission: gym-job-20261029T093012Z-4f1a9c
Check on it: gym job status gym-job-20261029T093012Z-4f1a9c
All job commands: gym job --help

Validation

  • 5 new tests in test_cli_eval_submit.py: the last three lines of the human output are exactly the ones above; the commands the hint names exist (the real parser accepts job status <id> and job --help exits 0 with the group's usage), so a rename cannot leave a stale hint; none of it is in --json output; none when every benchmark failed; none for a Kubernetes record. Forcing is_inspectable to return True fails the Kubernetes test, then I restored it.
  • Submit, job CLI, executor and Kubernetes tests: 170 passed.
  • Full unit suite: 13450 passed, 50 failed. 49 also fail on clean origin/main (sandbox, docker compose, harbor, super35 launcher, CI-environment, telemetry, the opensandbox Slurm-eval tests, and the sed tests above). The 50th is test_harbor_package_store ... test_short_http_reply_is_a_package_store_error, an intermittent test that runs its own HTTP server and passed in other full runs of this stack. None touch eval submit.
  • ruff and pre-commit pass.

Known gaps

  • Nothing is printed for --dry-run or --resolve-only, because nothing is submitted.
  • Kubernetes submissions get no hint until its executor supports the job commands.

Rollout evidence

N/A: no agent, verifier or model behavior is touched, and --json output is unchanged.

@prokotg prokotg added feature New capabilities, enhancements, or enablement work area:orchestration Job submission, deployment, services, and lifecycle management area:cli Command-line interfaces and user-facing command behavior labels Oct 30, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 30, 2026

Copy link
Copy Markdown

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.

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP

LGTM — no concerns found.

Reviewed all six changed files and traced the submission hint through CLI branching, executor capabilities, record lookup, command parsing, and documentation. JSON output and existing failure handling remain intact.

Static review only; tests were inspected, not executed.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

marta-sd
marta-sd previously approved these changes Nov 2, 2026

@marta-sd marta-sd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with one minor suggestion

Comment thread nemo_gym/orchestration/submit.py Resolved
@prokotg

prokotg commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test cdaa323

@prokotg

prokotg commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test c1cfc78

@prokotg
prokotg added this pull request to the merge queue Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44494139044

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue because a pull request earlier in the stack was removed Nov 19, 2026
@prokotg
prokotg added this pull request to the merge queue Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44497336419

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue because a pull request earlier in the stack was removed Nov 19, 2026
@prokotg
prokotg force-pushed the prokotg/gym-job-hint branch from c1cfc78 to c5e0684 Compare November 19, 2026 09:50
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 19, 2026 09:51
Base automatically changed from prokotg/gym-job-cancel-logs to main November 19, 2026 09:57
…al submit

The human output of gym eval submit now ends with the submission's id, the
gym job status command for it, and a pointer to gym job --help. It is left
out of --json, which prints only the record, when no benchmark was
submitted, and for an executor the job commands cannot look at.

Signed-off-by: Tomasz Grzegorzek <[email protected]>
@marta-sd
marta-sd force-pushed the prokotg/gym-job-hint branch from c5e0684 to bc01c27 Compare November 19, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Command-line interfaces and user-facing command behavior area:orchestration Job submission, deployment, services, and lifecycle management feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer risk:mid Autobot PR risk: mid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants