Repository navigation
Fix 3.1 QA bugs for video extra, startup warnings and Rerun docs - #9360
matthewtrepte wants to merge 6 commits into
Conversation
Signed-off-by: mtrepte <mtrepte@nvidia.com>
…e console Signed-off-by: mtrepte <mtrepte@nvidia.com>
Signed-off-by: mtrepte <mtrepte@nvidia.com>
Signed-off-by: mtrepte <mtrepte@nvidia.com>
Confidence Score: 4/5
[Medium impact] The changes affect video startup, startup messages, and Rerun guidance. The PR appears safe to merge, with a non-blocking fix needed to keep helper tests independent of optional recording packages. Findings
SummaryThe PR improves recording setup errors and keeps startup deprecation warnings visible.
One non-blocking issue remains: existing helper tests now require the optional recording package. Acknowledged scope from Reviews (1) · Last reviewed commit: "Note the Rerun corner distortion as a kn..." · Reviewed by Greptile |
| if importlib.util.find_spec("moviepy") is None: | ||
| raise ImportError(VIDEO_EXTRA_MESSAGE) |
There was a problem hiding this comment.
Helper tests require optional packages
The new check makes existing cases in test_apply_video_recording.py fail with ImportError when moviepy is absent, even though those tests only check configuration and never record video. The test extra does not include moviepy.
Mock the successful package check in those tests and add a separate case for the missing-package error.
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Design and architecture (1), Compatibility and deprecation (2), Implementation (2), Style consistency (3), Test quality (1). Other reviewed categories look good.
- PR description: The title and main scope match the diff and reported validation; narrow the claim that recording examples include the video extra, since commands remain unchanged, and retain the explicit TTY validation limitation.
- Design and architecture: Warning replay bypasses stderr handling and discards category and caller location; retain warning details and replay through the restored warning mechanism.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: Breaking changes: VideoRecorder replaces ModuleNotFoundError with ImportError without a deprecation bridge; let the original exception propagate.
- Implementation: The top-level moviepy probe does not validate ImageSequenceClip, allowing its import failure after launch; preflight the module the recorder actually imports.
- Style consistency: The new installation note conflicts with recording commands that still omit --extra video; update the remaining commands.
- Test quality: The regression’s UserWarning is intercepted before reaching the screen, and catch_warnings masks restoration failures; emit the warning directly and assert restoration before leaving catch_warnings.
Significant concerns. Posted 9 inline findings.
Automated review; human maintainers own approval decisions.
| .. note:: | ||
|
|
||
| Recording needs ``moviepy``, which is in the optional ``video`` extra. Without it, ``--video`` stops at startup | ||
| with an error that names the extra. With uv, add ``--extra video`` to the command as shown; otherwise install it |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Update the remaining recording commands
This note tells uv users to add --extra video, but the tutorial command at line 175 and the --video recipe at line 237 still omit it. Update both commands.
|
|
||
| The Rerun visualizer (``--viz rerun``, ``RerunBackendCfg``) is deprecated in Isaac Lab 3.2 and will be removed in | ||
| Isaac Lab 3.3. Creating it emits a ``FutureWarning``. Switch to the Viser visualizer, which is also web-based and | ||
| The Rerun visualizer (``--viz rerun``, ``RerunBackendCfg``) is deprecated in Isaac Lab 3.1 and will be removed in |
There was a problem hiding this comment.
🟡 Warning · Compatibility — Align the Rerun deprecation dates
This promises Rerun removal in 3.2, while the same page says RerunVisualizerCfg is first deprecated in 3.2. Align the schedules so its legacy configuration has a deprecation release.
| else: | ||
| # the spool is dropped on success, but a deprecation must not go unseen | ||
| for text in self._deprecations: | ||
| self._write(f"[WARNING]: {text}\n") |
There was a problem hiding this comment.
🟡 Warning · Design Architecture — Preserve warning routing and context
Writing message text to stdout drops warning category and caller location and bypasses stderr warning handling. Retain warning details and emit them through the restored warning mechanism.
| """Remember deprecation warnings raised while output is spooled, so a successful start can still show them.""" | ||
| original = warnings.showwarning | ||
|
|
||
| def showwarning(message, category, filename, lineno, file=None, line=None): |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Annotate the warning callback
The new callback omits all parameter and return annotations, contrary to the function-signature guidance. Annotate its warning arguments, optional file and source line, and None return.
|
|
||
| def showwarning(message, category, filename, lineno, file=None, line=None): | ||
| if file is None and issubclass(category, (FutureWarning, DeprecationWarning)): | ||
| text = str(message) |
There was a problem hiding this comment.
🟡 Warning · Implementation — Do not merge distinct warnings
Warnings from different locations with identical messages collapse into one entry. Preserve each warning that Python emits rather than deduplicating by message text.
| from moviepy.video.io.ImageSequenceClip import ImageSequenceClip | ||
| try: | ||
| from moviepy.video.io.ImageSequenceClip import ImageSequenceClip | ||
| except ImportError as exc: |
There was a problem hiding this comment.
🟡 Warning · Compatibility — Preserve the original import failure
Wrapping this import changes ModuleNotFoundError to ImportError and can mislabel failures inside moviepy. Let the original exception propagate; keep installation guidance at the entrypoint and in documentation.
| with screen: | ||
| warnings.warn("old thing is deprecated", FutureWarning) | ||
| warnings.warn("old thing is deprecated", FutureWarning) # repeats are printed once | ||
| with pytest.warns(UserWarning): |
There was a problem hiding this comment.
🟡 Warning · Test Quality — Exercise the negative assertions
pytest.warns intercepts UserWarning before the screen sees it; catch_warnings restores showwarning before the final identity assertion. Emit UserWarning without interception and check restoration inside catch_warnings.
| """ | ||
| if not getattr(args_cli, "video", None): | ||
| return | ||
| # Fail before the simulation launches rather than deep inside environment creation. |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Remove the repeated timing comment
The comment repeats the function docstring’s requirement to run before simulation launch. Remove it.
| if not getattr(args_cli, "video", None): | ||
| return | ||
| # Fail before the simulation launches rather than deep inside environment creation. | ||
| if importlib.util.find_spec("moviepy") is None: |
There was a problem hiding this comment.
🟡 Warning · Implementation — Preflight the import actually used
find_spec checks only the top-level moviepy package. ImageSequenceClip can still fail to import after simulation launches. Import the recorder’s required module here instead.
Signed-off-by: mtrepte <mtrepte@nvidia.com>
Signed-off-by: mtrepte <mtrepte@nvidia.com>
Description
Fixes four QA bugs from the 3.1 pass (NVBugs 7168962, 7137752, 7119492, 7122108) and adds a docs note for a fifth (6878611).
--videowithoutmoviepynow stops before the simulation launches with an error that names thevideoextra, and the--videohow-to examples use--extra video.FutureWarnings on an interactive console unless--infowas passed. Deprecation warnings raised during startup now print when the screen closes.Changelog fragments are added for
isaaclab,isaaclab_rlandisaaclab_visualizers. The earlier released 4.1.5 changelog entry still says 3.2/3.3 and is left as is.Type of change
Screenshots
Not applicable.
Validation
test_loading_screen.pytest_video_recorder.pytest_apply_video_recording.py,test_rerun_viser_camera.py--videofailure on a freshuv syncwith no extras. After the fix it stops in about 6 s with the clear message, and with--extra videoa clip still records.uv run isaaclab -fand the changelog gate pass.Checklist
CONTRIBUTORS.md.