Repository navigation
Add standalone script backend test infrastructure - #6704
kellyguo11 merged 17 commits into
Conversation
Greptile SummaryThis PR adds a parameterized smoke-test framework for standalone demo and tutorial scripts, testing all declared physics/renderer/visualizer combinations via subprocess supervision. It also fixes three Newton compatibility issues exposed by the expanded test coverage: (1) standalone and marker-only PhysX scenes can now initialize the Newton visualization model without
Confidence Score: 4/5Safe to merge once the stacked dependency (#6682) lands and this branch is rebased; no data-loss or correctness regressions are introduced. The three Newton bug fixes are targeted and well-tested: the
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Standalone script smoke test] --> B{ISAACLAB_RUN_STANDALONE_SCRIPT_TESTS=1?}
B -- No --> C[pytest.skip]
B -- Yes --> D[discover_specs: AST parse all demo/tutorial .py files]
D --> E[build_cases: expand x physics x renderer x visualizer]
E --> F{backend / visualizer available?}
F -- No --> G[pytest.skip with reason]
F -- Yes --> H[run_until_ready: subprocess + selector poll]
H --> I{readiness_pattern seen?}
I -- No, timeout --> J[terminate process group]
I -- Yes --> K[soak for N seconds]
K --> L[SIGTERM process group]
L --> M[assert_smoke_passed]
M --> N{fatal_patterns present?}
N -- Yes --> O[FAIL]
N -- No --> P{returncode == 0 or stopped_after_soak?}
P -- No --> O
P -- Yes --> Q[PASS]
Reviews (1): Last reviewed commit: "Merge branch 'develop' into kellyg/stand..." | Re-trigger Greptile |
## Description Documents the supported physics, renderer, and visualizer options alongside each standalone demo shown on the showroom page, and updates the corresponding demo and tutorial scripts so those selections are exposed consistently. The script changes: - add `newton_mjwarp` support where the existing scene configuration is compatible, including the multi-asset and multi-mesh raycaster demos; - allow supported external visualizers instead of unnecessarily restricting scripts to Kit; - make the Newton MPM demos safe to launch headlessly; - align selector names with the preset APIs by using `newton_mjwarp` for Newton MJWarp physics and `newton_renderer` for the Newton renderer; - update the deformable tutorial for its Newton VBD variant; - fix the heterogeneous-scene launcher arguments and task identifier; - fix the Franka arms asset URL and remote PPISP scene localization. The standalone smoke-test framework, focused regression tests, and Newton core compatibility changes were split into dependent draft PR #6704. ## Type of change - [x] New feature - [x] Bug fix - [x] Breaking change - [x] Documentation update ## Testing - Full Sphinx documentation build succeeded without warnings. - Modified demo and tutorial scripts passed Python compilation. - All-file pre-commit hooks passed. - The supported backend and visualizer combinations were exercised during development; the reusable test matrix and core regression coverage are in #6704. - Graphical outputs were captured and visually inspected for the available Kit and Newton visualizers. ## Checklist - [x] I have read and understood the contribution guidelines. - [x] I have run the formatter and all pre-commit checks. - [x] I have updated the documentation and changelog fragments. - [x] I have verified every showcased demo lists options synchronized with its executable script. - [x] Corresponding automated tests are included in dependent PR #6704. - [ ] I have added my name to `CONTRIBUTORS.md` or my name already exists there.
maxkra15
left a comment
There was a problem hiding this comment.
Two focused smoke-test issues reproduced locally.
There was a problem hiding this comment.
Isaac Lab Review Bot
Summary
This PR adds a parameterized smoke-test harness for standalone demo/tutorial scripts and bundles three Newton compatibility fixes (shadow visualization model for non-cloned scenes, convex-mesh colliders for implicit MPM, and stricter prim matching for Newton rigid-object collections), plus assorted demo/CLI cleanups. The test scaffolding is well structured (declarative overrides, bounded startup/soak supervision, output-tail truncation with sticky fatal detection) and the Newton fixes are accompanied by targeted unit tests. Remaining concerns are mostly correctness-at-the-edges: the collection prim pattern is still a wildcard rather than an exact match, the visualization env count can disagree with the world layout the builder actually produces, and two demo CLI selectors were renamed without a deprecation alias.
Architecture impact
Changes are confined to demo/tutorial scripts, Newton physics/visualization internals, and a new test package under source/isaaclab/test/app. The shadow-visualization path is relaxed so PhysX-backed and marker-only scenes can drive Newton visualizers, which broadens the supported scene topologies for external visualizers; the empty-model case now finalizes instead of erroring, so callers must not rely on _model is None as a retry signal. The rigid-object-collection change tightens view construction with a per-world count assertion, converting a previously silent mismatch into a startup error.
Test coverage
Good unit-level coverage of the new discovery/expansion logic, the subprocess supervisor (readiness, timeout, truncation), and each Newton fix. Note that the actual launch matrix is gated behind ISAACLAB_RUN_STANDALONE_SCRIPT_TESTS=1 and no workflow in this PR sets it, so by default only the static/AST-level assertions run; consider wiring at least a representative slice into CI so the advertised backend/visualizer combinations are exercised. The MPM regression asserts only the enum rewrite and never finalizes a model or constructs the solver, so it would not catch a follow-on incompatibility in the converted shape's mesh data.
Implementation verdict
Minor fixes needed. Posted 7 actionable findings inline.
The PR exceeded the automated context budget, so some file content was truncated.
Automated comment-only review; human maintainers own approval decisions.
5abb399 to
fdd2cd2
Compare
Make the particle-pour asset path genuinely kitless, keep scoped test runs independent, and exercise MPM collider compatibility through solver construction.
Parameterize the unrelated-sibling regression over the supported test devices so CPU-only runners skip or execute it consistently with neighboring coverage.
fdd2cd2 to
2460677
Compare
There was a problem hiding this comment.
Isaac Lab Review Bot
Summary
Adds a parameterized smoke-test harness for standalone demos/tutorials plus a headless GPU CI job, and fixes three Newton issues (shadow visualization model for non-/World/envs scenes, MPM convex-mesh colliders, rigid-object-collection prim matching). The harness design (static discovery + explicit overrides + bounded subprocess supervision) is solid and well unit-tested. Remaining concerns are a _num_envs/world-count mismatch in the new standalone visualization path, a caching hazard when cloned env prims are not yet on the stage, a scoped CI run that can pass vacuously, and a new hard failure mode for collections whose siblings share the generated wildcard.
Architecture impact
Test/CI infrastructure is additive and self-contained under source/isaaclab/test/app/ with new optional action inputs threaded through the existing docker test runner; no public API changes. The Newton changes relax previously strict preconditions (env prims required, convex-mesh geometry rejected, wildcard prim matching), which broadens supported scenes but also shifts some failures from silent mis-selection to explicit errors.
Test coverage
Each Newton fix ships a targeted regression test, and the harness itself has good unit coverage of discovery, command construction, supervision, and screenshot handling. Gaps: the combined-pattern helper is only covered indirectly through a GPU sim test, the new RuntimeError guard in the collection is untested, and the env_paths non-empty + clone_plan is None combination in the visualization path is not exercised.
Implementation verdict
Minor fixes needed. Posted 5 actionable findings inline.
The PR exceeded the automated context budget, so some file content was truncated.
Automated comment-only review; human maintainers own approval decisions.
Select Isaac Sim PhysX explicitly for demos that depend on the Kit runtime. Split the headless launch matrix into stable case shards so each CI job stays within the per-file timeout.
Replace numeric launch-matrix shards with Kit and non-Kit groups. This keeps backend runtime requirements isolated while covering each headless demo case exactly once.
There was a problem hiding this comment.
Isaac Lab Review Bot
Summary
Adds a parameterized smoke-test framework for standalone demo/tutorial scripts, a headless GPU CI job driving the demo matrix, and three Newton fixes (shadow visualization model for non-cloned scenes, MPM convex-mesh collider classification, rigid-object-collection prim matching). The Newton fixes are focused and come with regression tests, and the harness's static contract tests are a nice guard against drift. The main issues are a world-count inconsistency in the visualization fallback path, a CI report-name collision introduced by the new matrix job, and the undeprecated removal of the public --physics physx CLI value.
Architecture impact
The test harness is self-contained under source/isaaclab/test/app/ and driven entirely by environment variables threaded through the composite actions, so it does not couple library code to CI. The Newton changes relax two previously strict preconditions (/World/envs/env_<id> required for the shadow visualization model, exact geometry type for MPM colliders) and narrow one wildcard (rigid-object-collection combined pattern); the visualization relaxation needs the env-count bookkeeping tightened so the shadow model's advertised world count always matches how it was actually built.
Test coverage
Good breadth: the MPM convex-mesh and rigid-object-collection fixes both have regressions that exercise the previously failing paths, and the launch-matrix/runtime-group partition logic is unit-tested without launching a simulator. Two gaps: the standalone visualization tests only cover clone_plan=None, not the env_paths-empty-with-a-real-clone-plan case that standalone demos actually hit; and the collection regression uses a sibling (UnrelatedObject) that shares no prefix with the configured Object_* paths, so neither the residual over-match case nor the new RuntimeError guard is asserted.
Implementation verdict
Minor fixes needed. Posted 8 actionable findings inline.
The PR exceeded the automated context budget, so some file content was truncated.
Automated comment-only review; human maintainers own approval decisions.
Correct backend-specific demo failures and keep Newton visual and reset behavior consistent across standalone launches. Refresh the lockfile and give the sharded smoke matrix enough time to complete.
Delay Kit-dependent imports until after simulation launch, enable camera\nextensions at runtime, and use a lightweight raycaster test scene. Preserve\nfull articulation reset semantics and allow cold renderer startup in CI.
|
@isaaclab-review-bot review |
There was a problem hiding this comment.
Isaac Lab Review Bot
Summary
This PR adds a parameterized smoke-test harness for standalone demo/tutorial scripts (discovery, CLI-declaration validation, bounded launches, readiness/fatal-output checks), wires a new headless GPU CI job for demos, and fixes three Newton compatibility issues (shadow visualization model for non-/World/envs scenes, MPM convex-mesh colliders, rigid-object-collection prim matching). The infrastructure is opt-in via environment variables and the regressions are mostly targeted at the reported bugs. The main concerns are a public CLI value rename (--physics physx → isaacsim_physx) landing without a deprecation alias, a scope filter that can silently select zero launch cases, a CUDA-only regression test with no skip guard, and a visibility-restoration heuristic that may over-group body-less (static) shapes.
Architecture impact
Test/CI infrastructure is additive and isolated under source/isaaclab/test/app/, with new inputs threaded through the reusable GitHub composite actions; that plumbing follows existing patterns. The Newton-side changes touch shared clone/visualization paths (_restore_visible_colliders_without_visual_shapes is now invoked from four import sites) and the physics-manager reset dispatch, which is now a bound delegate mirroring the existing _eval_fk pattern — consistent with the current design. The user-visible CLI value rename across demos is the one change with cross-cutting compatibility impact.
Test coverage
Good: each of the three Newton fixes has a matching regression (standalone visualization model, MPM convex-mesh conversion + solver construction, collection prim-path selection with an unrelated sibling), plus new tests for runtime-group partitioning, showroom documentation consistency, and actuator reset argument shape. Gaps: the MPM regression hard-codes cuda:0 without a skip guard, the visible-collider regression uses a guide-purpose collider so it does not isolate the newly added body-grouping condition, and the changed common-suffix branch of _build_combined_pattern has no direct unit coverage.
Implementation verdict
Minor fixes needed. Posted 8 actionable findings inline.
The PR exceeded the automated context budget, so some file content was truncated.
Automated comment-only review; human maintainers own approval decisions.
Size MJWarp contact and constraint buffers for the demo's default scene.\nTreat solver overflow warnings as fatal in standalone smoke tests so\ncontact truncation cannot pass CI silently.
Reject empty script scopes, preserve visibility semantics for static\ncolliders, and make the implicit MPM regression skip without CUDA.\nDocument Newton collection path matching and strengthen its regression.
…e-script-test-infrastructure
AntoineRichard
left a comment
There was a problem hiding this comment.
The asset bits that got changed look fine to me.
## Description Documents the supported physics, renderer, and visualizer options alongside each standalone demo shown on the showroom page, and updates the corresponding demo and tutorial scripts so those selections are exposed consistently. The script changes: - add `newton_mjwarp` support where the existing scene configuration is compatible, including the multi-asset and multi-mesh raycaster demos; - allow supported external visualizers instead of unnecessarily restricting scripts to Kit; - make the Newton MPM demos safe to launch headlessly; - align selector names with the preset APIs by using `newton_mjwarp` for Newton MJWarp physics and `newton_renderer` for the Newton renderer; - update the deformable tutorial for its Newton VBD variant; - fix the heterogeneous-scene launcher arguments and task identifier; - fix the Franka arms asset URL and remote PPISP scene localization. The standalone smoke-test framework, focused regression tests, and Newton core compatibility changes were split into dependent draft PR isaac-sim#6704. ## Type of change - [x] New feature - [x] Bug fix - [x] Breaking change - [x] Documentation update ## Testing - Full Sphinx documentation build succeeded without warnings. - Modified demo and tutorial scripts passed Python compilation. - All-file pre-commit hooks passed. - The supported backend and visualizer combinations were exercised during development; the reusable test matrix and core regression coverage are in isaac-sim#6704. - Graphical outputs were captured and visually inspected for the available Kit and Newton visualizers. ## Checklist - [x] I have read and understood the contribution guidelines. - [x] I have run the formatter and all pre-commit checks. - [x] I have updated the documentation and changelog fragments. - [x] I have verified every showcased demo lists options synchronized with its executable script. - [x] Corresponding automated tests are included in dependent PR isaac-sim#6704. - [ ] I have added my name to `CONTRIBUTORS.md` or my name already exists there.
# Description Adds a parameterized smoke-test framework for standalone demo and tutorial scripts across their declared physics, renderer, and visualizer combinations. The matrix validates CLI declarations, launches supported combinations with bounded timeouts, checks readiness and fatal output, and captures visualizer screenshots when requested. A dedicated `standalone demos (headless)` GPU CI job now runs every demo with the `none` visualizer across all declared physics and renderer combinations. GUI visualizer slices remain available for local validation with a display server. The expanded coverage exposed three Newton compatibility issues, fixed here: - PhysX-backed standalone and marker-only scenes can build a shadow Newton model for external visualizers without requiring `/World/envs/env_<id>`. - Newton implicit MPM accepts imported convex-mesh rigid colliders through its triangle-mesh geometry path. - Newton rigid-object collections match configured prim paths exactly instead of selecting unrelated sibling assets. Review follow-ups also: - made the MPM particle-pour asset path genuinely kitless by relying on the standard `UsdFileCfg` asset localization path; - made scoped smoke runs independent of unrelated raycaster cases; and - strengthened the MPM regression to finalize the CUDA model and construct `SolverImplicitMPM`. ## Type of change - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking test and CI infrastructure) ## Validation - `uv run python -m pytest source/isaaclab/test/app/test_standalone_scripts.py -q` — 27 passed, 280 skipped launch cases - CI-scoped MPM launch matrix (`demos/mpm`, visualizer `none`) — 2 passed - `uv run python scripts/demos/mpm/particle_pour.py --device cuda:0 --visualizer none --max-steps 2` — passed without launching Kit - `uv run python -m pytest source/isaaclab_newton/test/physics/test_newton_manager_abstraction.py -q` — 83 passed - Regression negative checks reproduced `StopIteration` for the old scoped selection and `NotImplementedError: Shape type 10 not supported` for the old MPM conversion test - `uv run isaaclab -f` ## Screenshots Runtime screenshots were inspected while validating the Kit and Newton visualizer combinations in the backend-selection PR. The user-facing demo screenshots and documentation landed in isaac-sim#6682. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks - [x] Corresponding documentation landed in isaac-sim#6682 - [x] My changes generate no new warnings - [x] I have added tests that prove the fixes are effective - [x] I have added changelog fragments for every touched package - [ ] I have added my name to `CONTRIBUTORS.md` or my name already exists there
…7015) ## Summary Two independent CI defects, both blocking pull requests that have nothing wrong with them. ## 1. The license check floats onto a prerelease `pip-licenses 6.0.0a1` was published 2026-08-10. `[tool.uv.pip] prerelease = "allow"` lets the unpinned install in `license-check.yaml` float onto it, so the dependency license check has been red on every PR opened since. 6.0.0a1 dropped 5.x's blanket `pkg_info[field] = value or LICENSE_UNKNOWN` fallback, so the `License` column is empty rather than `UNKNOWN` for packages shipping no license metadata. `license-exceptions.json` keys 44 entries on the literal `"UNKNOWN"`, so six packages with reviewed exceptions were flagged: `cmeel-qhull`, `egl_probe`, `osqp`, `pyglet`, `rl_games`, `robomimic`. It also joins the license set unsorted, so multi-license strings reorder run to run. **Change:** `pip-licenses` → `"pip-licenses<6.0"`, which resolves to 5.5.5 even under `--prerelease=allow` since PEP 440 excludes prereleases of the capped version. ## 2. Required check names are never published on docs-only PRs Branch protection matches a required status check by its literal name, and GitHub only expands a matrix when it *schedules* the job. A skipped matrix job therefore publishes its check run with the expression unexpanded: skipped standalone demos (headless, ${{ matrix.runtime-label }}) So on a docs-only PR the required contexts `standalone demos (headless, Kit)`, `standalone demos (headless, non-Kit)` and `rendering-correctness-kitless (legacy)` are never published at all — they stay in `Expected` and the PR cannot merge. The other 20 required contexts publish as `skipped`, which satisfies the rule. The two matrices arrived with #6704 and #6767. **Change:** both matrix jobs are written out per variant, so each name is static and is published whether the job runs or is skipped. Job bodies are otherwise unchanged — Kit drops the non-Kit OVPhysX pin step, and the kitless variants replace the synthetic `event_name` axis and its `exclude` entry with a plain `if:` on the post-merge-only ovstage job. No branch protection change is needed. Supersedes #6960 — diagnosis by @AntoineRichard, folded in here at his request. ## Validation | Check | Result | |---|---| | license gate replayed on the 6.0.0a1 report from the failing run | 6 flagged, exit 1 — reproduces CI | | license gate replayed on the 5.5.5 report from the last passing run | `All packages were checked`, exit 0 | | published check names vs develop | 2 unexpandable templates → 4 literal names, 25 unchanged | | `build.yaml` job graph | 29 jobs parse, every `needs:` resolves, no matrix jobs remain | | `uv run isaaclab -f` | all hooks pass | --------- Co-authored-by: Mustafa H <[email protected]> Co-authored-by: AntoineRichard <[email protected]>
A standalone demo that becomes ready at 299 seconds is currently terminated at the 300-second startup deadline, before its five-second soak can finish. This caused the arms smoke test in #7608 and #7674 to fail after printing its setup and reset messages. Stop applying the startup deadline once the readiness marker has been observed, while preserving the existing 300-second startup and five-second soak settings. The unconditional deadline was introduced by [#6704](#6704), commit [16083cc](16083cc). This fix does not address the separate arms failures in #7838 and #7866 that never reached readiness within 300 seconds. Validation: the deterministic regression fails on develop and passes with this change; all 11 supervisor checks pass; `uv run isaaclab -f` passes.
…im#7869) A standalone demo that becomes ready at 299 seconds is currently terminated at the 300-second startup deadline, before its five-second soak can finish. This caused the arms smoke test in isaac-sim#7608 and isaac-sim#7674 to fail after printing its setup and reset messages. Stop applying the startup deadline once the readiness marker has been observed, while preserving the existing 300-second startup and five-second soak settings. The unconditional deadline was introduced by [isaac-sim#6704](isaac-sim#6704), commit [16083cc](isaac-sim@16083cc). This fix does not address the separate arms failures in isaac-sim#7838 and isaac-sim#7866 that never reached readiness within 300 seconds. Validation: the deterministic regression fails on develop and passes with this change; all 11 supervisor checks pass; `uv run isaaclab -f` passes. (cherry picked from commit 0921d32)
Description
Adds a parameterized smoke-test framework for standalone demo and tutorial
scripts across their declared physics, renderer, and visualizer combinations.
The matrix validates CLI declarations, launches supported combinations with
bounded timeouts, checks readiness and fatal output, and captures visualizer
screenshots when requested.
A dedicated
standalone demos (headless)GPU CI job now runs every demo withthe
nonevisualizer across all declared physics and renderer combinations.GUI visualizer slices remain available for local validation with a display
server.
The expanded coverage exposed three Newton compatibility issues, fixed here:
model for external visualizers without requiring
/World/envs/env_<id>.triangle-mesh geometry path.
of selecting unrelated sibling assets.
Review follow-ups also:
standard
UsdFileCfgasset localization path;SolverImplicitMPM.Type of change
Validation
uv run python -m pytest source/isaaclab/test/app/test_standalone_scripts.py -q— 27 passed, 280 skipped launch casesdemos/mpm, visualizernone) — 2 passeduv run python scripts/demos/mpm/particle_pour.py --device cuda:0 --visualizer none --max-steps 2— passed without launching Kituv run python -m pytest source/isaaclab_newton/test/physics/test_newton_manager_abstraction.py -q—83 passed
StopIterationfor the old scopedselection and
NotImplementedError: Shape type 10 not supportedfor the oldMPM conversion test
uv run isaaclab -fScreenshots
Runtime screenshots were inspected while validating the Kit and Newton
visualizer combinations in the backend-selection PR. The user-facing demo
screenshots and documentation landed in #6682.
Checklist
CONTRIBUTORS.mdor my name already exists there