Repository navigation
Add PPISP camera QA demos and discovery fallback - #5748
Conversation
There was a problem hiding this comment.
Update (4f5b8594): New commits address both previous inline comments:
- ✅ Unused rgb_hdr data type — Both demo scripts now use only
data_types=["rgb"]inmake_camera. - ✅ Unreachable final raise —
resolve_source_camera_bindingis restructured in both scripts; the dead-code branch is removed.
No new issues found in the incremental changes.
Update (35794d8c): Reviewed incremental diff (CI refactoring, auto_camera_ppisp_cfg bug fix, test docstring updates, rendering-correctness test reorganization). No new issues. Previous fixes remain intact. LGTM.
Update (8c345db): Reviewed incremental diff. Changes include:
- New PPISP camera QA demos (~1200 lines) for Kit (
ppisp_camera.py) and kit-less OVRTX (ppisp_camera_ovrtx.py) workflows - OVRTX legacy cleanup: Removed 0.2.x code paths, legacy kernels, and
enable_scene_partition_workaroundparameter — good housekeeping - Export script fix: Added missing checkpoint existence check and fixed argparse description typo
- Tutorial fix: Added missing
height_dataLEAPP annotation inanymal_c_env.py - Test docstring accuracy: Updated test docstrings across PPISP gaussian tests to reflect actual assertions
No new issues found. LGTM.
Greptile SummaryThis PR fixes a discovery bug in
Confidence Score: 4/5The core bug fix is minimal and correct; the demo scripts are additive and carry only minor quality issues. The one-line fix to cfg.py is correct and well-tested. The two new demo scripts work as intended but have a stale docstring on the fixed function, an unused rgb_hdr data type that requests an extra render pass with no consumer, and dead unreachable code in both scripts' resolve_source_camera_binding. None of these affect correctness of the primary fix or the existing library. The docstring in cfg.py and the data_types list in ppisp_camera_ovrtx.py are the two spots worth a second look. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[auto_camera_ppisp_cfg\ncalled with camera_prim_path] --> B[Traverse stage prims]
B --> C{prim type ==\nRenderProduct?}
C -- No --> B
C -- Yes --> D{camera rel\ntargets camera_prim_path?}
D -- No --> B
D -- Yes --> E{PPISP child\nshader exists?}
E -- No --> B
E -- Yes --> F[Parse & return PpispCfg]
B -- exhausted --> G[return None]
style E fill:#c8f7c5,stroke:#27ae60
style G fill:#fadbd8,stroke:#e74c3c
H[OLD behavior removed\nreturn None immediately\nif matching RP lacks PPISP] -.->|was here| E
|
| ppisp_camera = make_camera( | ||
| camera_prim_path, | ||
| ppisp_cfg=ppisp_cfg, | ||
| width=width, | ||
| height=height, | ||
| data_types=["rgb", "rgb_hdr"], | ||
| ) |
There was a problem hiding this comment.
The PPISP camera is configured with
data_types=["rgb", "rgb_hdr"], but run_simulator only ever accesses data.output["rgb"]. The "rgb_hdr" channel is never read, so it requests an extra render pass (and any associated GPU memory / bandwidth) with no benefit.
| ppisp_camera = make_camera( | |
| camera_prim_path, | |
| ppisp_cfg=ppisp_cfg, | |
| width=width, | |
| height=height, | |
| data_types=["rgb", "rgb_hdr"], | |
| ) | |
| ppisp_camera = make_camera( | |
| camera_prim_path, | |
| ppisp_cfg=ppisp_cfg, | |
| width=width, | |
| height=height, | |
| data_types=["rgb"], | |
| ) |
| ) | ||
| raise RuntimeError(f"Failed to resolve PPISP binding for camera: {camera_prim_path}") | ||
|
|
||
|
|
||
| def source_camera_path_to_env_regex(source_stage, source_camera_prim_path: str) -> str: | ||
| """Map a source camera path to the duplicated-env camera regex.""" | ||
| default_prim = source_stage.GetDefaultPrim() | ||
| if not default_prim: |
There was a problem hiding this comment.
Unreachable final raise in
resolve_source_camera_binding
After the for-loop completes without returning, camera_prim_path is by definition absent from ppisp_camera_prim_paths (if it were present the loop would have matched and returned). Therefore the if camera_prim_path not in ppisp_camera_prim_paths: branch is always taken, and the final raise RuntimeError(f"Failed to resolve PPISP binding for camera: ...") on line 229 is dead code. The same pattern is duplicated in ppisp_camera_ovrtx.py.
63bbb5c to
6b0b554
Compare
|
Re-review update (6b0b554d): Reviewed incremental changes since previous review (63bbb5ce). ✅ Good changes:
|
6b0b554 to
13204ce
Compare
Review Update (13204ce3)✅ Both previous concerns have been addressed:
Additional improvement in this commit:
LGTM 👍 |
|
@kellyguo11 : here is the QA PR (cannot add you as a reviewer) |
13204ce to
ac44ee0
Compare
🤖 Isaac Lab Review Bot - Follow-up ReviewCommit: ac44ee0a8de431e7141a6f7bac30f2b7437bd3f2 Previous Issues Status✅ Fixed: Unused ✅ Fixed: Unreachable code in New Changes in This Commit
SummaryAll previous review comments have been addressed. No new issues identified. LGTM ✅ |
ac44ee0 to
6132e0e
Compare
Re-review Update (6132e0e5)Both previous concerns have been addressed: ✅ P2 (data_types): ✅ P2 (unreachable code): The dead Additionally, this commit:
LGTM 👍 |
6132e0e to
1f8ab7a
Compare
🤖 Review Update (1f8ab7a2)✅ Both previous concerns addressed:
LGTM — no new issues found in the incremental changes. |
4f5b859 to
35794d8
Compare
| from isaaclab.app import AppLauncher | ||
|
|
||
| # add argparse arguments | ||
| DEFAULT_INPUT_SCENE = "omniverse://isaac-dev.ov.nvidia.com/Isaac/Samples/Scene_ParticleField/valiant_auto.usdz" |
There was a problem hiding this comment.
can you update this to the path from S3?
35794d8 to
8c345db
Compare
The isaaclab_ppisp package shipped with a 20-byte CHANGELOG.rst (``Changelog\n---------\n``) that has no blank line after the underline. The nightly compile's header regex needs that blank line as an insertion anchor, so the next run (isaac-sim#5748 + accumulated minor fragments) raised ``Could not locate changelog header`` and skipped the commit/push step. Seed isaaclab_ppisp's CHANGELOG.rst with a real 0.1.0 entry so the header has a stable anchor that pre-commit's end-of-file fixer cannot strip away. Hoist the compile-time header regex into ``CHANGELOG_HEADER_RE`` so the producer (write_changelog_entry) and the new gate share one source of truth. Extend ``cmd_check`` to walk Package.discover() and emit ``::error::`` on any managed CHANGELOG.rst that fails the same regex compile uses. The PR-time gate now mirrors the compile-time precondition, so a future PR adding a malformed stub is blocked at review. Wire ``tools/changelog/test/`` into the changelog-check workflow with a path filter, so cli.py refactors are gated by the existing unit-test suite (86 tests, ~0.2s) only when the tool itself changes. Add three regression tests covering minimum-stub acceptance, unterminated-stub rejection, and a Package.discover() walk over every managed package on disk.
…ab_ppisp (#5831) ## 1. Summary - Unblocks nightly compile job https://github.com/isaac-sim/IsaacLab/actions/runs/26494922179 by seeding `source/isaaclab_ppisp/docs/CHANGELOG.rst` with a real `0.1.0` entry. - Layered prevention so this class of incident cannot wedge the nightly again: self-heal in compile (auto-fix the narrow stub shape) + cmd_check walk (block truly broken shapes at PR time) + per-package isolation in `cmd_compile` (one bad package no longer kills the batch) + workflow tolerance (commit/push still runs on partial success). - 6 files changed: 234 insertions, 6 deletions. ## 2. Background The `isaaclab_ppisp` package landed via #5499 (directory) + #5748 (CHANGELOG.rst + extension.toml) with the file containing exactly 20 bytes: ``` Changelog --------- ``` The compile-time regex in `Package.write_changelog_entry` requires a blank line after the underline as an anchor for the prepend: ```python re.search(r"^Changelog\n-+\s*\n\s*\n", text, re.MULTILINE) ``` The stub satisfies header + underline but not the trailing blank line. The PR gate only inspected fragment-diff content, so the malformed target file slipped through. When the next `nicolasm-ppisp-*.minor.rst` fragments accumulated and the nightly compile tried to prepend, the regex match failed, `cmd_compile` exited non-zero on the first package error, and the workflow's commit/push step was skipped under default `if: success()` — every successfully-compiled package's writes were discarded with the failing one. ## 3. Changes ### 3.1 Seed entry for `isaaclab_ppisp` `source/isaaclab_ppisp/docs/CHANGELOG.rst` carries a real `0.1.0 (2026-05-20)` Added section. Pre-commit's end-of-file fixer strips trailing blank lines, so a content-bearing seed is the only stable shape — relying on a bare `Changelog\n---------\n\n` would lose the blank line on the next PR that touches the file. ### 3.2 Single source of truth for the header regex ```python CHANGELOG_HEADER_RE = re.compile(r"^Changelog\n-+\s*\n\s*\n", re.MULTILINE) ``` Hoisted to module level in `tools/changelog/cli.py`. The producer (`write_changelog_entry`) and the gate (`cmd_check`) share the same compiled regex object — drift between gate and compile is structurally impossible. ### 3.3 Self-healing compile `write_changelog_entry` now normalizes the file in-memory before the regex search: ```python text = re.sub(r"^(Changelog\n-+)\n(?!\n)", r"\1\n\n", text, count=1, flags=re.MULTILINE) ``` Matches "header + dashes + one newline NOT followed by another newline" and inserts the missing `\n`. Idempotent on well-formed files via the negative lookahead. The compile writes the normalized text back to disk, so a malformed file becomes canonical on first compile. The original ppisp 20-byte stub would have self-healed silently without this PR. ### 3.4 PR-gate header walk `cmd_check` walks `Package.discover()` and applies the same self-heal normalization, then asserts `CHANGELOG_HEADER_RE` matches. The narrow "missing blank line" case passes silently (the system will auto-fix). Genuinely broken shapes — no `Changelog` line, no underline, wrong underline char, leading whitespace, misspelled header — fail with an `::error::` annotation listing the offending file and the seed-template snippet contributors should copy. ### 3.5 Per-package isolation in `cmd_compile` The compile loop replaces fail-fast `return 1` with `failures.append + continue`. A package whose CHANGELOG.rst raises is skipped; the rest of the batch continues. Exit code is non-zero only if any package failed, with a summary block naming each failure. Defense-in-depth for failure modes the PR gate doesn't catch: version mismatch between `extension.toml` and `pyproject.toml`, filesystem permission errors, direct pushes bypassing the PR gate, future failure modes added to `Package.compile`. ### 3.6 Workflow tolerance for partial success `.github/workflows/nightly-changelog.yml`: - Compile step gets `continue-on-error: true` and a step id. - Commit/push step guard changes from `if: ${{ !inputs.dry_run }}` to `if: ${{ always() && !inputs.dry_run }}`. Successful packages' on-disk writes are committed and pushed even when compile reported partial failure. - Trailing step `if: ${{ steps.compile.outcome == 'failure' }}` re-asserts non-zero so the job tile stays red and the maintainer is notified. ### 3.7 Per-PR pytest gate, path-filtered `.github/workflows/changelog-check.yml` runs `pytest tools/changelog/test/ -q` only when the PR touches `tools/changelog/**` (inline `git diff` check, no third-party action). PRs that only add fragments under `source/<pkg>/changelog.d/` skip the pytest step at zero overhead. ### 3.8 Regression coverage Six new tests in `tools/changelog/test/test_validate.py`: - `test_changelog_header_re_accepts_minimum_stub` — locks the minimum-valid shape. - `test_changelog_header_re_rejects_unterminated_stub` — exact 20-byte ppisp shape rejected by the raw regex. - `test_every_managed_package_has_parseable_changelog_header` — walks every managed package on disk, applies self-heal, asserts the regex matches. - `test_write_changelog_entry_self_heals_missing_blank_line` — compile against the 20-byte stub produces a well-formed file. - `test_write_changelog_entry_self_heal_is_noop_on_well_formed` — well-formed files are unchanged (idempotence). - `test_cmd_compile_continues_after_per_package_failure` — one bad package, one good; good ships, bad is named in the summary, exit code 1. ## 4. Verification - `pytest tools/changelog/test/` — 89 passed (was 83; +6). - `./isaaclab.sh -f` — pre-commit clean. - Self-heal verified: re-introduced the 20-byte stub, ran a synthetic compile, on-disk file came back canonical with the new entry on top. - Gate path verified: with a genuinely broken `CHANGELOG.rst` (no header at all), `cli.py check develop` emits `::error::Malformed CHANGELOG.rst …`. With the 20-byte self-healable stub, `cli.py check` passes (compile would auto-fix). - Per-package isolation verified: synthetic two-package fixture with one broken, ran `cmd_compile --all`, good package wrote its CHANGELOG.rst and deleted fragments, bad package was named in the failure summary, exit 1. ## 5. Out of scope / follow-ups - Cherry-pick to `release/3.0.0-beta2` (carries the same 20-byte stub). Follow-up after this lands on develop. ## 6. Test plan - [x] `pytest tools/changelog/test/` — 89/89 pass. - [x] `./isaaclab.sh -f` — pre-commit clean. - [x] Regression verified by reverting the seed. - [ ] CI green on this PR.
Description
This PR adds QA-oriented PPISP camera demo workflows for USD-authored Gaussian scenes and fixes a PPISP auto-discovery edge case.
Summary:
scripts/demos/sensors/ppisp_camera.pyfor Kit-based PPISP validation withnewtonandisaac_rtxrenderers.scripts/demos/sensors/ppisp_camera_ovrtx.pyfor kit-less OVRTX PPISP validation.num_envs > 1.auto_camera_ppisp_cfg()so a matching RenderProduct without aPPISPchild does not prevent discovery of a later matching RenderProduct that does contain PPISP.isaaclab_ppispdocs/changelog scaffolding and a changelog fragment for the QA workflows.Motivation/context:
Existing unit tests cover PPISP renderer integration, but QA needed a user-facing workflow that validates PPISP through CameraSensor-style rendering on a real USD-authored Gaussian scene. These
demos provide that workflow without requiring training jobs or task-specific environment changes.
Dependencies:
isaaclab_ov/ovrtxstack installed.OVRTX_rtx_rtpt_gaussian_skipTonemapping_enabled=0Fixes #
Type of change
Screenshots
The demo scripts generate baseline / PPISP / diff image grids under the selected
--output_dir. Attach representative generated images here if desired.Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there