Repository navigation
build: declare CODE_GEN_SANDBOX_IMAGE as a Dockerfile build arg - #5258
Merged
Merged
Conversation
The release stage runs examples/nemo_gym/prefetch_venvs.py when NEMO_GYM_PREFETCH_CONFIGS is set. That dry run starts every Gym server in those configs, and code_gen now rejects a null sandbox image, so an image build that prefetches code_gen fails unless CODE_GEN_SANDBOX_IMAGE is in the build environment. Docker only exposes a build arg to RUN steps that the Dockerfile declares, so declare it with no default. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Kajal Jain <[email protected]>
Contributor
Author
|
/ok to test 6ebc9c0 |
Contributor
Author
|
/review-approve |
kajalj22
enabled auto-merge (squash)
November 17, 2026 01:14
svcnvidia-nemo-ci
approved these changes
Nov 17, 2026
svcnvidia-nemo-ci
left a comment
Contributor
There was a problem hiding this comment.
LGTM. No qualifying findings in the Dockerfile change.
Static inspection covered the argument's stage scope and its propagation through the prefetch helper. The reusable builder already forwards arbitrary build arguments. I did not run builds, tests or lint, and CI results were not supplied. The mounted Gym submodule is empty, so I could not independently verify its resolver or null-image validator.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
kajalj22
disabled auto-merge
November 18, 2026 00:18
jthomson04
added a commit
to jthomson04/RL
that referenced
this pull request
Nov 18, 2026
…Q clear fix) into jthomson04/dynamo-1.7 Brings in NVIDIA-NeMo#5258, NVIDIA-NeMo#4845, NVIDIA-NeMo#5141 and NVIDIA-NeMo#5201. Git merged the six files both sides changed without a conflict. pyproject.toml, uv.lock and the submodule pins are unchanged. Co-Authored-By: Claude Fable 5.2 <[email protected]> Signed-off-by: jthomson04 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Declares
CODE_GEN_SANDBOX_IMAGEas a build arg in thereleasestage ofdocker/Dockerfile, next toNEMO_GYM_PREFETCH_CONFIGS.Why
When
NEMO_GYM_PREFETCH_CONFIGSis set, the release stage runs the Gym prefetch dry run, which starts every server in those configs. Gym'scode_genserver now rejects a nullsandbox_config.image:code_genreads the image from${oc.env:CODE_GEN_SANDBOX_IMAGE,null}. Docker only exposes a build arg toRUNsteps when the Dockerfile declares it, so without this line the image builder cannot hand the value in and any gym image that prefetchescode_genfails to build.No default on purpose: a build that does not pass the arg behaves exactly as before.
Test plan
--build-arg NEMO_GYM_PREFETCH_CONFIGS=... --build-arg CODE_GEN_SANDBOX_IMAGE=<image>gets past thecode_gendry run.🤖 Generated with Claude Code