Repository navigation
[CI] Speed up and trim standalone demo smoke tests - #8277
Conversation
|
|
run-ci |
There was a problem hiding this comment.
Isaac Lab Review Bot
The CI optimization consistently reuses existing worker, cache, filtering, and ScriptOverride mechanisms. One test-quality concern remains: the raycast deselection removes automated CLI and scene-launch coverage for the excluded examples, while the cited sensor tests cover raycast behavior at a different boundary.
- Design and architecture: The change keeps ownership at established boundaries: workflow inputs configure CI resources and filtering,
PYTEST_WORKERScontrols per-file xdist concurrency, andOVERRIDESowns standalone workload arguments. However, sensor-level raycast tests are not an architectural substitute for validating the example scripts' CLI parsing, scene construction, and backend/visualizer launch paths. - Scope and complexity: Scope is cohesive; no split recommended. The 17 changed lines form one CI-performance change covering parallelism, cache restoration, workload reduction, and launch exclusion; no new helper, class, configuration surface, or abstraction adds avoidable complexity.
- API: No public Python symbols, import paths, configuration schemas, CLI flags, task IDs, or serialized forms change. Existing composite-action inputs (
test-k-expr,ovrtx-shader-cache, andtest-jobs) and existing example arguments (--num_envsand--voxel_size) are reused without altering their contracts. - Compatibility and deprecation: Breaking changes: none identified. The example programs and CLI arguments remain available, and the compatibility ledger contains no public removal or rename requiring deprecation. The
.skipfragment is appropriate for this test-only source-package change, though automatic launch coverage is reduced. - Implementation: The worker configuration is internally consistent:
test_standalone_scripts.pyreceives two xdist workers and each standalone job provides two test slots. The modified overrides preserve the fixed Newton MPM backend while reducing only scene size or voxel resolution. The unresolved implementation concern is the filter at.github/workflows/build.yaml:446, repeated for non-Kit, which prevents the excluded raycast scripts and their encoded launch matrices from executing in these jobs. - Style consistency: The new override entries match the adjacent
args=andfixed_physics_backend=conventions and formatter wrapping. The comments briefly explain the concurrency and workload intent rather than merely narrating syntax; no separate style correction is needed. - Test quality: Test routing and standalone test-support data changed, although no new test functions or fixtures were added. The retained standalone suite and focused raycast sensor mutation provide evidence for retained launches and sensor behavior, but they do not preserve the removed examples' CLI and scene-startup contract. Keep at least one launch per excluded script or reduce those launch workloads instead of fully deselecting them.
Minor fixes needed. Posted 1 actionable finding inline.
Automated review; human maintainers own approval decisions.
| standalone-script-visualizer: "default" | ||
| standalone-script-runtime-group: kit | ||
| # Dedicated sensor tests cover raycasting; keep these example launches available for manual runs. | ||
| test-k-expr: "not (multi_mesh_raycaster or newton_raycast or raycaster_sensor)" |
There was a problem hiding this comment.
🟡 Warning · Test Quality — Excluded demo launches lose their only CI proof
This expression, repeated in the non-Kit job, removes every automated launch of the raycaster example scripts. The named keepers are sensor-level tests that never run these programs, so their argument parsing, scene construction, and the visualizer/backend matrix still encoded in standalone_script_cases.py (including the Kit skip reason for multi_mesh_raycaster.py) lose all coverage and those overrides become unexercised. Prefer shrinking their workload, as done for zoo and MPM, or retain one launch case per script.
# Description Cold MJWarp kernel compilation in the zoo's first simulation step can exhaust the standalone runner's 300-second limit. Backport the zoo-specific 600-second timeout from #8381 and the one-environment smoke workload from #8277 to `release/3.0.0`. The test retains every robot family and all ten smoke steps. This is a focused backport of the standalone test override, with the required test-only changelog marker. The original CI failure is [here](https://github.com/isaac-sim/IsaacLab/actions/runs/37416184872/job/112115622885). ## Type of change - CI/test-only bug fix backport ## Validation Validated on an RTX 4090 with the release branch's Newton 1.6.1 and MuJoCo Warp 3.12.0 dependencies: - Existing headless Newton zoo launch with a fresh, empty Warp cache: **1 passed in 146.30 seconds**, completing all ten steps and exiting cleanly. - Standalone supervisor and discovery checks: **16 passed**. - Full repository formatting and lint: `ISAACLAB_CHANGELOG_BASE_REF=release/3.0.0 uv run --no-sync isaaclab --format` passed. - Release-base changelog gate and `git diff --cached --check` passed. Focused launch command: ```bash env -u DISPLAY -u WAYLAND_DISPLAY \ WARP_CACHE_PATH=/tmp/6878146-release-warp-cold \ ISAACLAB_RUN_STANDALONE_SCRIPT_TESTS=1 \ ISAACLAB_STANDALONE_VISUALIZER=none \ ISAACLAB_STANDALONE_SCRIPT_RUNTIME_GROUP=non-kit \ ISAACLAB_STANDALONE_SCRIPT_SCOPE=examples/demos \ OPENBLAS_NUM_THREADS=1 \ uv run --no-sync python -m pytest \ 'source/isaaclab/test/app/test_standalone_scripts.py::test_standalone_script_runs_cleanly[examples-demos-zoo-newton_mjwarp-default-none]' \ -q --durations=1 ``` Docker/GPU CI was requested for commit `1d9aa840f` and is [running here](https://github.com/isaac-sim/IsaacLab/actions/runs/38407344257). ## Checklist - [x] Read and followed the contribution guidelines. - [x] Ran the full pre-commit formatting and lint checks. - [x] Validated the changed behavior with existing coverage and applied the test-audit criteria. - [x] Added a `.skip` changelog fragment for the touched package. - [x] Contributor is already listed in `CONTRIBUTORS.md`. - Documentation and screenshots: not applicable to this test-only change.
Description
Standalone demo CI launches each program in a separate simulator process and currently runs the cases serially. Run two cases at a time, restore the existing shader caches in both runtime groups, and reduce the expensive zoo and MPM smoke workloads.
test_standalone_scripts.py: 2toPYTEST_WORKERSand settest-jobs: "2"in both standalone jobs.0.1instead of0.05, and teapot voxel size0.006instead of0.003. Retain all ten smoke steps.ray-caster,multi-mesh-ray-caster,multi-mesh-ray-caster-camera, andnewton-raycastthrough the existing per-filetest-k-exprinput. This removes five base launches and five extra asset/moving-geometry launches, reducing runnable standalone CI cases from 39 to 29.The example programs and their manually runnable smoke tests remain available. Dedicated raycast sensor tests continue to cover raycast behavior; the excluded examples no longer receive automatic CLI/scene-launch coverage in these two CI jobs. There are no production source changes or new runtime dependencies.
Type of change
Validation
-n 2and the CI exclusion expression: 42 passed, 2 skipped, and 3 deformables launches failed because the local environment lacked optionalpytetwild.tetrahedralizationextra, all three deformables launches passed with-n 2. Across the full run and focused retry, all 29 retained simulator launches and all 16 supervisor/discovery checks passed.test_multi_mesh_ray_caster.py: 5 passed. An injected zero-distance result madetest_raycast_multi_cubesfail at its independent expected-distance assertion; the mutation was confined to a temporary process.uv run isaaclab -fandgit diff --cached --check: passed. The changelog check usedISAACLAB_CHANGELOG_BASE_REF=standalone-ci-validation-base, a local reference to the upstream PR base, because the fork'sorigin/developis stale.Release backport
developChecklist
uv run isaaclab --format.CONTRIBUTORS.md.