Repository navigation
Report source lines for missing replay variations - #1794
Conversation
Confidence Score: 5/5
[Low impact] The PR appears safe to merge; no new actionable issues were found. SummaryThe loader now reports the JSONL filename and every affected physical line for a partially recorded variation.
Reviews (2) · Last reviewed commit: "Refine replay errors and remove duplicat..." · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummary
The follow-ups from the earlier review are all in:
I have no new findings. Test Coverage and CI CostWhen 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
The reported line numbers matched the file in every case. VerdictShip it |
Signed-off-by: Qian Lin <[email protected]>
Signed-off-by: Qian Lin <[email protected]>
07e215d to
88599dc
Compare
Pull request was converted to draft
) 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]>
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
variationsfield 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
mainand 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: