Repository navigation
[CI] Trim duplicated tests and re-runs found in a CI test audit - #8819
Conversation
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.
|
run-ci |
[Medium impact] This PR appears safe to merge; no actionable issue was found. SummaryThis PR trims repeated CI work and test combinations without changing production code.
Intent recorded: 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 |
There was a problem hiding this comment.
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 preferredclone()API; replace them and importclone. - 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() |
There was a problem hiding this comment.
🟡 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.
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-testscriteria.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)
isaaclab (core) [1/3]. That was about 58 s of test time per demos job (measured in junit). I checked locally that the new-kstill collects all 16 demo launch cases.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 theisaaclab_newtonjob. The file is now inwarp-cache-warm.Removed tests, each with its keeper
test_franka_pose_abs(OSC)test_franka_pose_abs_with_nullspace_centeringuses the identical controller config plus a nullspace term...._fixed_impedance_with_gravity_compensationkeeps thenullspace_control="none"branch.test_{training,play}_dispatches_libraries_to_explicitly_named_adapters(8 cases)dispatch._RL_WORKFLOW_MODULES.test_training_and_play_write_bundlesgoes through the same dispatch map and assertsrun.framework == library, which each adapter hard-codes.test_adapters_default_to_one_warmup_step(8 cases)warmup_steps == 1for every library in both train and play. That value isargs_cli.warmup_steps.test_single_dof_pendulumandtest_indirect_attachment@skipstubs whose bodies were justpytest.fail("port from …"), pointing at PhysX tests that no longer exist.Parametrization
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_basestill covers both devices.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.pyno longer depends on test order. Three tests edited the module-levelROUGH_TERRAINS_CFGin place, sotest_terrain_flat_patchesran with whatever cache, seed and curriculum settings an earlier test left. Each test now takesROUGH_TERRAINS_CFG.copy(), which is a deep copy.Checked and kept
test_valid_configs(131 s): it is the only per-asset spawn contract.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.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_gpucould fold into the SB3 case oftest_wrappers.pyby adding the numpy type assertions there.test_multi_body_per_sensor_indexingcrosses device with detail mode (8 cases). 4 rotated cases would still cover each flag on and off.test_resetandtest_no_stale_data_after_scene_reset: the CPU cases could move totest_devices(DeviceScope.CUDA).Isaac-Reach-Franka-OSCtakes 103 s on PhysX and 93 s on OvPhysX, vs 2 s on Newton.IsaacContrib-Velocity-Flat-UnitreeA1takes 99 s, vs 14 s for the Rough variant.Test plan
test_terrain_generator.py: 27 passed locally.test_contact_sensor.py -k filtered: passes on CUDA.-kcollects exactly the 16 launch-matrix cases (it was 16 plus 24 duplicated cases).py_compileon changed files, YAML load, pre-commit, and the changelog check against upstream main.ovphysxwheel) files run in CI only. The benchmark adapter files already fail locally on the baseline (missingskrl/sb3, no Kit) and run in CI.warp-cache-warmchange only runs post-merge.🤖 Generated with Claude Code