Skip to content

Pin GDPVal evaluator launcher to 0.2.6 - #2188

Open
Edwardf0t1 wants to merge 1 commit into
mainfrom
agent/fix-gdpval-launcher-version
Open

Pin GDPVal evaluator launcher to 0.2.6#2188
Edwardf0t1 wants to merge 1 commit into
mainfrom
agent/fix-gdpval-launcher-version

Conversation

@Edwardf0t1

@Edwardf0t1 Edwardf0t1 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Type of change: Bug fix

Pins GDPVal evaluation commands to nemo-evaluator-launcher==0.2.6 through a
dedicated uvx wrapper and updates the GDPVal skill, recipe, example, and reference
documentation to use it.

Older launchers generate a runtime re-export for NEL_INVOCATION_ID without first
assigning the launcher-created invocation ID. The resulting Slurm script exits under
set -u with NEL_INVOCATION_ID: unbound variable before the evaluation client
starts. Launcher 0.2.6 writes the stable invocation ID into the script before the
re-export, including for walltime-resume chains.

Usage

"$SKILL_DIR/scripts/nel-gdpval.sh" --version
"$SKILL_DIR/scripts/nel-gdpval.sh" run --config gdpval.yaml --dry-run
"$SKILL_DIR/scripts/nel-gdpval.sh" run --config gdpval.yaml

Testing

  • bash -n plugins/modelopt/skills/evaluation/scripts/nel-gdpval.sh
  • Verified the wrapper reports nemo_evaluator_launcher: 0.2.6.
  • Ran a real GDPVal dry-run and verified the generated script assigns
    NEL_INVOCATION_ID="<invocation-id>" before the runtime re-export.
  • Ran pre-commit on all five changed files.

Before your PR is "Ready for review"

Make sure you read and follow Contributor guidelines
and your commits are signed (git commit -s -S).

Make sure you read and follow the Security Best Practices.

  • Is this change backward compatible?: ✅
  • If you copied code from any other sources or added a new PIP dependency, did you
    follow guidance in CONTRIBUTING.md: N/A
  • Did you write any new necessary tests?: N/A — shell syntax, exact launcher
    version, generated Slurm ordering, and pre-commit were validated.
  • Did you update Changelog?: N/A
  • Did you get Claude approval on this PR?: N/A

Additional Information

The fix preserves a stable GDPVal cache namespace across Slurm walltime resumes;
using SLURM_JOB_ID would not.

Summary by CodeRabbit

  • New Features

    • Added a GDPVal launcher wrapper that uses the required launcher version and forwards commands consistently.
    • Added help output and environment validation for the launcher.
    • Added dry-run and execution guidance for GDPVal evaluations.
  • Documentation

    • Documented stable runtime invocation IDs, resumed-run behavior, version requirements, and known sample-limitations.
    • Updated evaluation examples and task instructions with the new launch procedure.

Signed-off-by: Zhiyu Cheng <zhiyuc@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Aug 13, 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.

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 95623845-509e-4f08-b606-579f3fe4c631

📥 Commits

Reviewing files that changed from the base of the PR and between 686da8d and eead454.

📒 Files selected for processing (5)
  • plugins/modelopt/skills/evaluation/SKILL.md
  • plugins/modelopt/skills/evaluation/recipes/examples/gym_gdpval/example_gym_gdpval.yaml
  • plugins/modelopt/skills/evaluation/recipes/tasks/aa_gym/gdpval.md
  • plugins/modelopt/skills/evaluation/references/gym-gdpval.md
  • plugins/modelopt/skills/evaluation/scripts/nel-gdpval.sh

📝 Walkthrough

Walkthrough

GDPVal evaluation now uses a strict nel-gdpval.sh wrapper that pins launcher version 0.2.6. Skill instructions, task guidance, reference documentation, and the example recipe describe the wrapper and stable NEL_INVOCATION_ID behavior.

Changes

