Repository navigation
feat(cli): add gym job resubmit - #5444
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. |
ff317d6 to
21b246c
Compare
21b246c to
bc55760
Compare
a8c2133 to
b90f9f7
Compare
bb20908 to
89da248
Compare
|
/ok to test 89da248 |
|
/review |
89da248 to
c907c1a
Compare
|
/ok to test c907c1a |
|
/ok to test 5e286b1 |
|
/review |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
Both prior findings are fixed. The resubmit test module no longer contains the calendar-dependent removal assertion. The job-management documentation now distinguishes built-in resume from custom-command reruns and makes chain-budget reset conditional on configured auto-resume.
I also checked recovery compatibility and the affected regression assertions. eval resubmit still routes recovery through the planner without a deprecation warning. The operator guidance now excludes both plain resubmit names from recovery workflows.
No remaining eligible findings. This follow-up covered the earlier findings and identifiable subsequent changes, not a fresh whole-PR review. The previously reviewed tree was unavailable, so I could not independently compare the full inter-review delta. This was static inspection; I did not run tests or Slurm jobs.
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
AdamRajfer
left a comment
There was a problem hiding this comment.
🤖 Adam’s AI assistant
Adam's assistant reviewed this for him. Verdict: the temporary glue is fine, with one note.
gym eval resubmit is not deprecated, and its plain path still prints only the job id on stdout, so its callers see no change. --recover and --inspect still go through the planner. gym job resubmit is the plain resubmit without recovery, which is why the docs and the skill rule say not to use it in place of --recover.
Note: the summary in gym job --help should say the same. Something like "plain resubmit, no recovery, use gym eval resubmit --recover --inspect when a run needs a decision", because that is where people look first.
5e286b1 to
58419f6
Compare
58419f6 to
e9160a8
Compare
|
/ok to test d671c83 |
|
@AdamRajfer thanks, good call, the help is the first place people look. One small extra while I was in there: |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44497337699 |
d671c83 to
c5e6dc9
Compare
c5e6dc9 to
e1bdb2b
Compare
gym job resubmit queues a benchmark of a submitted run again and prints the new job id. It runs the plain resubmit that gym eval resubmit shares with it; gym eval resubmit keeps its recovery options (--recover, --inspect and the rest) and is not deprecated. Signed-off-by: Tomasz Grzegorzek <[email protected]>
…cide Signed-off-by: Tomasz Grzegorzek <[email protected]>
…nspect_recovery experimental The one-line help of gym job resubmit now says it is the plain resubmit with no recovery and points at gym eval resubmit --recover. inspect_recovery, which gym eval resubmit --inspect calls, was the only entry point behind the two commands that did not warn that it is experimental. Signed-off-by: Tomasz Grzegorzek <[email protected]>
e1bdb2b to
16dee6b
Compare
Summary
Stacked on #5357 (which is stacked on #5345, #5344 and #5295): this branch is based on
prokotg/gym-job-hint, so the diff shows only this PR. I retarget it as the PRs below it merge. The whole stack was rebased ontomainafter #6228 (recovery moved tonemo_gym/eval/recovery/, the Slurm and Kubernetes executors split into packages).gym job resubmit ID BENCHqueues a benchmark of a submitted run again and prints the new job id, exactly what the plaingym eval resubmit ID BENCHprints. It has no recovery options._queue_againhelper, which calls the existingsubmit.resubmit. Slurm has beenResubmittablesince feat(orchestration): add job-management interfaces and types #5295, so no executor changes.gym eval resubmitis unchanged. It keeps its recovery options (--recover,--inspect,--repin,--max-walltimeand the rest) and is not deprecated. Moving recovery and reverify undergym jobneeds its own care and is a follow-up;gym eval resubmitis deprecated only after that.gym job resubmitand says thatgym eval resubmitalso does recovery.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, the plain resubmit;gym eval resubmitkeeps recovery.Validation
gym job resubmitprints the new job id; it offers no recovery options whilegym eval resubmitstill offers--recover,--inspect,--repinand--max-walltime; it refuses a stray Hydra override and lets the verbose one through; and it reports an executor that cannot resubmit (Kubernetes) with the usual message and exit code 1.gym eval resubmittests are unchanged and pass.gym job, CLI, moved-paths, import-linter and boundary tests: 4502 passed, 131 failed. Every failure is a macOS or stale-environment failure that also happens on cleanmain: the recovery and orchestration ones match the baseline, and the 35 intests/unit_tests/cliare identical on a cleanmainworktree.pre-commit run --all-filespasses.Known gaps
resubmititself is unchanged, and its executor tests are untouched.gym job resubmitprints only the job id, asgym eval resubmitdoes, so scripts that read it keep working.Rollout evidence
N/A: no agent, verifier or model behavior is touched, and the output of both commands is unchanged.