Repository navigation
feat(cli): tell the user what to type after gym eval submit - #5357
Conversation
|
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. |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
Approving with one minor suggestion
ce18bb4 to
2118ac3
Compare
634b13c to
cdaa323
Compare
|
/ok to test cdaa323 |
cdaa323 to
76491b2
Compare
76491b2 to
52578c6
Compare
52578c6 to
c1cfc78
Compare
|
/ok to test c1cfc78 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44494139044 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44497336419 |
c1cfc78 to
c5e0684
Compare
…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]>
Signed-off-by: Tomasz Grzegorzek <[email protected]>
c5e0684 to
bc01c27
Compare
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.gym eval submitnow 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 thatgym job statustakes it.--json(which prints only the record), when no benchmark could be submitted, and for an executorgym job statuscannot look at (Kubernetes):submit.is_inspectableasks whether the executor can say what is happening to its jobs.print, not rich, because rich wraps a long id at 80 columns when stdout is not a terminal.gym job --help.PR plan
Five PRs, Slurm only. Goal: status, cancel and logs for a submitted run without going to the scheduler.
statusandinfo, SlurmInspectable,gym job list,status,info.cancel,cancel_submissionandlogs, SlurmTerminableandLogReadable,gym job cancelandlogs.gym eval submittells you what to type next.gym job resubmit;gym eval resubmitstays as a deprecated alias until 2026-11-23, with a test that fails then.What it prints
Validation
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 acceptsjob status <id>andjob --helpexits 0 with the group's usage), so a rename cannot leave a stale hint; none of it is in--jsonoutput; none when every benchmark failed; none for a Kubernetes record. Forcingis_inspectableto returnTruefails the Kubernetes test, then I restored it.origin/main(sandbox, docker compose, harbor,super35launcher, CI-environment, telemetry, theopensandboxSlurm-eval tests, and thesedtests above). The 50th istest_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 toucheval submit.ruffand pre-commit pass.Known gaps
--dry-runor--resolve-only, because nothing is submitted.Rollout evidence
N/A: no agent, verifier or model behavior is touched, and
--jsonoutput is unchanged.