Skip to content

Fix 3.1 QA bugs for video extra, startup warnings and Rerun docs - #9360

Open
matthewtrepte wants to merge 6 commits into
isaac-sim:mainfrom
matthewtrepte:mtrepte/nvbug-fixes
Open

matthewtrepte wants to merge 6 commits into
isaac-sim:mainfrom
matthewtrepte:mtrepte/nvbug-fixes

Conversation

@matthewtrepte

Copy link
Copy Markdown
Collaborator

Description

Fixes four QA bugs from the 3.1 pass (NVBugs 7168962, 7137752, 7119492, 7122108) and adds a docs note for a fifth (6878611).

  • --video without moviepy now stops before the simulation launches with an error that names the video extra, and the --video how-to examples use --extra video.
  • The loading screen drops its spooled startup output on success, which hid the Kit and Rerun FutureWarnings on an interactive console unless --info was passed. Deprecation warnings raised during startup now print when the screen closes.
  • Rerun deprecation and removal versions are corrected to 3.1 and 3.2 in the warning, docstrings and docs, which matches the Kit visualizer.
  • Added a known-limitation note in the Rerun tab for the corner distortion. Rerun is deprecated, so it won't be fixed.

Changelog fragments are added for isaaclab, isaaclab_rl and isaaclab_visualizers. The earlier released 4.1.5 changelog entry still says 3.2/3.3 and is left as is.

Type of change

  • Bug fix
  • Documentation update

Screenshots

Not applicable.

Validation

Test file Result
test_loading_screen.py 19 passed (the new test fails without the fix)
test_video_recorder.py 45 passed
test_apply_video_recording.py, test_rerun_viser_camera.py 34 passed
  • Reproduced the --video failure on a fresh uv sync with no extras. After the fix it stops in about 6 s with the clear message, and with --extra video a clip still records.
  • The loading screen change is covered by the unit test but was not checked in a real TTY. Without a TTY the warning already shows, which is why it appears in captured logs.
  • Not addressed: 6918128 (the Kit golden-image test ids no longer exist since Decouple renderer and visualizer tests from task environments #6976) and the Windows-only Rerun distortion repro beyond the docs note.
  • uv run isaaclab -f and the changelog gate pass.
  • CI has not run yet.

Checklist

  • Read the contribution guidelines.
  • Ran the formatting and lint checks.
  • Updated the documentation where needed.
  • Added tests or explained why none were needed.
  • Added changelog fragments for every touched package.
  • Contributor name already appears in CONTRIBUTORS.md.

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>
@matthewtrepte
matthewtrepte requested a review from a team December 2, 2026 23:22
@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5RetriggerView in Greptile

[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

  1. P2 Helper tests require optional packages ▶

Summary

The PR improves recording setup errors and keeps startup deprecation warnings visible.

  • Video recording checks its optional package before simulation startup.
  • Startup deprecation warnings appear when the loading screen closes.
  • Rerun warnings and guides show the 3.1 deprecation and 3.2 removal dates.
  • The Rerun guide calls out corner distortion as a known limitation.

One non-blocking issue remains: existing helper tests now require the optional recording package.

Acknowledged scope from matthewtrepte: Rerun corner distortion is intentionally documented rather than fixed; the released 4.1.5 changelog remains unchanged. The obsolete Kit golden-image test IDs and further Windows distortion reproduction are deferred.

Reviews (1) · Last reviewed commit: "Note the Rerun corner distortion as a kn..." · Reviewed by Greptile

Comment on lines +939 to +940
if importlib.util.find_spec("moviepy") is None:
raise ImportError(VIDEO_EXTRA_MESSAGE)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 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.

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.

Comment thread docs/source/isaaclab/migrating.rst Outdated

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.

This branch has not been deployed

No deployments
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.

1 participant