GDPVal launcher integration

Layer / File(s) Summary
GDPVal launcher wrapper
plugins/modelopt/skills/evaluation/scripts/nel-gdpval.sh
Adds a strict wrapper that checks uvx, pins nemo-evaluator-launcher[all] to version 0.2.6, supports help output, and forwards arguments to nel with Python 3.10.
GDPVal workflow documentation
plugins/modelopt/skills/evaluation/SKILL.md, plugins/modelopt/skills/evaluation/recipes/tasks/aa_gym/gdpval.md, plugins/modelopt/skills/evaluation/recipes/examples/gym_gdpval/example_gym_gdpval.yaml, plugins/modelopt/skills/evaluation/references/gym-gdpval.md
Updates GDPVal commands and examples to use the wrapper. Documents launcher requirements and stable NEL_INVOCATION_ID assignment across resumed runs.

Estimated code review effort: 2 (Simple) | ~10 minutes

Mergeability Score: ⚪ Minimal · up to eead4

This change pins GDPVal evaluations to the corrected launcher version and updates the related usage documentation; no actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: aanoosheh

🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: pinning the GDPVal evaluator launcher to version 0.2.6.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Security Anti-Patterns ✅ Passed The PR changes only Markdown, YAML, and Bash. No Python files or dependency manifests changed, and added lines contain none of the listed security anti-patterns.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/fix-gdpval-launcher-version

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.09%. Comparing base (71b3d88) to head (eead454).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2188   +/-   ##
=======================================
  Coverage   67.09%   67.09%           
=======================================
  Files         522      522           
  Lines       60461    60461           
=======================================
  Hits        40567    40567           
  Misses      19894    19894           
Flag Coverage Δ
unit 55.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Edwardf0t1
Edwardf0t1 marked this pull request as ready for review August 13, 2026 19:53
@Edwardf0t1
Edwardf0t1 requested a review from a team as a code owner August 13, 2026 19:53

@cjluo-nv cjluo-nv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Bot review (gpt-5.6-sol) — DM the bot to share feedback.

The GDPVal failure is clear: launcher versions older than 0.2.6 can generate a Slurm script that re-exports NEL_INVOCATION_ID before assigning it. The proposed solution is a dedicated uvx launcher wrapper. Existing alternatives include extending/generalizing the repository's existing scripts/nel-next.sh isolation wrapper, using a project/skill-level uv lock and uv run, or retaining the normal launcher with an exact-version preflight. The PR body explains why 0.2.6 is required, but does not compare the dedicated second wrapper with those alternatives, so the required design gate is not yet satisfied.

There is also a correctness hole in the pin itself: an ambient or sourced NEL_GDPVAL_SPEC silently bypasses 0.2.6, including selecting the older launcher this change is meant to prevent. Please make the required version non-overridable (or strictly validate the override) and add an automated wrapper test that stubs uvx and verifies the exact install spec even with a conflicting environment. The new file's NVIDIA Apache-2.0 header matches LICENSE_HEADER, so it does not require separate licensing escalation.

# launchers can instead fail under `set -u` before the evaluation client starts.
set -euo pipefail

NEL_GDPVAL_SPEC="${NEL_GDPVAL_SPEC:-nemo-evaluator-launcher[all]==0.2.6}"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Bot comment.

The wrapper and docs promise that GDPVal is pinned to 0.2.6 for correctness, but this ambient-env override silently defeats that guarantee. In particular, set -a; source .env is part of the documented run flow, so a stale NEL_GDPVAL_SPEC can select exactly the older launcher that produces the unbound-variable failure. Unlike the documented escape hatch in nel-next.sh, there does not seem to be a valid compatibility path here because the generated-script behavior specifically requires 0.2.6. Please hard-code the spec (ideally readonly), or reject anything that is not the exact required release. Please also cover this with a shell test using a stub uvx, including a conflicting ambient value, since the exact pin is the core behavior of this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants