Skip to content

test(sc): write JSONL in the advantage-stage test controller - #5290

Merged
yuki-97 merged 2 commits into
mainfrom
zhiyul/fix/advantage-stage-test-json-writer
Nov 18, 2026
Merged

yuki-97 merged 2 commits into
mainfrom
zhiyul/fix/advantage-stage-test-json-writer

Conversation

@ZhiyuLi-Nvidia

Copy link
Copy Markdown
Contributor

What

_controller() in tests/unit/single_controller/test_advantage_stage.py built AdvantageStageConfig without a debug_writer. Since #4845 the default target is parquet, so the computers wrote .parquet chunks. The stub controller still merges JSONL parts with JsonDebugWriter, so it failed with:

RuntimeError: Training dump part file(s) ['step-00000001-shard-0-....parquet'] not found; the advantage pool must share this filesystem with the controller

This fails L0_Unit_Tests_Other on main. The fix sets debug_writer=DebugWriterConfig(target="json") in the fixture, as the other config in this file already does. Test-only; no product code changes.

Evidence

  • Before, on clean origin/main: 4 failed, 54 passed (..._complete_however_the_stage_was_split[0], [3], ..._jagged_columns_without_padding[grpo], [opd]).
  • After: tests/unit/single_controller/test_advantage_stage.py: 58 passed.

🤖 Generated with Claude Code

_controller() built AdvantageStageConfig without a debug_writer, so the
computers took the Parquet default (#4845) while the stub controller merges
JSONL parts with JsonDebugWriter. The pool wrote .parquet chunks, and the
controller failed with 'Training dump part file(s) ... not found'. Set
debug_writer to the json target, as the other config in this file does.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Zhiyu Li <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 18, 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.

@ZhiyuLi-Nvidia ZhiyuLi-Nvidia added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Nov 18, 2026
@ZhiyuLi-Nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 2c6b8e0

yuki-97
yuki-97 previously approved these changes Nov 18, 2026
@yuki-97
yuki-97 enabled auto-merge (squash) November 18, 2026 16:01
Same cause as the previous commit: the default debug writer is Parquet since
#4845, but these tests install a JsonDebugWriter or compare with its output.
CI runs pytest with -x, so they were hidden behind the first failure.

- test_debug_writer: the background-vs-sync comparison builds its writer with
  the json target.
- test_single_controller_actor: the stage-config helper sets the json target,
  so the stage writes the JSONL that the installed JsonDebugWriter merges.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Zhiyu Li <[email protected]>
@ZhiyuLi-Nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test cac41a9

@yuki-97
yuki-97 merged commit 4580fe0 into main Nov 18, 2026
95 checks passed
@yuki-97
yuki-97 deleted the zhiyul/fix/advantage-stage-test-json-writer branch November 18, 2026 20:15
yfw added a commit that referenced this pull request Nov 18, 2026
Brings in #5290 (test-only, no overlap with this PR).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Yi-Fu Wu <[email protected]>
zyzhou5 added a commit to zyzhou5/RL that referenced this pull request Nov 19, 2026
…ting

Pick up NVIDIA-NeMo#5290, which fixes the advantage-stage training-dump test that
fails on main since NVIDIA-NeMo#4845. No conflicts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Zeyu Zhou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants