Skip to content

[CI] Trim duplicated tests and re-runs found in a CI test audit - #8819

Merged
StafaH merged 7 commits into
isaac-sim:mainfrom
StafaH:test/ci-test-audit
Oct 26, 2026
Merged

StafaH merged 7 commits into
isaac-sim:mainfrom
StafaH:test/ci-test-audit

Conversation

@StafaH

@StafaH StafaH commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

This is a test-side follow-up to #8818. I audited the slowest CI test files package by package (core, Newton, PhysX/OV, tasks/standalone), using per-case junit times from a recent PR run and the isaaclab-auditing-tests criteria.

The main finding is that most slow files are slow for real reasons: one-time Kit or Warp warmup in the first case, or axes that really reach different backends or assets. They are not slow because they repeat each other. Recent audits (#8010 and others) had already pruned a lot. So this PR is a small set of high-confidence cuts, plus two CI changes that save the most time.

The diff has no production changes: 21 lines added, 176 removed, all in tests and CI.

Changes

CI routing (largest time savings)

  • Standalone demos jobs now run only the launch matrix. Both demos jobs were re-running the file's 40 supervisor, AST-discovery and script-wiring tests. Those tests ignore the runtime group and already pass in isaaclab (core) [1/3]. That was about 58 s of test time per demos job (measured in junit). I checked locally that the new -k still collects all 16 demo launch cases.
  • Newton solver-matrix kernels are now warmed after merges. test_initialize_solver_populates_canonical_state[kamino_internal_contacts] took 142 s in CI, and almost all of it is compiling Kamino's collision detector: 1.7 s with a warm cache. Nothing in the post-merge warmer compiles Kamino, so this case is the long pole of the isaaclab_newton job. The file is now in warp-cache-warm.

Removed tests, each with its keeper

Removed Keeper
test_franka_pose_abs (OSC) test_franka_pose_abs_with_nullspace_centering uses the identical controller config plus a nullspace term. ..._fixed_impedance_with_gravity_compensation keeps the nullspace_control="none" branch.
test_{training,play}_dispatches_libraries_to_explicitly_named_adapters (8 cases) These string-matched the private dispatch._RL_WORKFLOW_MODULES. test_training_and_play_write_bundles goes through the same dispatch map and asserts run.framework == library, which each adapter hard-codes.
test_adapters_default_to_one_warmup_step (8 cases) The same bundle test asserts warmup_steps == 1 for every library in both train and play. That value is args_cli.warmup_steps.
OV IMU/PVA test_single_dof_pendulum and test_indirect_attachment None needed. These were permanent @skip stubs whose bodies were just pytest.fail("port from …"), pointing at PhysX tests that no longer exist.

Parametrization

  • OV test_frame_transformer_duplicate_body_names: 4 cases → 2. Its comment says each value is covered once, but device was crossed with the path cases. Device is now folded into those two cases; test_frame_transformer_feet_wrt_base still covers both devices.
  • Newton test_filtered_contact_forces_and_points: CUDA only. It was the only test in the file crossing device with the pipeline. The file documents that the sensor has no device-specific path, and the rotated lifecycle and horizontal-collision cases keep CPU coverage.

Test quality

  • test_terrain_generator.py no longer depends on test order. Three tests edited the module-level ROUGH_TERRAINS_CFG in place, so test_terrain_flat_patches ran with whatever cache, seed and curriculum settings an earlier test left. Each test now takes ROUGH_TERRAINS_CFG.copy(), which is a deep copy.

Checked and kept

  • The three backend env-smoke files (PhysX, OvPhysX, Newton): each forces a different physics preset.
  • The benchmark e2e over 4 RL libraries: each library has its own train and play adapter.
  • test_valid_configs (131 s): it is the only per-asset spawn contract.
  • Newton test_newton_cfg_post_init_propagates_class_type: it costs about 0 s, needs no simulation, and pinpoints the failure better than the GPU test that would also catch it.
  • The 142 s Kamino case: it is the only coverage of that solver path. The fix is warming its kernels, not deleting it.
  • Big first-case times: OSC 101 s, OV articulation 97 s, Newton actuators-on-PhysX 113 s. These are app and kernel warmup.

Follow-ups (not in this PR, lower confidence)

  • test_bam_actuator_mjwarp::test_native_pendulum_matches_recorded_trajectory[cpu-*] (about 26 s, mostly CPU kernel compile). This is the only CPU-device run of the full BAM trajectory against its golden; deciding whether to drop it needs the actuator owners.
  • test_rl_device_separation::test_sb3_device_separation_gpu could fold into the SB3 case of test_wrappers.py by adding the numpy type assertions there.
  • OV contact sensor test_multi_body_per_sensor_indexing crosses device with detail mode (8 cases). 4 rotated cases would still cover each flag on and off.
  • OV IMU/PVA test_reset and test_no_stale_data_after_scene_reset: the CPU cases could move to test_devices(DeviceScope.CUDA).
  • Perf outliers to profile: Isaac-Reach-Franka-OSC takes 103 s on PhysX and 93 s on OvPhysX, vs 2 s on Newton. IsaacContrib-Velocity-Flat-UnitreeA1 takes 99 s, vs 14 s for the Rough variant.

Test plan

  • test_terrain_generator.py: 27 passed locally.
  • Newton test_contact_sensor.py -k filtered: passes on CUDA.
  • Standalone -k collects exactly the 16 launch-matrix cases (it was 16 plus 24 duplicated cases).
  • py_compile on changed files, YAML load, pre-commit, and the changelog check against upstream main.
  • CI: the OSC (needs Kit) and OV (needs the ovphysx wheel) files run in CI only. The benchmark adapter files already fail locally on the baseline (missing skrl/sb3, no Kit) and run in CI.
  • CI: the warp-cache-warm change only runs post-merge.

🤖 Generated with Claude Code

Both demos jobs re-ran the file's 40 supervisor, discovery and script-wiring
tests, which ignore the runtime group and already pass in
isaaclab (core) [1/3].
test_newton_manager_abstraction.py is the only user of Kamino's collision
detector; compiling it cold takes ~140 s and makes the file the long pole
of the isaaclab_newton job.
- test_franka_pose_abs: test_franka_pose_abs_with_nullspace_centering runs
  the same controller config plus a nullspace term, and the gravity
  compensation test keeps the nullspace-free branch.
- Benchmark dispatch tests string-matched a private module map, and the
  warmup default test restated what the train/play bundle test asserts for
  every library end to end.
- OV IMU and PVA pendulum tests were permanent skip stubs pointing at PhysX
  tests that no longer exist.
The OV frame transformer duplicate-name test said each value was covered
once but crossed device with the path cases; the Newton filtered contact
test was the only case in its file not rotating device.
Each test edited ROUGH_TERRAINS_CFG in place, so the flat patch test ran
with whatever cache and seed settings an earlier test left behind.
@github-actions github-actions Bot added isaac-lab Related to Isaac Lab team infrastructure labels Oct 25, 2026
@StafaH

StafaH commented Oct 25, 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 25, 2026
@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; no actionable issue was found.

Summary

This PR trims repeated CI work and test combinations without changing production code.

  • The standalone demo jobs run only the example launch tests.
  • The post-merge cache warmer runs a Newton solver test that compiles Kamino kernels.
  • CI no longer runs separate checks already covered by broader tests.
  • The OV IMU and PVA suites no longer contain skipped pendulum test stubs.
  • Two sensor tests cover independent settings without running every combination.
  • Terrain generator tests keep their setting changes in separate config copies.

Intent recorded: StafaH explicitly chose CUDA-only filtered-contact testing because the sensor has no device-specific path. The PR also keeps raycasting demos outside these CI jobs because dedicated sensor tests cover them. Neither choice is reported as an issue.

Review checks were limited to code and configuration inspection; no simulation tests were run.

Reviews (1) · Last reviewed commit: "Shorten test audit comments" · Reviewed by Greptile

@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: Style consistency (1). Other reviewed categories look good.

  • PR description: Correct the stale +21/-176 totals and demo-case count, remove the prohibited attribution footer, and provide reproducible baseline/candidate commands, revisions, hardware, backend, warmup, and timing metrics for the claimed CI savings.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Implementation looks good.
  • Style consistency: The three new terrain configuration copies use legacy cfg.copy() instead of the preferred clone() API; replace them and import clone.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 1 inline finding.

Automated review; human maintainers own approval decisions.


# create terrain generator
cfg = ROUGH_TERRAINS_CFG
cfg = ROUGH_TERRAINS_CFG.copy()

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 — Use clone() for new config copies

The contribution guide directs new code to isaaclab.utils.clone; cfg.copy() is only retained for existing calls. Replace the three new ROUGH_TERRAINS_CFG.copy() calls with clone(ROUGH_TERRAINS_CFG) and import clone.

@StafaH
StafaH merged commit e907f82 into isaac-sim:main Oct 26, 2026
92 of 93 checks passed
@StafaH
StafaH deleted the test/ci-test-audit branch October 26, 2026 04:08
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.

3 participants