Skip to content

Report source lines for missing replay variations - #1794

Merged
qianl-nv merged 2 commits into
mainfrom
qianl/fix/replay-missing-variation-context
Dec 2, 2026
Merged

qianl-nv merged 2 commits into
mainfrom
qianl/fix/replay-missing-variation-context

Conversation

@qianl-nv

@qianl-nv qianl-nv commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Report the JSONL filename and all affected line numbers when a recorded variation is missing from some episode records.

Fixes https://nvbugspro.nvidia.com/bug/7140973

Why this change?

A missing variations field currently reports only that a build-time variation is absent from some records. Finding the bad rows in a large or merged recording requires inspecting every file.

This change targets main and is independent of the replay preflight and sampler changes in #1792.

What changes?

Check partial presence for both build-time and run-time variations in the loader, and remove the redundant presence check from replay validation. Use "Build-time variation" for known build-time keys and "Recorded variation" for other keys, whose phase the loader cannot determine.

When validation fails, scan the source lines to report every missing row for the offending variation, accounting for blank lines. Use strict row matching so a changed row count fails instead of silently truncating the diagnostic. Keep the JSONL parser and its returned records unchanged.

Variations omitted from every record can still be sampled live, except that geometry-changing build-time variations require recorded values when replaying recorded placements. Update the placement-test fixture to include its variation in both records, and remove duplicate tests.

For example:

Build-time variation 'light.color' is missing from some episode records: outputs/rebuild1.jsonl, lines 2, 37

@qianl-nv
qianl-nv marked this pull request as ready for review December 1, 2026 05:28
@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Low impact] The PR appears safe to merge; no new actionable issues were found.

Summary

The loader now reports the JSONL filename and every affected physical line for a partially recorded variation.

  • Replay loading reports the source lines missing a recorded variation.

Reviews (2) · Last reviewed commit: "Refine replay errors and remove duplicat..." · Reviewed by Greptile

@arena-review-bot

arena-review-bot Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

load_rebuild_variation_record now rejects any recorded variation key that appears in only some rows, for build-time and run-time keys alike. The error names the JSONL file and every row missing the key. Replay accepts and rejects the same files as before. The difference is that the error now names the rows to fix.

The follow-ups from the earlier review are all in:

  • Keys whose phase the loader doesn't know are now labeled "Recorded".
  • The check in _validate_variation_replay that could no longer fire is gone, along with its test.
  • zip(..., strict=True) now guards the line mapping.
  • The duplicate runner test is dropped.

I have no new findings.

Test Coverage and CI Cost

When I checked, the Arena image build for this head was still queued and there were no test results yet. Pre-commit passed. Outside pytest, I ran load_rebuild_variation_record on its own against these files:

  • blank and whitespace-only lines
  • CRLF and bare-CR line endings
  • a 2,000-row file where every other row lacks the key

The reported line numbers matched the file in every case.

Verdict

Ship it

@qianl-nv
qianl-nv force-pushed the qianl/fix/replay-missing-variation-context branch from 07e215d to 88599dc Compare December 2, 2026 01:56
@qianl-nv
qianl-nv changed the base branch from qianl/fix/validate-variation-replay to main December 2, 2026 01:57
@qianl-nv
qianl-nv enabled auto-merge (squash) December 2, 2026 02:09
@qianl-nv
qianl-nv marked this pull request as draft December 2, 2026 03:49
auto-merge was automatically disabled December 2, 2026 03:49

Pull request was converted to draft

@qianl-nv
qianl-nv marked this pull request as ready for review December 2, 2026 03:49
@qianl-nv
qianl-nv enabled auto-merge (squash) December 2, 2026 04:00
@qianl-nv
qianl-nv merged commit f5951ef into main Dec 2, 2026
21 checks passed
@qianl-nv
qianl-nv deleted the qianl/fix/replay-missing-variation-context branch December 2, 2026 05:07
qianl-nv added a commit that referenced this pull request Dec 3, 2026
)

Backport #1794 to `release/0.4.0` so partially recorded variations
report the JSONL filename and all affected line numbers.

Cherry-pick merged commit `f5951ef9e398f7501cd2b0f0939d198a739236ef`
unchanged, including the loader validation, removal of the redundant
replay check, and regression tests. The patch applies without conflicts
or release-specific adaptations.

Fixes https://nvbugspro.nvidia.com/bug/7140973 for release 0.4.0.

Signed-off-by: Qian Lin <[email protected]>
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.

2 participants