Skip to content

[CI] Speed up and trim standalone demo smoke tests - #8277

Merged
StafaH merged 1 commit into
isaac-sim:developfrom
StafaH:ci/speed-up-standalone-demos
Oct 2, 2026
Merged

StafaH merged 1 commit into
isaac-sim:developfrom
StafaH:ci/speed-up-standalone-demos

Conversation

@StafaH

@StafaH StafaH commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

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.

  • Add test_standalone_scripts.py: 2 to PYTEST_WORKERS and set test-jobs: "2" in both standalone jobs.
  • Restore the existing OVRTX shader caches in both jobs.
  • Use one zoo environment instead of two, snowball voxel size 0.1 instead of 0.05, and teapot voxel size 0.006 instead of 0.003. Retain all ten smoke steps.
  • Exclude ray-caster, multi-mesh-ray-caster, multi-mesh-ray-caster-camera, and newton-raycast through the existing per-file test-k-expr input. 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

  • CI performance and coverage reduction

Validation

  • Full retained standalone suite with -n 2 and the CI exclusion expression: 42 passed, 2 skipped, and 3 deformables launches failed because the local environment lacked optional pytetwild.
  • After installing the documented tetrahedralization extra, 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.
  • Retained test_multi_mesh_ray_caster.py: 5 passed. An injected zero-distance result made test_raycast_multi_cubes fail at its independent expected-distance assertion; the mutation was confined to a temporary process.
  • uv run isaaclab -f and git diff --cached --check: passed. The changelog check used ISAACLAB_CHANGELOG_BASE_REF=standalone-ci-validation-base, a local reference to the upstream PR base, because the fork's origin/develop is stale.
  • On the same local GPU with warm kernel caches, the three affected Newton launches took 84.5 seconds before the workload changes and 73.1 seconds afterward (about 13% faster). This measures workload reduction only; overall CI savings from parallelism, shader caching, and exclusions have not yet been measured.

Release backport

  • Backport to the active release branch after merging into develop

Checklist

  • I have read and understood the contribution guidelines.
  • I have run the pre-commit checks with uv run isaaclab --format.
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria.
  • I have added a changelog fragment for the touched source package.
  • My name already exists in CONTRIBUTORS.md.
  • Documentation and screenshots: not applicable to this CI/test-support change.

@greptile-apps

greptile-apps Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adjusts CI test parallelism and demo script parameters.

The PR appears safe to merge based on the reviewed changes and reported two-worker validation.

Summary

This PR shortens the standalone demo CI jobs by running two launches concurrently, restoring shader caches, reducing three demo workloads, and deselecting raycast example launches.

  • The raycast examples remain manually runnable, but these two jobs no longer provide their CLI/scene-launch coverage.

Reviews (1) · Last reviewed commit: "Speed up and trim standalone demo CI"

@StafaH

StafaH commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 2, 2026

@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

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_WORKERS controls per-file xdist concurrency, and OVERRIDES owns 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, and test-jobs) and existing example arguments (--num_envs and --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 .skip fragment 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.py receives 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= and fixed_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)"

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

@StafaH
StafaH merged commit 772358a into isaac-sim:develop Oct 2, 2026
60 checks passed
@StafaH
StafaH deleted the ci/speed-up-standalone-demos branch October 10, 2026 19:44
kellyguo11 pushed a commit that referenced this pull request Oct 13, 2026
# 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants