Skip to content

fix(cli): report cleanly unresolved config interpolations; fix the env resolve docs example - #2310

Merged
e-dobrowolska merged 4 commits into
mainfrom
edobrowolska/config_error_handling
Aug 4, 2026
Merged

fix(cli): report cleanly unresolved config interpolations; fix the env resolve docs example#2310
e-dobrowolska merged 4 commits into
mainfrom
edobrowolska/config_error_handling

Conversation

@e-dobrowolska

Copy link
Copy Markdown
Contributor

Fix defects E and G. gym env validate promised "a clean message, no traceback" but dumped omegaconf's stack trace when an interpolation couldn't be resolved; adds ConfigInterpolationError and translates the omegaconf exception at the parsing boundary. Also fixes the gym env resolve docs example, which needed three ++policy_* keys it never mentioned - unlike validate, resolve substitutes no dummy model.

Signed-off-by: Ewa Dobrowolska <edobrowolska@nvidia.com>
Signed-off-by: Ewa Dobrowolska <edobrowolska@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

🌿 Preview your docs: https://nvidia-preview-edobrowolska-config-error-handling.docs.buildwithfern.com/nemo/gym

Here are the markdown pages you've updated:

@kajalj22 kajalj22 added the r0.5.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge. label Aug 4, 2026
@e-dobrowolska
e-dobrowolska merged commit 7f724e1 into main Aug 4, 2026
17 checks passed
@e-dobrowolska
e-dobrowolska deleted the edobrowolska/config_error_handling branch August 4, 2026 23:20
kajalj22 added a commit that referenced this pull request Aug 5, 2026
…he env resolve docs example (2310)` into `r0.5.0` (#2336)

beep boop [🤖]: Hi @e-dobrowolska 👋,

    we've cherry picked #2310 into  for you! 🚀

    Please review and approve this cherry pick by your convenience!

Signed-off-by: Ewa Dobrowolska <edobrowolska@nvidia.com>
Signed-off-by: NeMo Bot <nemo-bot@nvidia.com>
Co-authored-by: Ewa Dobrowolska <117774842+e-dobrowolska@users.noreply.github.com>
Co-authored-by: kajalj22 <kajalj@nvidia.com>
OlegSudakov pushed a commit to OlegSudakov/Gym that referenced this pull request Aug 7, 2026
…v resolve docs example (NVIDIA-NeMo#2310)

Fix defects E and G. `gym env validate` promised "a clean message, no
traceback" but dumped omegaconf's stack trace when an interpolation
couldn't be resolved; adds `ConfigInterpolationError` and translates the
omegaconf exception at the parsing boundary. Also fixes the `gym env
resolve` docs example, which needed three `++policy_*` keys it never
mentioned - unlike `validate`, `resolve` substitutes no dummy model.

---------

Signed-off-by: Ewa Dobrowolska <edobrowolska@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r0.5.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants