From 01640ae632459b7e1edfdb0a0f141cb9874eef2e Mon Sep 17 00:00:00 2001 From: Mustafa H <34825877+StafaH@users.noreply.github.com> Date: Wed, 2 Dec 2026 05:53:45 +0000 Subject: [PATCH 01/11] [CI] Overhaul test infrastructure and tier CI into PR, post-merge and nightly - Add a one-process PR gate (pr marker) and duration-balanced sharding with per-file chunk splitting driven by tools/test_durations.json. - Replace per-package Docker test jobs with one sharded matrix job; keep the required check names through an alias job. - Add the postmerge tier for full environment sweeps and heavy renderers; move benchmarks and the performance-regression job to nightly. - Remove dead test infrastructure and code, rewrite slow or redundant tests to target regressions. --- .../actions/_lib/compute-deps-hash/action.yml | 1 + .../actions/_lib/test_performance_workflow.py | 31 - .../_lib/test_registry_credential_fallback.py | 3 + .github/actions/ecr-build-push-pull/README.md | 10 + .../actions/ecr-build-push-pull/action.yml | 15 +- .github/actions/run-package-tests/action.yml | 66 +- .../test_cleanup_docker_storage.py | 45 +- .github/actions/run-tests/action.yml | 79 +- .github/actions/run-tests/run_tests.sh | 171 +- .../test_junit_to_omni_github_results.py | 66 +- .github/scripts/runner_health.sh | 24 - .github/workflows/README.md | 28 + .github/workflows/build.yaml | 897 ++----- .github/workflows/changelog-check.yml | 3 +- .github/workflows/docs.yaml | 36 +- .github/workflows/license-check.yaml | 14 +- .../performance-regression-check.yml | 104 - .github/workflows/pr-gate.yaml | 230 ++ .github/workflows/pre-commit.yaml | 1 + .github/workflows/test-fabric-multi-gpu.yaml | 74 - .github/workflows/test-multi-gpu-pytest.yaml | 4 + .github/workflows/test-multi-gpu.yaml | 154 -- .github/workflows/tools-tests.yml | 55 +- .github/workflows/wheel.yml | 136 +- .github/workflows/windows-ci.yaml | 4 +- conftest.py | 173 ++ docker/test/test_carb_env_shim.py | 29 +- docker/test/test_container_profiles.py | 23 +- docker/test/test_docker.py | 2 + docker/test/test_dockerfile_nonroot.py | 18 +- docker/test/test_image_invariants.py | 6 + docker/test/test_run_install_ci.py | 4 + docker/test/test_security_dependencies.py | 13 +- docker/utils/x11_utils.py | 7 +- .../features/imitation-learning/skillgen.rst | 2 +- docs/source/refs/contributing.rst | 15 +- pyproject.toml | 4 + scripts/benchmarks/benchmark_renderer.py | 21 +- .../test/test_benchmark_renderer.py | 87 +- .../benchmarks/test/test_benchmark_smoke.py | 72 +- scripts/benchmarks/test/test_early_stop.py | 153 +- scripts/benchmarks/test/test_nsys_trace.py | 31 +- scripts/benchmarks/test/test_runtime_smoke.py | 18 +- scripts/benchmarks/test/test_startup_smoke.py | 9 +- .../benchmarks/test/test_training_adapters.py | 55 +- .../locomanipulation_sdg/generate_data.py | 29 - .../gr00t/rollout_policy.py | 99 - .../gr00t/test/test_policy_client.py | 1 + scripts/tools/test/test_blender_obj.py | 4 +- scripts/tools/test/test_cosmos_prompt_gen.py | 190 +- scripts/tools/test/test_hdf5_to_mp4.py | 261 +- scripts/tools/test/test_mp4_to_hdf5.py | 304 +-- .../tools/test/test_process_meshes_to_obj.py | 7 - .../test_train_and_publish_checkpoints.py | 8 +- .../kit-physx-isaac_rtx-rgb.png | 3 - .../kit-physx-isaac_rtx-rgb_hdr.png | 3 - .../test/rendering/rendering_cases.py | 52 +- .../test/rendering/rendering_runner.py | 2 +- .../test/rendering/rendering_runtime.py | 2 +- .../test/rendering/rendering_scene_cfgs.py | 6 +- .../test/rendering/test_golden_image.py | 38 +- .../rendering/test_rendering_architecture.py | 15 +- .../test/rendering/test_rendering_kit.py | 6 +- ...st_rendering_kitless_newton_newton_warp.py | 36 +- .../test_rendering_kitless_newton_ovrtx.py | 9 +- ...t_rendering_kitless_ovphysx_newton_warp.py | 9 +- .../test_rendering_kitless_ovphysx_ovrtx.py | 9 +- .../test/rendering/test_visualizers_kit.py | 17 +- .../test/rendering/test_visualizers_rtx.py | 15 +- .../changelog.d/ci-test-overhaul.removed.rst | 12 + .../isaaclab/isaaclab/benchmark/builders.py | 32 - source/isaaclab/isaaclab/benchmark/cli.py | 8 - .../benchmark/entrypoints/early_stop.py | 10 - source/isaaclab/isaaclab/benchmark/metrics.py | 31 - .../benchmark/recorders/record_cpu_info.py | 10 - .../benchmark/recorders/record_gpu_info.py | 10 - .../benchmark/recorders/record_memory_info.py | 10 - .../recorders/record_version_info.py | 9 - source/isaaclab/isaaclab/cli/utils.py | 6 - .../isaaclab/controllers/pink_ik/pink_ik.py | 14 - source/isaaclab/isaaclab/controllers/utils.py | 49 - .../isaaclab/envs/leapp_deployment_env.py | 1 - .../mdp/actions/pink_task_space_actions.py | 1 - .../isaaclab/physics/physics_manager.py | 10 - .../isaaclab/ui/widgets/image_plot.py | 13 - .../ui/widgets/manager_live_visualizer.py | 72 - .../isaaclab/utils/datasets/episode_data.py | 8 - .../datasets/hdf5_dataset_file_handler.py | 10 - source/isaaclab/isaaclab/utils/warp/fabric.py | 15 - .../actuators/test_actuator_collection.py | 39 +- .../isaaclab/test/actuators/test_dc_motor.py | 26 +- .../test/actuators/test_ideal_pd_actuator.py | 211 +- .../test/actuators/test_implicit_actuator.py | 111 - .../test/actuators/test_newton_adapter.py | 6 +- .../test/app/test_experience_files.py | 2 +- .../app/test_launch_simulation_require_kit.py | 30 +- .../isaaclab/test/app/test_loading_screen.py | 2 +- .../test/app/test_remote_greetings.py | 9 +- .../test/app/test_rtx_viewer_camera.py | 101 +- .../test/app/test_standalone_scripts.py | 188 +- .../isaaclab/test/assets/contract/backends.py | 102 +- .../isaaclab/test/assets/contract/conftest.py | 26 +- .../contract/test_articulation_contract.py | 94 +- .../contract/test_rigid_object_contract.py | 10 +- .../test/assets/test_articulation_ordering.py | 611 +---- .../test_articulation_ordering_kernels.py | 339 +-- .../test/assets/test_asset_selector_cache.py | 14 +- source/isaaclab/test/benchmark/test_api.py | 30 +- .../test/benchmark/test_asset_suite_cli.py | 36 +- .../benchmark/test_asset_suite_definitions.py | 3 +- .../benchmark/test_asset_suite_dispatch.py | 3 +- .../test_asset_suite_generator_semantics.py | 38 +- .../test/benchmark/test_asset_suite_runner.py | 3 +- .../test_asset_suite_runtime_semantics.py | 32 +- .../test/benchmark/test_benchmark_cli.py | 26 + .../test/benchmark/test_benchmark_core.py | 87 +- .../isaaclab/test/benchmark/test_builders.py | 330 +-- .../isaaclab/test/benchmark/test_capture.py | 21 +- source/isaaclab/test/benchmark/test_cli.py | 103 - .../test/benchmark/test_distributed.py | 24 +- .../test/benchmark/test_formatters.py | 5 +- .../test/benchmark/test_method_benchmark.py | 52 +- .../isaaclab/test/benchmark/test_metrics.py | 98 +- source/isaaclab/test/benchmark/test_micro.py | 43 +- .../test/benchmark/test_multigpu_launcher.py | 21 +- .../test/benchmark/test_play_schema.py | 2 + .../isaaclab/test/benchmark/test_profiling.py | 20 +- .../benchmark/test_ray_caster_workload.py | 10 +- .../isaaclab/test/benchmark/test_recorders.py | 260 +- source/isaaclab/test/benchmark/test_schema.py | 100 +- .../isaaclab/test/benchmark/test_stepping.py | 31 +- .../benchmark/test_train_checkpoint_path.py | 33 +- source/isaaclab/test/cli/test_install.py | 60 +- .../test_installed_workflow_entrypoints.py | 57 +- .../cli/test_microbenchmark_entrypoint.py | 29 +- .../isaaclab/test/cli/test_misc_commands.py | 46 +- source/isaaclab/test/cli/test_ovrtx_log.py | 121 +- source/isaaclab/test/cli/test_prebundles.py | 30 +- .../test/cli/test_source_package_metadata.py | 23 +- .../test/cli/test_teleop_entrypoints.py | 40 +- .../test/cli/test_test_file_collection.py | 54 - .../test_test_orchestrator_result_handling.py | 739 ------ .../test/cli/test_uv_run_pyproject.py | 135 +- .../test/cli/test_wheel_builder_metadata.py | 1 + .../test/cloner/test_clone_plan_algebra.py | 59 +- .../test/cloner/test_replicate_session.py | 7 +- .../test/cloner/test_usd_replicate.py | 1 + source/isaaclab/test/conftest.py | 8 + .../test/controllers/test_controller_utils.py | 265 +- .../test/controllers/test_differential_ik.py | 363 +-- .../controllers/test_differential_ik_logic.py | 371 +++ .../pink_ik_g1_test_configs.json | 10 +- .../pink_ik_gr1_test_configs.json | 10 +- .../test/controllers/test_joint_impedance.py | 2 +- .../test/controllers/test_local_frame_task.py | 258 +- .../test_null_space_posture_task.py | 37 - .../controllers/test_operational_space.py | 1207 +-------- .../test_operational_space_logic.py | 610 +++++ .../isaaclab/test/controllers/test_pink_ik.py | 17 +- .../controllers/test_pink_ik_components.py | 166 +- .../test/devices/test_device_constructors.py | 164 +- source/isaaclab/test/envs/mdp/test_actions.py | 42 +- source/isaaclab/test/envs/mdp/test_events.py | 2 + .../test/envs/mdp/test_terminations.py | 3 + ...on_state_recorder_term_task_integration.py | 119 - .../test/envs/test_camera_image_mdp.py | 50 +- .../envs/test_diffik_jacobian_aliasing.py | 1 + .../test/envs/test_direct_marl_env_unit.py | 6 +- .../test/envs/test_direct_rl_env_unit.py | 5 +- source/isaaclab/test/envs/test_env_cfgs.py | 2 +- .../test/envs/test_env_destructors.py | 79 +- .../test/envs/test_gravity_observations.py | 4 +- .../test/envs/test_manager_based_env.py | 1 + ...ased_rl_env_obs_spaces_task_integration.py | 2 +- .../envs/test_manager_based_rl_env_unit.py | 46 +- source/isaaclab/test/envs/test_marl_utils.py | 38 +- .../envs/test_modify_env_param_curr_term.py | 15 +- .../test/envs/test_modify_env_param_logic.py | 22 + .../test/envs/test_null_command_term.py | 7 - .../test/envs/test_physics_action_handling.py | 2 +- .../isaaclab/test/envs/test_reset_states.py | 16 +- .../test/envs/test_root_state_events.py | 1 + .../isaaclab/test/envs/test_video_recorder.py | 18 +- .../test/envs/test_viewer_cfg_deprecation.py | 14 +- .../test/managers/test_event_manager.py | 98 +- .../test/managers/test_manager_base.py | 29 +- .../test/managers/test_observation_manager.py | 226 +- .../test/managers/test_recorder_manager.py | 32 - .../test/managers/test_reward_manager.py | 113 +- .../test/managers/test_scene_entity_cfg.py | 4 +- .../test/managers/test_termination_manager.py | 2 +- .../test/markers/test_vis_marker_registry.py | 1 + .../markers/test_visualization_markers.py | 554 +--- .../test_visualization_markers_logic.py | 550 ++++ .../test_multi_gpu_training_smoke.py | 1 + .../test_robot_load_performance.py | 2 +- .../renderers/test_camera_output_contract.py | 68 +- .../test_renderer_cfg_construction.py | 48 - .../renderers/test_segmentation_colors.py | 10 +- .../test_simulation_render_context.py | 18 +- .../test_visual_material_pipeline.py | 22 +- .../test/scene/test_interactive_scene.py | 87 +- .../scene/test_interactive_scene_logic.py | 100 + .../scene_data/test_scene_data_geometry.py | 14 +- source/isaaclab/test/sensors/test_camera.py | 75 +- .../test_camera_opencv_distortion_ovrtx.py | 2 +- .../sensors/test_camera_ppisp_gaussian.py | 45 +- .../test_camera_ppisp_gaussian_newton.py | 1 + .../test_camera_ppisp_gaussian_ovrtx.py | 207 -- .../sensors/test_joint_wrench_contract.py | 4 +- .../sensors/test_multi_mesh_ray_caster.py | 80 +- .../test_multi_mesh_ray_caster_camera.py | 246 +- .../test/sensors/test_multi_tiled_camera.py | 124 - .../test/sensors/test_opencv_distortion.py | 24 +- .../test/sensors/test_outdated_sensor.py | 2 +- .../test/sensors/test_ray_caster_camera.py | 52 - .../sensors/test_ray_caster_integration.py | 43 - .../test/sensors/test_ray_caster_kernels.py | 91 +- .../test/sensors/test_ray_caster_patterns.py | 96 +- .../isaaclab/test/sensors/test_sensor_base.py | 20 +- .../test/sensors/test_sensor_destructors.py | 48 +- .../sensors/test_sensor_update_schedule.py | 42 +- .../sensors/test_shared_sensor_kernels.py | 23 - .../test/sensors/test_tiled_camera.py | 143 - .../sensors/test_update_ray_caster_kernel.py | 20 +- .../test/sim/test_articulation_fragments.py | 13 - .../test_build_simulation_context_headless.py | 30 - source/isaaclab/test/sim/test_cloner.py | 23 +- .../test/sim/test_default_ground_plane.py | 10 +- .../test/sim/test_deformable_backend_split.py | 135 - .../isaaclab/test/sim/test_extension_utils.py | 26 +- .../test/sim/test_joint_drive_fragments.py | 24 +- .../isaaclab/test/sim/test_mass_fragments.py | 27 +- .../test/sim/test_material_fragments.py | 92 +- .../test/sim/test_mesh_collision_fragments.py | 34 - .../isaaclab/test/sim/test_mesh_converter.py | 61 +- .../isaaclab/test/sim/test_mjcf_converter.py | 15 +- .../test/sim/test_newton_model_utils.py | 43 +- .../sim/test_physics_manager_lifecycle.py | 19 +- .../test/sim/test_rendering_kit_defaults.py | 73 +- .../test/sim/test_schema_fragment_parity.py | 30 +- .../test/sim/test_schema_fragments.py | 37 +- .../sim/test_schema_writer_nested_targets.py | 2 +- source/isaaclab/test/sim/test_schemas.py | 45 +- .../test/sim/test_schemas_deprecation.py | 123 +- .../sim/test_schemas_kitless_fixed_joint.py | 3 + source/isaaclab/test/sim/test_schemas_shim.py | 129 +- .../test/sim/test_simulation_context.py | 182 +- .../test_simulation_context_visualizers.py | 41 +- .../test/sim/test_simulation_render_config.py | 63 - source/isaaclab/test/sim/test_spawn_cable.py | 20 +- .../test/sim/test_spawn_from_files.py | 12 - .../isaaclab/test/sim/test_spawn_materials.py | 21 - source/isaaclab/test/sim/test_spawn_meshes.py | 6 - source/isaaclab/test/sim/test_spawn_shapes.py | 135 +- .../isaaclab/test/sim/test_urdf_converter.py | 50 +- source/isaaclab/test/sim/test_utils_prims.py | 51 +- .../isaaclab/test/sim/test_utils_queries.py | 31 - .../test/sim/test_utils_queries_logic.py | 45 + .../isaaclab/test/sim/test_utils_semantics.py | 53 +- source/isaaclab/test/sim/test_utils_stage.py | 52 +- .../test/sim/test_utils_transforms.py | 318 +-- .../test/sim/test_views_xform_prim.py | 6 +- .../test/sim/test_visual_materials_kitless.py | 13 - .../test/terrains/test_terrain_generator.py | 26 +- .../test/terrains/test_terrain_importer.py | 22 +- .../terrains/test_terrain_importer_cfg.py | 28 + .../utils/test_array_conversion_registry.py | 26 +- source/isaaclab/test/utils/test_assets.py | 143 +- .../isaaclab/test/utils/test_backend_utils.py | 1 + .../test/utils/test_circular_buffer.py | 124 +- .../isaaclab/test/utils/test_configclass.py | 97 +- .../isaaclab/test/utils/test_delay_buffer.py | 16 +- source/isaaclab/test/utils/test_device.py | 26 +- .../test/utils/test_device_selection.py | 21 +- source/isaaclab/test/utils/test_dict.py | 44 +- .../utils/test_hdf5_dataset_file_handler.py | 3 +- source/isaaclab/test/utils/test_images.py | 109 +- .../test/utils/test_images_fused_normalize.py | 58 +- source/isaaclab/test/utils/test_logger.py | 246 +- source/isaaclab/test/utils/test_math.py | 142 +- source/isaaclab/test/utils/test_noise.py | 7 +- source/isaaclab/test/utils/test_renderers.py | 33 +- source/isaaclab/test/utils/test_string.py | 35 +- .../test/utils/test_tensor_processors.py | 5 +- source/isaaclab/test/utils/test_timer.py | 122 +- source/isaaclab/test/utils/test_version.py | 27 +- .../isaaclab/test/utils/test_version_logic.py | 37 + .../test/utils/test_warp_index_kernel.py | 29 +- source/isaaclab/test/utils/test_warp_math.py | 73 - .../isaaclab/test/utils/test_warp_memory.py | 123 +- .../test/utils/test_wrench_composer.py | 68 +- source/isaaclab/test/utils/test_yaml_io.py | 13 +- .../test/utils/warp/test_particle_mesh.py | 67 +- .../test/utils/warp/test_proxy_array.py | 298 +-- .../test/utils/warp/test_resolve_selection.py | 2 +- .../test/visualizers/test_key_event_source.py | 20 +- .../test/visualizers/test_streaming_view.py | 47 +- .../test/visualizers/test_visualizer.py | 39 +- .../changelog.d/ci-test-overhaul.skip | 0 .../test/test_valid_configs.py | 120 +- .../changelog.d/ci-test-overhaul.removed.rst | 1 + .../tacsl_sensor/visuotactile_render.py | 21 - .../test/actuators/test_thruster.py | 8 +- .../test/assets/test_multirotor.py | 114 +- .../test_drone_geometric_controllers.py | 2 +- .../test/rl/test_rlinf_extension.py | 40 +- .../test/sensors/test_visuotactile_render.py | 12 +- .../test/sensors/test_visuotactile_sensor.py | 4 +- .../changelog.d/ci-test-overhaul.removed.rst | 3 + .../envs/manager_based_rl_env_warp.py | 7 - .../deprecated/envs/mdp/observations.py | 12 - .../deprecated/envs/utils/io_descriptors.py | 17 - .../deprecated/managers/action_manager.py | 1 - .../managers/observation_manager.py | 20 - .../managers/termination_manager.py | 6 - .../deprecated/utils/manager_call_switch.py | 2 +- .../deprecated/utils/warp/__init__.py | 1 - .../deprecated/utils/warp/utils.py | 30 - .../deprecated/utils/warp_graph_cache.py | 12 +- .../test/envs/mdp/conftest.py | 170 ++ .../test/envs/mdp/test_actions_warp_parity.py | 54 +- .../test/envs/mdp/test_capture_safety.py | 219 +- .../test/envs/mdp/test_events_warp_parity.py | 62 - .../envs/mdp/test_observations_warp_parity.py | 160 -- .../test/envs/mdp/test_rewards_warp_parity.py | 174 -- .../envs/mdp/test_terminations_warp_parity.py | 174 -- .../test/envs/test_frontend.py | 187 +- .../test/envs/test_frontend_cfg_conversion.py | 25 - .../test/envs/test_mdp2_env.py | 8 +- .../test/mdp2/test_mdp2.py | 9 +- .../test/utils/test_manager_call_switch.py | 137 +- .../test/utils/test_warp_graph_cache.py | 122 +- .../changelog.d/ci-test-overhaul.skip | 0 .../test/foveated_render_cases.py | 2 +- source/isaaclab_fovi/test/test_active_gaze.py | 2 +- source/isaaclab_fovi/test/test_camera_cfg.py | 7 - .../test/test_foveated_camera_render_ovrtx.py | 2 +- .../changelog.d/ci-test-overhaul.fixed.rst | 3 + .../changelog.d/ci-test-overhaul.removed.rst | 3 + .../isaaclab_isaacsim/app/kit_launcher.py | 10 +- .../assets/articulation/kernels.py | 157 -- .../test/benchmark/__init__.py | 14 - .../test/benchmark/__init__.pyi | 22 - .../test/benchmark/benchmark_utils.py | 93 - .../test/app/test_kit_launcher.py | 53 +- .../test/app/test_kit_startup_performance.py | 2 +- .../test/app/test_non_headless_launch.py | 2 +- .../test/assets/test_articulation.py | 45 - .../test/assets/test_deformable_object.py | 57 +- .../test/assets/test_surface_gripper.py | 1 + .../test/envs/test_texture_randomization.py | 1 - .../renderers/test_isaac_rtx_renderer_cfg.py | 15 - .../test_isaac_rtx_renderer_contract.py | 12 +- ...aac_rtx_renderer_rigid_object_rendering.py | 4 +- .../test_isaac_rtx_renderer_utils.py | 10 +- .../test/renderers/test_kit_viewport_utils.py | 58 - .../test/renderers/test_visual_material.py | 39 - .../test/sensors/test_contact_sensor.py | 13 +- .../test/sensors/test_frame_transformer.py | 6 +- .../test/sensors/test_imu.py | 2 +- .../test/sensors/test_joint_wrench_sensor.py | 16 +- .../test/sim/test_physx_scene_data_backend.py | 148 +- .../test/sim/test_simulation_context_kit.py | 2 +- .../sim/test_simulation_stage_in_memory.py | 2 +- .../test/sim/test_usd_export.py | 10 +- .../test/sim/test_views_xform_prim_fabric.py | 36 +- .../sim/test_views_xform_prim_isaacsim.py | 2 +- .../test/test_isaaclab_physx_alias.py | 2 +- .../changelog.d/ci-test-overhaul.removed.rst | 4 + .../isaaclab_mimic/datagen/utils.py | 25 - .../occupancy_map_utils.py | 61 - .../locomanipulation_sdg/path_utils.py | 38 - .../motion_planners/curobo/curobo_planner.py | 36 - .../motion_planners/motion_planner_base.py | 12 - .../isaaclab_mimic/test/mimic_test_utils.py | 81 - .../test/test_curobo_planner_cube_stack.py | 49 +- .../test/test_curobo_planner_franka.py | 6 - .../test/test_generate_dataset.py | 150 ++ .../test_generate_dataset_franka_state.py | 164 -- ...test_generate_dataset_franka_visuomotor.py | 98 - .../test_generate_dataset_gr1t2_nutpour.py | 98 - .../test_generate_dataset_gr1t2_pickplace.py | 98 - .../test/test_generate_dataset_skillgen.py | 103 +- .../test/test_locomanipulation_sdg_cfg.py | 4 - .../test/test_mimic_humanoid_physics.py | 17 +- .../test/test_selection_strategy.py | 2 +- .../changelog.d/ci-test-overhaul.skip | 0 .../test/test_configuration.py | 18 +- .../remove-dead-newton-code.removed.rst | 6 + .../assets/articulation/articulation.py | 15 - .../assets/articulation/articulation_data.py | 2 - .../assets/articulation/kernels.py | 136 - .../isaaclab_newton/physics/newton_manager.py | 12 - .../contact_sensor/contact_sensor_cfg.py | 5 - .../sim/spawners/mpm/__init__.pyi | 2 - .../sim/spawners/mpm/visualization.py | 69 - .../test/assets/test_articulation.py | 159 +- .../test/assets/test_bam_actuator_mjwarp.py | 10 +- .../test/assets/test_cable_object.py | 57 +- .../test/assets/test_deformable_object.py | 164 +- .../test/assets/test_joint_coordinates.py | 53 +- .../test/assets/test_mpm_object.py | 16 +- .../assets/test_newton_actuators_newton.py | 299 +-- .../assets/test_newton_articulation_logic.py | 365 +++ .../test/assets/test_rigid_object.py | 121 +- .../test/assets/test_surface_gripper.py | 12 +- .../test/cloner/test_clone_xform_math.py | 50 - .../cloner/test_collision_approximation.py | 47 +- .../cloner/test_newton_builder_world_hook.py | 248 -- ...der_labels.py => test_newton_replicate.py} | 241 +- .../test/cloner/test_visual_shape_import.py | 36 - .../test/controllers/test_conveyor.py | 6 +- .../controllers/test_newton_controllers.py | 7 +- .../test/controllers/test_newton_ik_solver.py | 64 +- .../test/physics/test_coupler.py | 80 +- .../test/physics/test_coupler_runtime.py | 1 - .../physics/test_mjwarp_tendon_control.py | 8 +- .../physics/test_mpm_reset_mask_contract.py | 11 +- .../physics/test_newton_fabric_body_sync.py | 4 +- .../test/physics/test_newton_manager.py | 368 +-- .../physics/test_newton_manager_stepping.py | 340 +++ .../test/physics/test_newton_solvers.py | 11 +- .../test/physics/test_vbd_core.py | 3 - ...on_warp_renderer_rigid_object_rendering.py | 36 - .../test/renderers/test_scene_lighting.py | 7 - .../test/renderers/test_segmentation.py | 30 +- .../test/renderers/test_visual_material.py | 36 + .../test_camera_opencv_distortion_newton.py | 46 +- .../test/sensors/test_contact_sensor.py | 182 +- ...istory.py => test_contact_sensor_logic.py} | 67 +- .../test/sensors/test_frame_transformer.py | 15 +- .../isaaclab_newton/test/sensors/test_imu.py | 80 +- .../test/sensors/test_joint_wrench_sensor.py | 27 +- .../sensors/test_newton_raycast_sensor.py | 7 +- .../isaaclab_newton/test/sensors/test_pva.py | 6 +- .../test/sensors/test_site_injection.py | 80 +- .../test/sim/test_cable_usd_import.py | 7 +- .../test/sim/test_mpm_spawners.py | 59 +- .../test/sim/test_mpm_visualization.py | 98 - .../test/sim/test_newton_schemas.py | 147 +- .../test/sim/test_usd_export.py | 24 +- .../test/sim/test_views_xform_prim_newton.py | 6 +- .../changelog.d/ci-test-overhaul.removed.rst | 1 + .../isaaclab_ov/renderers/ovrtx_usd.py | 9 - .../test/assets/test_articulation.py | 2 +- .../test/assets/test_deformable_object.py | 23 +- .../test/assets/test_rigid_object.py | 4 +- source/isaaclab_ov/test/envs/test_events.py | 40 + .../test/physics/test_ovphysx_joint_import.py | 8 +- .../physics/test_ovphysx_manager_lifecycle.py | 24 +- .../test/physics/test_ovphysx_schemas.py | 2 +- .../test/sensors/test_contact_sensor.py | 43 +- .../test/sensors/test_frame_transformer.py | 6 +- source/isaaclab_ov/test/sensors/test_imu.py | 81 +- .../test/sensors/test_joint_wrench_sensor.py | 22 +- source/isaaclab_ov/test/sensors/test_pva.py | 9 +- .../isaaclab_ov/test/sim/test_ovphysx_view.py | 89 +- .../isaaclab_ov/test/sim/test_usd_export.py | 10 +- .../test/test_ovrtx_annotator_utils.py | 45 +- .../isaaclab_ov/test/test_ovrtx_clone_plan.py | 33 +- source/isaaclab_ov/test/test_ovrtx_lidar.py | 3 + .../test/test_ovrtx_renderer_contract.py | 2194 +--------------- .../test/test_ovrtx_renderer_kernels.py | 120 +- ...t_ovrtx_renderer_rigid_object_rendering.py | 2 + .../test/test_ovrtx_renderer_unit.py | 2159 +++++++++++++++ source/isaaclab_ov/test/test_ovrtx_usd.py | 184 +- ...ndomize_rigid_body_collider_offsets_mdp.py | 166 -- .../test_randomize_rigid_body_material_mdp.py | 113 - .../changelog.d/ci-test-overhaul.skip | 0 source/isaaclab_ppisp/test/test_ppisp.py | 1 + .../ci-test-cutover-l7.removed.rst | 3 + .../isaaclab_rl/entrypoints/common.py | 14 - source/isaaclab_rl/test/export/conftest.py | 13 +- .../test/export/test_leapp_export_flow.py | 22 - .../test/export/test_leapp_proxy.py | 25 - .../test/export/test_sb3_leapp_export.py | 28 - .../test/test_apply_video_recording.py | 63 +- .../test/test_checkpoint_manifest.py | 6 + source/isaaclab_rl/test/test_entrypoints.py | 70 +- .../test/test_entrypoints_common.py | 26 +- .../test/test_pretrained_checkpoint.py | 28 - .../test/test_typed_preset_cli_train_play.py | 69 +- source/isaaclab_rl/test/test_wandb.py | 31 +- source/isaaclab_rl/test/test_wrappers.py | 65 +- .../changelog.d/ci-test-overhaul.removed.rst | 7 + .../contrib/automate/automate_algo_utils.py | 80 +- .../contrib/automate/automate_log_utils.py | 13 - .../contrib/automate/industreal_algo_utils.py | 56 - .../contrib/automate/soft_dtw_cuda.py | 22 +- .../contrib/deploy/mdp/events.py | 4 - .../gb300_sharpa_insertion/endpoint.py | 14 - .../keyboard/keyboards/keyboard_geometry.py | 20 - .../contrib/keyboard/mdp/__init__.pyi | 3 +- .../contrib/keyboard/mdp/terminations.py | 15 - .../locomanip_pick_place/mdp/__init__.pyi | 2 - .../locomanip_pick_place/mdp/observations.py | 40 - .../multitask_manipulation/mdp/__init__.pyi | 4 - .../mdp/observations.py | 18 - .../mdp/terminations.py | 14 - .../contrib/nist/mdp/__init__.pyi | 2 - .../contrib/nist/mdp/assembly_variants.py | 5 - .../contrib/nist/utils/pose_offset.py | 12 - .../isaaclab_tasks/contrib/nist/utils/sdf.py | 8 +- .../nist/utils/variant_event_combinators.py | 6 - .../isaaclab_tasks/core/lift/mdp/utils.py | 6 - .../isaaclab_tasks/utils/success_monitor.py | 10 - .../benchmark/test_render_benchmark_cfg.py | 44 +- .../test/contrib/contrib_env_test_utils.py | 21 +- .../test/contrib/stack/test_so101_pose_ik.py | 37 +- .../stack/test_so101_teleop_success.py | 33 +- .../test/contrib/test_active_gaze_ppo.py | 2 +- .../test/contrib/test_agibot_place_env_cfg.py | 29 +- .../test/contrib/test_automate_soft_dtw.py | 9 - .../test/contrib/test_cartpole_lidar.py | 33 +- .../test/contrib/test_cartpole_lidar_cfg.py | 70 +- .../contrib/test_contrib_environments_kit.py | 8 +- .../test_contrib_environments_kit_cameras.py | 8 +- .../test_contrib_environments_kitless.py | 32 +- .../test/contrib/test_dr_legs_env_cfg.py | 6 +- .../test/contrib/test_forge_utils.py | 2 +- .../test/contrib/test_franka_pour_env_cfg.py | 30 +- .../test_franka_pour_reset_dataset_io.py | 2 + .../test/contrib/test_franka_pour_spill.py | 3 + .../test/contrib/test_g1_newton_actions.py | 13 +- .../test/contrib/test_g1_ovphysx.py | 26 +- .../contrib/test_gr1t2_bounded_pink_action.py | 66 +- .../test_heterogeneous_task_catalog.py | 24 +- .../test_humanoid_teleop_preparation.py | 34 +- .../test/contrib/test_nist_reset_monitor.py | 7 +- .../test/contrib/test_teleop_task_assets.py | 55 +- .../test_ur10_particle_push_env_cfg.py | 17 +- .../core/test_agent_preset_composition.py | 52 +- .../test/core/test_anymal_symmetry.py | 5 - .../test/core/test_cartpole_camera_presets.py | 22 +- .../test/core/test_checkpoint_path.py | 2 + .../test/core/test_dexterous_task_math.py | 28 +- .../test_distributed_device_resolution.py | 53 +- .../core/test_env_cfg_no_forbidden_imports.py | 172 +- .../test/core/test_environment_determinism.py | 180 +- .../core/test_environments_isaacsim_physx.py | 30 +- .../test/core/test_environments_newton.py | 17 +- .../test/core/test_environments_ovphysx.py | 31 +- .../test_environments_ovphysx_pr_smoke.py | 29 + .../test/core/test_environments_pr_smoke.py | 57 + .../test/core/test_handover_env.py | 2 +- source/isaaclab_tasks/test/core/test_hydra.py | 272 +- .../test/core/test_lazy_export_stubs.py | 141 +- .../test/core/test_lift_env_cfg.py | 18 +- .../core/test_lift_kuka_ovphysx_presets.py | 3 +- .../test/core/test_lift_reset.py | 2 +- .../core/test_multi_agent_environments.py | 23 +- .../test_newton_actuator_manager_authoring.py | 39 +- .../test/core/test_parse_cfg.py | 24 - .../test/core/test_pendulum_marl_cfg.py | 15 - .../test/core/test_preset_cli.py | 72 +- .../test/core/test_preset_kit_decision.py | 51 +- .../test/core/test_reach_franka_presets.py | 30 +- .../test/core/test_rl_device_separation.py | 49 - .../test/core/test_runtime_compatibility.py | 77 +- .../core/test_shadow_hand_camera_presets.py | 97 +- .../test_sim_launcher_visualizer_intent.py | 25 +- .../test/core/test_video_recording.py | 15 +- .../test/core/test_visualizer_preset_names.py | 24 +- .../test/core/test_xr_camera_feed_presets.py | 22 +- source/isaaclab_tasks/test/env_test_utils.py | 245 +- .../test/neural/nerd_test_utils.py | 2 +- .../test/neural/test_mjwarp_nerd_solver.py | 22 +- .../test/neural/test_nerd_solver.py | 20 +- .../test/neural/test_neural_workflows.py | 27 +- .../test/test_rmpflow_reset_stability.py | 2 - .../changelog.d/ci-test-overhaul.skip | 0 .../test_experimental_mdp2_environments.py | 20 +- .../ci-test-cutover-l7.removed.rst | 2 + source/isaaclab_teleop/docs/OVXR_ADAPTER.md | 6 +- .../deprecated/openxr/manus_vive_utils.py | 18 - .../isaaclab_teleop/session_lifecycle.py | 5 - source/isaaclab_teleop/test/conftest.py | 17 + source/isaaclab_teleop/test/teleop_stubs.py | 104 + .../test/test_cloudxr_lifecycle.py | 179 +- .../test/test_control_events.py | 225 +- .../test/test_device_selection.py | 58 +- .../isaaclab_teleop/test/test_entrypoints.py | 25 +- .../test/test_hand_debug_viz.py | 161 +- .../test/test_host_client_messaging.py | 107 +- .../test/test_openxr_device_constructors.py | 27 +- .../test/test_operator_input.py | 32 +- .../test/test_ov_libraries_xr.py | 38 +- .../test_ovrtx_transfer_native_harness.py | 28 +- .../test/test_ovxr_renderer.py | 115 +- .../test/test_record_demos_commands.py | 21 +- .../isaaclab_teleop/test/test_retargeters.py | 45 +- .../test/test_session_step_failure.py | 93 +- .../isaaclab_teleop/test/test_system_check.py | 54 +- .../test/test_target_frame_rebase.py | 52 +- .../test/test_teleop_entrypoint_units.py | 56 +- .../test/test_teleop_replay_bootstrap.py | 5 + .../test/test_teleop_scripts_smoke.py | 5 + .../test/test_xr_camera_feed.py | 32 +- .../test/test_xr_camera_feed_kit_scene_ui.py | 98 +- .../changelog.d/ci-test-overhaul.removed.rst | 1 + .../newton/newton_rtx_appearance.py | 3 - source/isaaclab_visualizers/test/__init__.py | 4 - .../test/test_key_event_sources.py | 93 +- .../test_kit_visualizer_scene_partitioning.py | 1 - .../test/test_newton_rtx_appearance.py | 6 - .../test/test_newton_task_views.py | 13 +- .../test/test_newton_visual_material.py | 14 - ...r.py => test_newton_visualizer_adapter.py} | 63 +- .../test_newton_visualizer_viewer_release.py | 20 - ...nts.py => test_visualizer_lidar_points.py} | 13 +- ... test_visualizer_newton_overlay_meshes.py} | 2 +- tools/_file_scheduler.py | 1 - tools/_process.py | 319 +++ tools/_selection.py | 357 +++ tools/changelog/pyproject.toml | 1 + tools/changelog/test/test_cli.py | 8 + tools/conftest.py | 2322 ++++------------- .../media/test_capture_renderer_gallery.py | 61 +- tools/ovrtx_log.py | 12 +- tools/performance_regression/test_compare.py | 4 + .../test_source_revision.py | 4 + tools/run_all_tests.py | 398 --- tools/run_train_envs.py | 86 - tools/skills/pyproject.toml | 1 + tools/skills/test/test_validate.py | 77 +- tools/test/test_environ_docs.py | 252 +- tools/test_crash_journal.py | 150 +- tools/test_durations.json | 2228 ++++++++++++++++ tools/test_orchestrator.py | 483 ++++ tools/test_settings.py | 186 +- tools/update_test_durations.py | 56 + 632 files changed, 16075 insertions(+), 30259 deletions(-) delete mode 100755 .github/scripts/runner_health.sh delete mode 100644 .github/workflows/performance-regression-check.yml create mode 100644 .github/workflows/pr-gate.yaml delete mode 100644 .github/workflows/test-fabric-multi-gpu.yaml delete mode 100644 .github/workflows/test-multi-gpu.yaml delete mode 100644 source/_isaaclab_testing/test/rendering/golden_images/renderers/gaussian_splats_valiant_1env/kit-physx-isaac_rtx-rgb.png delete mode 100644 source/_isaaclab_testing/test/rendering/golden_images/renderers/gaussian_splats_valiant_1env/kit-physx-isaac_rtx-rgb_hdr.png create mode 100644 source/isaaclab/changelog.d/ci-test-overhaul.removed.rst delete mode 100644 source/isaaclab/test/actuators/test_implicit_actuator.py create mode 100644 source/isaaclab/test/benchmark/test_benchmark_cli.py delete mode 100644 source/isaaclab/test/benchmark/test_cli.py delete mode 100644 source/isaaclab/test/cli/test_test_file_collection.py delete mode 100644 source/isaaclab/test/cli/test_test_orchestrator_result_handling.py create mode 100644 source/isaaclab/test/controllers/test_differential_ik_logic.py create mode 100644 source/isaaclab/test/controllers/test_operational_space_logic.py delete mode 100644 source/isaaclab/test/envs/test_action_state_recorder_term_task_integration.py create mode 100644 source/isaaclab/test/envs/test_modify_env_param_logic.py create mode 100644 source/isaaclab/test/markers/test_visualization_markers_logic.py delete mode 100644 source/isaaclab/test/renderers/test_renderer_cfg_construction.py create mode 100644 source/isaaclab/test/scene/test_interactive_scene_logic.py delete mode 100644 source/isaaclab/test/sensors/test_camera_ppisp_gaussian_ovrtx.py delete mode 100644 source/isaaclab/test/sensors/test_tiled_camera.py delete mode 100644 source/isaaclab/test/sim/test_deformable_backend_split.py create mode 100644 source/isaaclab/test/sim/test_utils_queries_logic.py create mode 100644 source/isaaclab/test/terrains/test_terrain_importer_cfg.py create mode 100644 source/isaaclab/test/utils/test_version_logic.py create mode 100644 source/isaaclab_assets/changelog.d/ci-test-overhaul.skip create mode 100644 source/isaaclab_contrib/changelog.d/ci-test-overhaul.removed.rst create mode 100644 source/isaaclab_experimental/changelog.d/ci-test-overhaul.removed.rst create mode 100644 source/isaaclab_experimental/test/envs/mdp/conftest.py create mode 100644 source/isaaclab_fovi/changelog.d/ci-test-overhaul.skip create mode 100644 source/isaaclab_isaacsim/changelog.d/ci-test-overhaul.fixed.rst create mode 100644 source/isaaclab_isaacsim/changelog.d/ci-test-overhaul.removed.rst delete mode 100644 source/isaaclab_isaacsim/isaaclab_isaacsim/test/benchmark/__init__.py delete mode 100644 source/isaaclab_isaacsim/isaaclab_isaacsim/test/benchmark/__init__.pyi delete mode 100644 source/isaaclab_isaacsim/isaaclab_isaacsim/test/benchmark/benchmark_utils.py delete mode 100644 source/isaaclab_isaacsim/test/renderers/test_isaac_rtx_renderer_cfg.py delete mode 100644 source/isaaclab_isaacsim/test/renderers/test_kit_viewport_utils.py create mode 100644 source/isaaclab_mimic/changelog.d/ci-test-overhaul.removed.rst delete mode 100644 source/isaaclab_mimic/test/mimic_test_utils.py create mode 100644 source/isaaclab_mimic/test/test_generate_dataset.py delete mode 100644 source/isaaclab_mimic/test/test_generate_dataset_franka_state.py delete mode 100644 source/isaaclab_mimic/test/test_generate_dataset_franka_visuomotor.py delete mode 100644 source/isaaclab_mimic/test/test_generate_dataset_gr1t2_nutpour.py delete mode 100644 source/isaaclab_mimic/test/test_generate_dataset_gr1t2_pickplace.py create mode 100644 source/isaaclab_neural/changelog.d/ci-test-overhaul.skip create mode 100644 source/isaaclab_newton/changelog.d/remove-dead-newton-code.removed.rst delete mode 100644 source/isaaclab_newton/isaaclab_newton/sim/spawners/mpm/visualization.py create mode 100644 source/isaaclab_newton/test/assets/test_newton_articulation_logic.py delete mode 100644 source/isaaclab_newton/test/cloner/test_clone_xform_math.py delete mode 100644 source/isaaclab_newton/test/cloner/test_newton_builder_world_hook.py rename source/isaaclab_newton/test/cloner/{test_rename_builder_labels.py => test_newton_replicate.py} (71%) delete mode 100644 source/isaaclab_newton/test/cloner/test_visual_shape_import.py create mode 100644 source/isaaclab_newton/test/physics/test_newton_manager_stepping.py rename source/isaaclab_newton/test/sensors/{test_contact_sensor_history.py => test_contact_sensor_logic.py} (68%) delete mode 100644 source/isaaclab_newton/test/sim/test_mpm_visualization.py create mode 100644 source/isaaclab_ov/changelog.d/ci-test-overhaul.removed.rst create mode 100644 source/isaaclab_ov/test/test_ovrtx_renderer_unit.py delete mode 100644 source/isaaclab_ov/test/test_randomize_rigid_body_collider_offsets_mdp.py delete mode 100644 source/isaaclab_ov/test/test_randomize_rigid_body_material_mdp.py create mode 100644 source/isaaclab_ppisp/changelog.d/ci-test-overhaul.skip create mode 100644 source/isaaclab_rl/changelog.d/ci-test-cutover-l7.removed.rst create mode 100644 source/isaaclab_tasks/changelog.d/ci-test-overhaul.removed.rst delete mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/locomanip_pick_place/mdp/observations.py create mode 100644 source/isaaclab_tasks/test/core/test_environments_ovphysx_pr_smoke.py create mode 100644 source/isaaclab_tasks/test/core/test_environments_pr_smoke.py create mode 100644 source/isaaclab_tasks_experimental/changelog.d/ci-test-overhaul.skip create mode 100644 source/isaaclab_teleop/changelog.d/ci-test-cutover-l7.removed.rst create mode 100644 source/isaaclab_teleop/test/conftest.py create mode 100644 source/isaaclab_teleop/test/teleop_stubs.py create mode 100644 source/isaaclab_visualizers/changelog.d/ci-test-overhaul.removed.rst delete mode 100644 source/isaaclab_visualizers/test/__init__.py delete mode 100644 source/isaaclab_visualizers/test/test_newton_visual_material.py rename source/isaaclab_visualizers/test/{test_newton_adapter.py => test_newton_visualizer_adapter.py} (96%) rename source/isaaclab_visualizers/test/{test_lidar_points.py => test_visualizer_lidar_points.py} (96%) rename source/isaaclab_visualizers/test/{test_newton_overlay_meshes.py => test_visualizer_newton_overlay_meshes.py} (98%) create mode 100644 tools/_process.py create mode 100644 tools/_selection.py delete mode 100644 tools/run_all_tests.py delete mode 100644 tools/run_train_envs.py create mode 100644 tools/test_durations.json create mode 100644 tools/test_orchestrator.py create mode 100644 tools/update_test_durations.py diff --git a/.github/actions/_lib/compute-deps-hash/action.yml b/.github/actions/_lib/compute-deps-hash/action.yml index 413421f54b99..1c03d9633bce 100644 --- a/.github/actions/_lib/compute-deps-hash/action.yml +++ b/.github/actions/_lib/compute-deps-hash/action.yml @@ -50,6 +50,7 @@ runs: .dockerignore docker/docker-compose.yaml docker/scripts/install_carb_env_shim.sh + docker/patches docker/utils/volume_mounts.py source/isaaclab/isaaclab/cli tools/wheel_builder/uv-overrides.txt diff --git a/.github/actions/_lib/test_performance_workflow.py b/.github/actions/_lib/test_performance_workflow.py index 8d033714624b..99f67dfee00f 100644 --- a/.github/actions/_lib/test_performance_workflow.py +++ b/.github/actions/_lib/test_performance_workflow.py @@ -95,37 +95,6 @@ def test_ci_activation_and_runner_selection() -> None: assert stopped.returncode != 0, "Unactivated PR explanation step exited successfully" -def test_parallel_baseline_route() -> None: - route = yaml.safe_load(_WORKFLOW.read_text())["jobs"]["performance-regression-route"]["steps"][0] - script = """ -const source = require('node:fs').readFileSync(0, 'utf8'); -const assert = require('node:assert/strict'); -const run = new (Object.getPrototypeOf(async function() {}).constructor)('github', 'context', source); -const context = {repo: {owner: 'owner', repo: 'lab'}, payload: {pull_request: {number: 42, head: {ref: 'feature'}}}}; -process.env.BASE_COMMIT = 'base'; -(async () => { - for (const [label, runCount, artifacts, artifactCount, expected] of [ - ['fresh', 1, [], 0, true], ['reusable on retry', 1, [{expired: false}], 1, false], - ['expired', 1, [{expired: true}], 1, true], ['partial run list', 2, [], 0, false], - ['partial artifact list', 1, [], 1, false], - ]) { - const actions = { - listWorkflowRuns: async ({branch}) => { - assert.equal(branch, 'feature'); - return {data: {workflow_runs: [{run_attempt: 2}], total_count: runCount}}; - }, - listArtifactsForRepo: async ({name}) => { - assert.match(name, /^performance-pr-baseline-42-base-[12]$/); - return {data: name.endsWith('-2') ? {artifacts, total_count: artifactCount} : {artifacts: [], total_count: 0}}; - }, - }; - assert.equal(await run({rest: {actions}}, context), expected, label); - } -})(); -""" - subprocess.run(["node", "-e", script], input=route["with"]["script"], text=True, check=True) - - def test_run_docker_ci_command_options(tmp_path: Path) -> None: workflow = yaml.safe_load(_RUN_CI_WORKFLOW.read_text(encoding="utf-8")) job = workflow["jobs"]["request-docker-ci"] diff --git a/.github/actions/_lib/test_registry_credential_fallback.py b/.github/actions/_lib/test_registry_credential_fallback.py index 40f0ec418f54..6b23f1e5ce6c 100644 --- a/.github/actions/_lib/test_registry_credential_fallback.py +++ b/.github/actions/_lib/test_registry_credential_fallback.py @@ -15,6 +15,7 @@ import subprocess from pathlib import Path +import pytest import yaml _LIB_DIR = Path(__file__).resolve().parent @@ -26,6 +27,8 @@ _HUB = "https://index.docker.io/v1/" _DIGEST = "sha256:" + "a" * 64 +pytestmark = pytest.mark.pr + def _load_helper(): spec = importlib.util.spec_from_file_location("strip_registry_auth", _STRIP_HELPER) diff --git a/.github/actions/ecr-build-push-pull/README.md b/.github/actions/ecr-build-push-pull/README.md index 3b897ee0c913..e6713273651e 100644 --- a/.github/actions/ecr-build-push-pull/README.md +++ b/.github/actions/ecr-build-push-pull/README.md @@ -16,6 +16,16 @@ ECR is also used as the BuildKit layer cache. ecr-url: (optional, complete url for ECR storage) ``` +## Build-only jobs + +When the exact commit tag already exists in ECR, the action pulls it by default so later +steps can `docker run` it. A job that only builds and pushes should skip that pull, which +takes several minutes on a cold runner and delays every test job that waits on the build: + +```yaml + pull-on-exact-hit: 'false' +``` + ## Verifying a freshly built image Pass `verify-test-path` to assert against the image before it is published: diff --git a/.github/actions/ecr-build-push-pull/action.yml b/.github/actions/ecr-build-push-pull/action.yml index 2de0b9087e05..17d178996097 100644 --- a/.github/actions/ecr-build-push-pull/action.yml +++ b/.github/actions/ecr-build-push-pull/action.yml @@ -64,6 +64,17 @@ inputs: that only need the tag pushed. required: false default: 'false' + pull-on-exact-hit: + description: > + Pull the image locally when the exact commit tag already exists in ECR + (step 4b). Defaults to 'true' because test jobs `docker run` the image in + later steps and lose the ECR login when this action ends. + + Set to 'false' in build-only jobs that never run the image: on a cold + self-hosted runner this pull takes several minutes, and the build job sits + on the critical path of every test job that needs it. + required: false + default: 'true' runs: using: composite steps: @@ -181,9 +192,9 @@ runs: # Pull the image when the manifest check succeeded but the image is not # available locally (test jobs need it for `docker run`). Build jobs - # that only push to ECR will already have the image or don't need it. + # that only push to ECR opt out with `pull-on-exact-hit: 'false'`. - name: Pull exact image from ECR - if: steps.pull-exact.outputs.hit == 'true' + if: steps.pull-exact.outputs.hit == 'true' && inputs.pull-on-exact-hit == 'true' shell: bash run: | if docker image inspect "${{ inputs.image-tag }}" >/dev/null 2>&1; then diff --git a/.github/actions/run-package-tests/action.yml b/.github/actions/run-package-tests/action.yml index 1a3a30619921..cdf276614821 100644 --- a/.github/actions/run-package-tests/action.yml +++ b/.github/actions/run-package-tests/action.yml @@ -28,7 +28,9 @@ inputs: default: 'cache-base' required: false ci-marker: - description: 'Optional pytest -m marker expression applied to every test file (e.g. arm_ci)' + description: >- + pytest -m expression applied to every test file: a tier of TIER_MARKERS in tools/_selection.py, or e.g. "arm_ci". + Files none of whose tests can match are not started at all (see tools/_selection.py). default: '' required: false platform: @@ -56,9 +58,8 @@ inputs: required: false test-jobs: description: >- - Number of test-file slots tools/conftest.py runs at once. Each file still runs in - its own pytest process; files listed in tools/test_settings.py PYTEST_WORKERS split - across several slots with pytest-xdist. Empty or 1 runs files one by one. + Number of test-file slots tools/conftest.py runs at once (see tools/test_settings.py for files that + take several slots). Empty or 1 runs files one by one. default: '' required: false shard-index: @@ -69,14 +70,6 @@ inputs: description: 'Total number of shards' default: '' required: false - curobo-only: - description: 'Run only cuRobo and SkillGen tests' - default: 'false' - required: false - quarantined-only: - description: 'Run only quarantined tests' - default: 'false' - required: false include-files: description: 'Comma-separated list of specific test files to include' default: '' @@ -143,6 +136,12 @@ inputs: description: 'Visualizer slice used when standalone-script-scope is set; default launches without --viz' default: 'default' required: false + allow-empty-selection: + description: >- + 'true' lets the run select zero tests (e.g. a package with no tests in the nightly tier). Otherwise + tools/conftest.py fails a run that tested nothing, so a stale filter or -k expression cannot go green. + default: 'false' + required: false standalone-script-runtime-group: description: 'Run Kit-dependent or non-Kit standalone script cases' default: '' @@ -164,28 +163,6 @@ outputs: runs: using: composite steps: - # Display some details on AWS instance we're running on - - name: AWS Instance Info - shell: bash - run: | - # get instance ID for debugging purposes (if running on EC2) - IMDS_TOKEN=$(curl -sf -X PUT "http://169.254.169.254/latest/api/token" \ - -H "X-aws-ec2-metadata-token-ttl-seconds: 21600") || true - if [ -n "$IMDS_TOKEN" ]; then - INSTANCE_ID=$(curl -sf -H "X-aws-ec2-metadata-token: ${IMDS_TOKEN}" \ - "http://169.254.169.254/latest/meta-data/instance-id") || true - INSTANCE_REGION=$(curl -sf -H "X-aws-ec2-metadata-token: ${IMDS_TOKEN}" \ - "http://169.254.169.254/latest/meta-data/placement/region") || true - INSTANCE_TYPE=$(curl -sf -H "X-aws-ec2-metadata-token: ${IMDS_TOKEN}" \ - "http://169.254.169.254/latest/meta-data/instance-type") || true - echo "⚪ Instance ID: ${INSTANCE_ID:-Not running on EC2}" - echo "⚪ Instance Region: ${INSTANCE_REGION:-Not running on EC2}" - echo "⚪ Instance Type: ${INSTANCE_TYPE:-Not running on EC2}" - echo "⚪ Connect: https://${INSTANCE_REGION}.console.aws.amazon.com/ec2-instance-connect/ssh/home?region=${INSTANCE_REGION}&connType=standard&instanceId=${INSTANCE_ID}&osUser=ubuntu&sshPort=22&addressFamily=ipv4" - else - echo "🟠 Could not obtain IMDS token, probably not running on EC2" - fi - - name: Prepare Docker disk space shell: bash env: @@ -199,11 +176,6 @@ runs: "pre-test-cleanup" \ "true" - - name: Record pull start time - id: pull-start - shell: bash - run: echo "time=$(date +%s)" >> "$GITHUB_OUTPUT" - - name: Pull image from ECR uses: ./.github/actions/ecr-build-push-pull with: @@ -214,19 +186,6 @@ runs: cache-tag: ${{ inputs.cache-tag }} platform: ${{ inputs.platform }} - - name: Report pull duration - if: always() - shell: bash - run: | - start_time="${{ steps.pull-start.outputs.time }}" - if [ -z "$start_time" ]; then - echo "🟠 Could not calculate pull duration (start time not recorded)" >> "$GITHUB_STEP_SUMMARY" - exit 0 - fi - elapsed=$(( $(date +%s) - start_time )) - printf "🔵 Image pull took %dm %ds\n" $((elapsed/60)) $((elapsed%60)) - echo "🔵 Docker Image Pulled in ${elapsed}s" >> "$GITHUB_STEP_SUMMARY" - - name: Resolve Warp cache key if: inputs.warp-cache != '' id: warp-cache-key @@ -359,8 +318,6 @@ runs: test-jobs: ${{ inputs.test-jobs }} shard-index: ${{ inputs.shard-index }} shard-count: ${{ inputs.shard-count }} - curobo-only: ${{ inputs.curobo-only }} - quarantined-only: ${{ inputs.quarantined-only }} include-files: ${{ inputs.include-files }} test-node-ids-file: ${{ inputs.test-node-ids-file }} test-node-ids-key: ${{ inputs.test-node-ids-key }} @@ -376,6 +333,7 @@ runs: standalone-script-scope: ${{ inputs.standalone-script-scope }} standalone-script-visualizer: ${{ inputs.standalone-script-visualizer }} standalone-script-runtime-group: ${{ inputs.standalone-script-runtime-group }} + allow-empty-selection: ${{ inputs.allow-empty-selection }} - name: Check Test Results if: always() diff --git a/.github/actions/run-package-tests/test_cleanup_docker_storage.py b/.github/actions/run-package-tests/test_cleanup_docker_storage.py index 737376867b76..cbeaa99662ba 100644 --- a/.github/actions/run-package-tests/test_cleanup_docker_storage.py +++ b/.github/actions/run-package-tests/test_cleanup_docker_storage.py @@ -11,9 +11,12 @@ import subprocess from pathlib import Path +import pytest + +pytestmark = pytest.mark.pr + _ACTION_DIR = Path(__file__).resolve().parent _REPO_ROOT = _ACTION_DIR.parents[2] -_ACTION_PATH = _ACTION_DIR / "action.yml" _SCRIPT_PATH = _ACTION_DIR / "cleanup_docker_storage.sh" @@ -125,6 +128,7 @@ def test_cleanup_uses_aggressive_pruning_when_docker_storage_exceeds_threshold(t assert "container prune -f --filter until=24h" in docker_log assert "builder prune -a -f --filter until=24h" in docker_log assert "image prune -a -f --filter until=24h" in docker_log + assert "volume prune -f" in docker_log def test_cleanup_keeps_conservative_image_pruning_below_threshold(tmp_path: Path): @@ -134,21 +138,6 @@ def test_cleanup_keeps_conservative_image_pruning_below_threshold(tmp_path: Path docker_log = (tmp_path / "bin" / "docker.log").read_text(encoding="utf-8") assert "image prune -a -f --filter until=72h" in docker_log assert "builder prune" not in docker_log - - -def test_cleanup_prunes_unused_volumes_above_threshold(tmp_path: Path): - result = _run_cleanup(tmp_path, first_usage=91, final_usage=70) - - assert result.returncode == 0, result.stderr - docker_log = (tmp_path / "bin" / "docker.log").read_text(encoding="utf-8") - assert "volume prune -f" in docker_log - - -def test_cleanup_prunes_unused_volumes_below_threshold(tmp_path: Path): - result = _run_cleanup(tmp_path, first_usage=70, final_usage=70) - - assert result.returncode == 0, result.stderr - docker_log = (tmp_path / "bin" / "docker.log").read_text(encoding="utf-8") assert "volume prune -f" in docker_log @@ -197,27 +186,3 @@ def test_cleanup_uses_docker_root_dir_when_default_storage_path_is_unavailable(t assert result.returncode == 1 assert "Using Docker root from docker info: /mnt/docker-root" in result.stdout assert "Docker storage remains at 89%" in result.stderr - - -def test_cleanup_fails_early_when_docker_storage_usage_cannot_be_measured(tmp_path: Path): - result = _run_cleanup( - tmp_path, - first_usage=91, - final_usage=89, - failed_path="/var/lib/docker", - docker_root_dir="", - ) - - assert result.returncode == 1 - assert "Could not determine Docker storage usage after cleanup" in result.stderr - - -def test_run_package_tests_prepares_docker_space_before_image_pull(): - action_text = _ACTION_PATH.read_text(encoding="utf-8") - - cleanup_index = action_text.index("name: Prepare Docker disk space") - pull_start_index = action_text.index("name: Record pull start time") - pull_index = action_text.index("name: Pull image from ECR") - - assert cleanup_index < pull_start_index < pull_index - assert "cleanup_docker_storage.sh" in action_text diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index 0168793f40c3..6e7b44934642 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -55,14 +55,6 @@ inputs: across several slots with pytest-xdist. Empty or 1 runs files one by one. default: '' required: false - curobo-only: - description: 'Run only cuRobo and SkillGen tests (requires the cuRobo Docker image)' - default: 'false' - required: false - quarantined-only: - description: 'Run only tests listed in QUARANTINED_TESTS (skipped in normal jobs)' - default: 'false' - required: false include-files: description: 'Comma-separated list of specific test file paths to include (e.g., source/pkg/test/test_a.py,source/pkg/test/test_b.py)' default: '' @@ -84,9 +76,8 @@ inputs: default: '' required: false volume-mount-source: - description: 'Host path to bind-mount at /workspace/isaaclab (for deps-cache-hit mode)' - default: '' - required: false + description: 'Host checkout bind-mounted at /workspace/isaaclab; the tests run this source, not the image copy' + required: true extra-pip-packages: description: 'Space-separated pip packages to install inside the Docker container before pytest starts' default: '' @@ -113,7 +104,7 @@ inputs: default: '' required: false ci-marker: - description: 'CI_MARKER value forwarded to the container (read by tools/conftest.py to select test files by pytest marker)' + description: 'pytest -m expression (CI_MARKER) for tools/conftest.py, e.g. "not nightly" or "arm_ci"' default: '' required: false standalone-script-scope: @@ -124,6 +115,12 @@ inputs: description: 'Visualizer slice used when standalone-script-scope is set; default launches without --viz' default: 'default' required: false + allow-empty-selection: + description: >- + 'true' lets the run select zero tests (e.g. a package with no tests in the nightly tier). Otherwise + tools/conftest.py fails a run that tested nothing, so a stale filter or -k expression cannot go green. + default: 'false' + required: false standalone-script-runtime-group: description: 'Run Kit-dependent or non-Kit standalone script cases' default: '' @@ -140,7 +137,6 @@ runs: shell: bash env: CONTAINER_NAME: ${{ inputs.container-name }} - CUROBO_ONLY: ${{ inputs.curobo-only }} EXCLUDE_PATTERN: ${{ inputs.exclude-pattern }} EXTRA_PIP_PACKAGES: ${{ inputs.extra-pip-packages }} EXTRA_UV_PACKAGES: ${{ inputs.extra-uv-packages }} @@ -149,11 +145,11 @@ runs: INCLUDE_FILES: ${{ inputs.include-files }} OVRTX_SHADER_CACHE_HOST_DIR: ${{ inputs.ovrtx-shader-cache-host-dir }} PYTEST_OPTIONS: ${{ inputs.pytest-options }} - QUARANTINED_ONLY: ${{ inputs.quarantined-only }} REPORTS_DIR: ${{ inputs.reports-dir }} RESULT_FILE: ${{ inputs.result-file }} SHARD_COUNT: ${{ inputs.shard-count }} SHARD_INDEX: ${{ inputs.shard-index }} + ALLOW_EMPTY_SELECTION: ${{ inputs.allow-empty-selection }} STANDALONE_SCRIPT_RUNTIME_GROUP: ${{ inputs.standalone-script-runtime-group }} STANDALONE_SCRIPT_SCOPE: ${{ inputs.standalone-script-scope }} STANDALONE_SCRIPT_VISUALIZER: ${{ inputs.standalone-script-visualizer }} @@ -167,8 +163,7 @@ runs: WARP_CACHE_HOST_DIR: ${{ inputs.warp-cache-host-dir }} WHEELHOUSE_HOST_DIR: ${{ inputs.wheelhouse-host-dir }} WHEELHOUSE_PACKAGES: ${{ inputs.wheelhouse-packages }} - run: | - bash .github/actions/run-tests/run_tests.sh "$TEST_PATH" "$RESULT_FILE" "$CONTAINER_NAME" "$IMAGE_TAG" "$REPORTS_DIR" "$PYTEST_OPTIONS" "$FILTER_PATTERN" "$EXCLUDE_PATTERN" "$CUROBO_ONLY" "$INCLUDE_FILES" "$QUARANTINED_ONLY" "$SHARD_INDEX" "$SHARD_COUNT" "$VOLUME_MOUNT_SOURCE" "$EXTRA_PIP_PACKAGES" "$TEST_NODE_IDS_FILE" "$TEST_NODE_IDS_KEY" "$WHEELHOUSE_HOST_DIR" "$WHEELHOUSE_PACKAGES" "$TEST_K_EXPR_INPUT" "$CI_MARKER_INPUT" "$STANDALONE_SCRIPT_SCOPE" "$STANDALONE_SCRIPT_VISUALIZER" "$STANDALONE_SCRIPT_RUNTIME_GROUP" "$WARP_CACHE_HOST_DIR" "$EXTRA_UV_PACKAGES" "$OVRTX_SHADER_CACHE_HOST_DIR" "$TEST_JOBS_INPUT" + run: bash .github/actions/run-tests/run_tests.sh - name: Kill container on cancellation if: cancelled() shell: bash @@ -223,46 +218,20 @@ runs: echo "::warning::junit_summary.py failed to parse $report - test results may be missing from the summary" fi - - name: Upload comparison images - if: always() - id : upload-comparison-images - uses: actions/upload-artifact@v7 - with: - name: comparison-images-${{ inputs.container-name }} - path: ${{ inputs.reports-dir }}/comparison-images/ - if-no-files-found: ignore - retention-days: 7 - - # Renderer logs are quoted into the reports only as a bounded tail; the full log per test is here. - - name: Upload OVRTX renderer logs - if: always() - id: upload-ovrtx-logs - uses: actions/upload-artifact@v7 - with: - name: ovrtx-logs-${{ inputs.container-name }} - path: ${{ inputs.reports-dir }}/ovrtx-logs/ - if-no-files-found: ignore - retention-days: 7 - compression-level: 9 - - # The reports carry the dump truncated to 10 000 chars; the whole thing per test file is here. - - name: Upload hang stack dumps - if: always() - id: upload-hang-dumps - uses: actions/upload-artifact@v7 - with: - name: hang-dumps-${{ inputs.container-name }} - path: ${{ inputs.reports-dir }}/hang-dumps/ - if-no-files-found: ignore - retention-days: 7 - - - name: Upload JUnit XML report + # One artifact: the JUnit report plus whatever diagnostics the run left (rendering comparison images, full + # OVRTX renderer logs and hang stack dumps, which the report only quotes truncated). + - name: Upload test results if: always() - id: upload-junit-report + id: upload-results uses: actions/upload-artifact@v7 with: - name: junit-${{ inputs.container-name }} - path: ${{ inputs.reports-dir }}/${{ inputs.result-file }} + name: test-results-${{ inputs.container-name }} + path: | + ${{ inputs.reports-dir }}/${{ inputs.result-file }} + ${{ inputs.reports-dir }}/test-durations.json + ${{ inputs.reports-dir }}/comparison-images/ + ${{ inputs.reports-dir }}/ovrtx-logs/ + ${{ inputs.reports-dir }}/hang-dumps/ if-no-files-found: ignore retention-days: 7 @@ -271,8 +240,8 @@ runs: uses: ./.github/actions/upload-omni-github-test-results with: junit-file: ${{ inputs.reports-dir }}/${{ inputs.result-file }} - junit-log-url: ${{ steps.upload-junit-report.outputs.artifact-url }} - comparison-images-url: ${{ steps.upload-comparison-images.outputs.artifact-url }} + junit-log-url: ${{ steps.upload-results.outputs.artifact-url }} + comparison-images-url: ${{ steps.upload-results.outputs.artifact-url }} artifact-prefix: pytest-results-${{ github.job }}-${{ inputs.container-name }} test-type: ${{ inputs.omni-github-test-type }} diff --git a/.github/actions/run-tests/run_tests.sh b/.github/actions/run-tests/run_tests.sh index 906ca817db5f..3b1503bc01f9 100755 --- a/.github/actions/run-tests/run_tests.sh +++ b/.github/actions/run-tests/run_tests.sh @@ -4,41 +4,37 @@ # # SPDX-License-Identifier: BSD-3-Clause # -# Body of the 'Run Tests in Docker Container' step. Kept in a file because a -# composite action's run: block is capped at 21000 characters (counted as -# chars + lines, i.e. CRLF), and this function alone far exceeds that. -# Positional arguments are passed through from action.yml. +# Body of the 'Run Tests in Docker Container' step, kept in a file because a composite action's run: block is +# capped at 21000 characters. Every input arrives as an environment variable set by action.yml. # Function to run tests in Docker container run_tests() { - local test_path="$1" - local result_file="$2" - local container_name="$3" - local image_tag="$4" - local reports_dir="$5" - local pytest_options="$6" - local filter_pattern="$7" - local exclude_pattern="$8" - local curobo_only="$9" - local include_files="${10}" - local quarantined_only="${11}" - local shard_index="${12}" - local shard_count="${13}" - local volume_mount_source="${14}" - local extra_pip_packages="${15}" - local test_node_ids_file="${16}" - local test_node_ids_key="${17}" - local wheelhouse_host_dir="${18}" - local wheelhouse_packages="${19}" - local test_k_expr="${20}" - local ci_marker="${21}" - local standalone_script_scope="${22}" - local standalone_script_visualizer="${23}" - local standalone_script_runtime_group="${24}" - local warp_cache_host_dir="${25}" - local extra_uv_packages="${26}" - local ovrtx_shader_cache_host_dir="${27}" - local test_jobs="${28}" + local test_path="$TEST_PATH" + local result_file="$RESULT_FILE" + local container_name="$CONTAINER_NAME" + local image_tag="$IMAGE_TAG" + local reports_dir="$REPORTS_DIR" + local pytest_options="${PYTEST_OPTIONS:-}" + local filter_pattern="${FILTER_PATTERN:-}" + local exclude_pattern="${EXCLUDE_PATTERN:-}" + local include_files="${INCLUDE_FILES:-}" + local shard_index="${SHARD_INDEX:-}" + local shard_count="${SHARD_COUNT:-}" + local volume_mount_source="$VOLUME_MOUNT_SOURCE" + local extra_pip_packages="${EXTRA_PIP_PACKAGES:-}" + local test_node_ids_file="${TEST_NODE_IDS_FILE:-}" + local test_node_ids_key="${TEST_NODE_IDS_KEY:-}" + local wheelhouse_host_dir="${WHEELHOUSE_HOST_DIR:-}" + local wheelhouse_packages="${WHEELHOUSE_PACKAGES:-}" + local test_k_expr="${TEST_K_EXPR_INPUT:-}" + local ci_marker="${CI_MARKER_INPUT:-}" + local standalone_script_scope="${STANDALONE_SCRIPT_SCOPE:-}" + local standalone_script_visualizer="${STANDALONE_SCRIPT_VISUALIZER:-}" + local standalone_script_runtime_group="${STANDALONE_SCRIPT_RUNTIME_GROUP:-}" + local warp_cache_host_dir="${WARP_CACHE_HOST_DIR:-}" + local extra_uv_packages="${EXTRA_UV_PACKAGES:-}" + local ovrtx_shader_cache_host_dir="${OVRTX_SHADER_CACHE_HOST_DIR:-}" + local test_jobs="${TEST_JOBS_INPUT:-}" local logs_pid="" local wait_pid="" local docker_wait_file="/tmp/.docker_exit_${container_name}" @@ -80,9 +76,6 @@ run_tests() { if [ -n "$exclude_pattern" ]; then echo "With exclude pattern: $exclude_pattern" fi - if [ "$curobo_only" = "true" ]; then - echo "cuRobo-only mode enabled: running only cuRobo and SkillGen tests" - fi if [ -n "$include_files" ]; then echo "Include files: $include_files" fi @@ -105,6 +98,11 @@ run_tests() { export TEST_NODE_IDS_KEY="$test_node_ids_key" fi + if [ -z "$volume_mount_source" ]; then + echo "::error::volume-mount-source is required: tests run against the bind-mounted checkout" + return 1 + fi + # Create reports directory mkdir -p "$reports_dir" @@ -124,16 +122,6 @@ run_tests() { -e "TEST_RESULT_FILE=$result_file" ) - if [ "$curobo_only" = "true" ]; then - docker_env_args+=(-e "TEST_CUROBO_ONLY=true") - echo "Setting TEST_CUROBO_ONLY=true" - fi - - if [ "$quarantined_only" = "true" ]; then - docker_env_args+=(-e "TEST_QUARANTINED_ONLY=true") - echo "Setting TEST_QUARANTINED_ONLY=true" - fi - if [ -n "$include_files" ]; then # conftest.py splits on commas and strips whitespace, so compact form works fine. include_files_compact="${include_files// /}" @@ -205,6 +193,11 @@ run_tests() { echo "Setting CI_MARKER=$ci_marker" fi + if [ "${ALLOW_EMPTY_SELECTION:-false}" = "true" ]; then + docker_env_args+=(-e "TEST_ALLOW_EMPTY_SELECTION=1") + echo "Allowing this run to select zero tests" + fi + # Set by the multi-GPU smoke steps: fail rather than skip on a runner with too few GPUs. [ -z "${ISAACLAB_TEST_REQUIRE_MULTI_GPU:-}" ] || docker_env_args+=(-e ISAACLAB_TEST_REQUIRE_MULTI_GPU) # Set by the kitless legacy rendering job: fail rather than skip when OptiX is not importable. @@ -477,78 +470,24 @@ run_tests() { fi echo "::group::Copy results" - # Copy test results with error handling. - # When volume-mounted, test output lands on the host filesystem directly - # (docker cp cannot see bind-mounted paths after the container stops). - echo "🔵 Attempting to copy test results..." - if [ -n "$volume_mount_source" ] && [ -f "${volume_mount_source}/tests/$result_file" ]; then - cp "${volume_mount_source}/tests/$result_file" "$reports_dir/$result_file" - echo "🟢 Test results copied from volume mount to $reports_dir/$result_file" - elif cp_err=$(docker cp $container_name:/workspace/isaaclab/tests/$result_file "$reports_dir/$result_file" 2>&1); then - echo "🟢 Test results copied successfully to $reports_dir/$result_file" + # The checkout is bind-mounted, so everything the run wrote under tests/ is already on the host. + local host_tests="${volume_mount_source}/tests" + if [ -f "${host_tests}/${result_file}" ]; then + cp "${host_tests}/${result_file}" "$reports_dir/$result_file" else - echo "🔴 Failed to copy specific result file: $cp_err" - echo "🔴 Trying to copy all test results..." - if cp_err=$(docker cp $container_name:/workspace/isaaclab/tests/ "$reports_dir/" 2>&1); then - echo "🟢 All test results copied successfully to $reports_dir/" - # Look for any XML files and use the first one found - if [ -f "$reports_dir/full_report.xml" ]; then - mv "$reports_dir/full_report.xml" "$reports_dir/$result_file" - echo "🟢 Found and renamed full_report.xml to $result_file" - elif ls "$reports_dir"/test-reports-*.xml 1>/dev/null 2>&1; then - # Combine individual test reports if no full report exists. - # Extract each block intact to produce valid JUnit XML. - echo "🔵 Combining individual test reports..." - echo '' > "$reports_dir/$result_file" - echo '' >> "$reports_dir/$result_file" - for xml_file in "$reports_dir"/test-reports-*.xml; do - if [ -f "$xml_file" ]; then - echo " Processing: $xml_file" - # Copy everything between and (inclusive) - sed -n '//p' "$xml_file" >> "$reports_dir/$result_file" || echo "🟠 Warning: failed to extract testsuite from $xml_file" - fi - done - echo '' >> "$reports_dir/$result_file" - echo "🟢 Combined individual test reports into $result_file" - else - echo "🔴 No test result files found, creating fallback" - echo "Container may have failed to generate any results" > "$reports_dir/$result_file" - fi - else - echo "🔴 Failed to copy any test results, creating fallback" - echo "Container may have failed to generate results" > "$reports_dir/$result_file" - fi - fi - - # Copy comparison images (saved by source/isaaclab_tasks/test/test_rendering_*.py). - local img_dir="$reports_dir/comparison-images" - if [ -n "$volume_mount_source" ] && [ -d "${volume_mount_source}/tests/comparison-images" ]; then - cp -r "${volume_mount_source}/tests/comparison-images" "$img_dir" - echo "🟢 Comparison images copied to $img_dir" - elif docker cp "$container_name:/workspace/isaaclab/tests/comparison-images" "$img_dir" 2>/dev/null; then - echo "🟢 Comparison images copied from container to $img_dir" + echo "🔴 No test report at ${host_tests}/${result_file}; writing a failing placeholder" + echo "The container exited without writing a report" > "$reports_dir/$result_file" fi - - # Copy per-test OVRTX renderer logs (saved by tools/ovrtx_log.py). The reports quote a bounded tail - # of these; the full logs are only here. - local ovrtx_dir="$reports_dir/ovrtx-logs" - if [ -n "$volume_mount_source" ] && [ -d "${volume_mount_source}/tests/ovrtx-logs" ]; then - cp -r "${volume_mount_source}/tests/ovrtx-logs" "$ovrtx_dir" - echo "🟢 OVRTX renderer logs copied to $ovrtx_dir" - elif docker cp "$container_name:/workspace/isaaclab/tests/ovrtx-logs" "$ovrtx_dir" 2>/dev/null; then - echo "🟢 OVRTX renderer logs copied from container to $ovrtx_dir" - fi - - # Copy per-file thread stack dumps (written by tools/hang_dump.py when the runner kills a hung test). - # The reports carry these truncated to 10 000 chars; the whole dump is only here. Absent unless - # something hung, which is the normal case. - local hang_dir="$reports_dir/hang-dumps" - if [ -n "$volume_mount_source" ] && [ -d "${volume_mount_source}/tests/hang-dumps" ]; then - cp -r "${volume_mount_source}/tests/hang-dumps" "$hang_dir" - echo "🟢 Hang stack dumps copied to $hang_dir" - elif docker cp "$container_name:/workspace/isaaclab/tests/hang-dumps" "$hang_dir" 2>/dev/null; then - echo "🟢 Hang stack dumps copied from container to $hang_dir" + # Per-file timings, for tools/update_test_durations.py. + if [ -f "${host_tests}/test-durations.json" ]; then + cp "${host_tests}/test-durations.json" "$reports_dir/test-durations.json" fi + # Rendering comparison images, per-test OVRTX renderer logs and hang stack dumps: absent unless used. + for artifact_dir in comparison-images ovrtx-logs hang-dumps; do + if [ -d "${host_tests}/${artifact_dir}" ]; then + cp -r "${host_tests}/${artifact_dir}" "$reports_dir/${artifact_dir}" + fi + done echo "::endgroup::" echo "::group::Cleanup" @@ -563,6 +502,4 @@ run_tests() { return $DOCKER_EXIT } -# Call the function with provided parameters - -run_tests "$@" +run_tests diff --git a/.github/actions/upload-omni-github-test-results/test_junit_to_omni_github_results.py b/.github/actions/upload-omni-github-test-results/test_junit_to_omni_github_results.py index 4e94efe97fd2..d6b93e7337cd 100644 --- a/.github/actions/upload-omni-github-test-results/test_junit_to_omni_github_results.py +++ b/.github/actions/upload-omni-github-test-results/test_junit_to_omni_github_results.py @@ -12,6 +12,10 @@ from pathlib import Path from types import ModuleType +import pytest + +pytestmark = pytest.mark.pr + _MODULE_PATH = Path(__file__).with_name("junit_to_omni_github_results.py") _RESULT_PATH = "_testoutput/test_results.json" @@ -121,8 +125,22 @@ def test_convert_junit_marks_xfail_as_unreliable(tmp_path: Path) -> None: assert "skip_reason" not in row -def test_convert_junit_marks_crashes_and_timeouts(tmp_path: Path) -> None: - """Converted rows should surface crash and timeout messages.""" +_JUNIT_LOG_URL = "https://github.com/isaac-sim/IsaacLab/actions/runs/123/artifacts/456" +_COMPARISON_IMAGES_URL = "https://github.com/isaac-sim/IsaacLab/actions/runs/123/artifacts/789" + + +@pytest.mark.parametrize( + ("junit_log_url", "comparison_images_url", "log_paths"), + [ + ("", "", []), + (_JUNIT_LOG_URL, _COMPARISON_IMAGES_URL, [_JUNIT_LOG_URL, _COMPARISON_IMAGES_URL]), + ], + ids=["no-artifacts", "junit-and-comparison-artifacts"], +) +def test_convert_junit_marks_crashes_and_timeouts( + tmp_path: Path, junit_log_url: str, comparison_images_url: str, log_paths: list[str] +) -> None: + """Converted rows should surface crash and timeout messages and link uploaded artifacts.""" converter = _load_converter_module() junit_file = tmp_path / "report.xml" output_dir = tmp_path / "out" @@ -145,8 +163,8 @@ def test_convert_junit_marks_crashes_and_timeouts(tmp_path: Path) -> None: app_platform="linux-x86_64", app_config="test-job", group_name="Docker + Tests / environments", - junit_log_url="", - comparison_images_url="", + junit_log_url=junit_log_url, + comparison_images_url=comparison_images_url, retries=0, ) @@ -156,7 +174,7 @@ def test_convert_junit_marks_crashes_and_timeouts(tmp_path: Path) -> None: "crash": True, "duration": 0.0, "group_id": "Docker + Tests / environments", - "log_paths": [], + "log_paths": log_paths, "message": "Process killed by signal 15 after timeout", "passed": False, "retries": 0, @@ -168,44 +186,6 @@ def test_convert_junit_marks_crashes_and_timeouts(tmp_path: Path) -> None: ] -def test_convert_junit_adds_log_paths_for_junit_and_comparison_artifacts(tmp_path: Path) -> None: - """Converted rows should point at the uploaded JUnit and comparison image artifacts.""" - converter = _load_converter_module() - reports_dir = tmp_path - output_dir = tmp_path / "out" - junit_file = reports_dir / "report.xml" - junit_log_url = "https://github.com/isaac-sim/IsaacLab/actions/runs/123/artifacts/456" - comparison_images_url = "https://github.com/isaac-sim/IsaacLab/actions/runs/123/artifacts/789" - - junit_file.write_text( - """ - - - -""", - encoding="utf-8", - ) - - converter.convert_junit( - junit_file=junit_file, - output_dir=output_dir, - test_tool_id="pytest", - test_type="rendering-correctness", - app_platform="linux-x86_64", - app_config="test-job", - group_name="Docker + Tests / rendering", - junit_log_url=junit_log_url, - comparison_images_url=comparison_images_url, - retries=0, - ) - - rows = _load_rows(output_dir) - assert rows[0]["log_paths"] == [ - junit_log_url, - comparison_images_url, - ] - - def test_convert_junit_appends_markers_to_test_type_with_separator(tmp_path: Path) -> None: """Recorded intent markers should append to the base test_type with comma separators.""" converter = _load_converter_module() diff --git a/.github/scripts/runner_health.sh b/.github/scripts/runner_health.sh deleted file mode 100755 index 177a2c4b32cb..000000000000 --- a/.github/scripts/runner_health.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -# Print a short memory and storage summary of the CI host. Usage: runner_health.sh