Skip to content

[CI] Drop OVPhysX tests from the Isaac Sim short CI - #6085

Merged
AntoineRichard merged 1 commit into
isaac-sim:developfrom
hujc7:jichuanh/unmark-ovphysx-isaacsim-ci
Jun 10, 2026
Merged

AntoineRichard merged 1 commit into
isaac-sim:developfrom
hujc7:jichuanh/unmark-ovphysx-isaacsim-ci

Conversation

@hujc7

@hujc7 hujc7 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Removes the @pytest.mark.isaacsim_ci marker from all isaaclab_ovphysx tests (74 decorators across 4 files), so they no longer run in the Isaac Sim integration CI's per-MR ("short") run.
  • No product code touched; tests remain runnable locally and in the IsaacLab test suite.

1. Background

The Isaac Sim integration CI (in the omni_isaac_sim repo) clones IsaacLab and runs its test suite. For per-MR runs it appends -m isaacsim_ci to pytest, so only tests tagged @pytest.mark.isaacsim_ci execute there. The full nightly run drops that filter and executes everything.

The isaaclab_ovphysx tests are kitless, and kitless OVPhysX locks onto the first device it runs on. The tests parametrize over both cuda:0 and cpu, so running both in the same pytest process crashes or times out on the Isaac Sim runner:

test_contact_sensor.py            | FAILED  |  9/27
test_articulation.py              | TIMEOUT | 95/100

These failures do not reproduce on the IsaacLab-side CI and provide no useful signal for the Isaac Sim build.

2. Change

Drop the isaacsim_ci marker from every isaaclab_ovphysx test:

File Markers removed
test/assets/test_articulation.py 31
test/assets/test_rigid_object.py 19
test/assets/test_rigid_object_collection.py 14
test/sensors/test_contact_sensor.py 10

All other markers (parametrize, flaky) are preserved.

3. Scope and follow-up

  • The nightly run executes the full suite without the marker filter, so it is unaffected — these tests will still run there and could still hit the device-lock issue. If we want them out of nightly too, the next step is adding them to TESTS_TO_SKIP in tools/test_settings.py; that is intentionally out of scope here, matching the request to remove them from the Isaac Sim short CI.

The Isaac Sim integration CI runs the IsaacLab test suite with
`-m isaacsim_ci` for its per-MR ("short") runs, so every test tagged
`@pytest.mark.isaacsim_ci` executes there. The isaaclab_ovphysx tests
are kitless, and kitless OVPhysX locks onto the first device it runs
on; running the CPU and CUDA parametrizations in the same pytest
process then crashes or times out. These failures are not reproducible
on the IsaacLab-side CI and provide no signal for the Isaac Sim build.

Drop the marker from all isaaclab_ovphysx tests so they no longer run
in the Isaac Sim short CI. They remain runnable locally and in the
IsaacLab test suite. The nightly run, which executes the full suite
without the marker filter, is unaffected by this change.
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Jun 9, 2026
@greptile-apps

greptile-apps Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Removes the @pytest.mark.isaacsim_ci marker from all 74 test functions across the isaaclab_ovphysx test suite so they no longer execute in the Isaac Sim integration CI's per-MR ("short") run. No product code is touched and the tests remain fully runnable locally and in the nightly (unfiltered) IsaacLab CI.

  • 74 marker removals across 4 files (test_articulation.py ×31, test_rigid_object.py ×19, test_rigid_object_collection.py ×14, test_contact_sensor.py ×10); all other decorators (parametrize, xfail, flaky) are preserved exactly.
  • A .skip changelog entry is added to document the change without triggering a version bump, matching the project convention for test-only modifications.

Confidence Score: 5/5

Safe to merge — purely removes CI markers from test files with no product code changes.

Every changed line is a single-decorator removal from a test file. A grep over the full isaaclab_ovphysx test tree confirms no isaacsim_ci markers remain, all other decorators are untouched, and no source or configuration files were modified.

No files require special attention.

Important Files Changed

Filename Overview
source/isaaclab_ovphysx/changelog.d/unmark-ovphysx-isaacsim-ci.skip New .skip changelog entry documenting the test-only marker removal with no version bump
source/isaaclab_ovphysx/test/assets/test_articulation.py 31 @pytest.mark.isaacsim_ci decorators removed; all other markers (parametrize, xfail, flaky) preserved intact
source/isaaclab_ovphysx/test/assets/test_rigid_object.py 19 @pytest.mark.isaacsim_ci decorators removed; all other markers preserved
source/isaaclab_ovphysx/test/assets/test_rigid_object_collection.py 14 @pytest.mark.isaacsim_ci decorators removed; all other markers preserved
source/isaaclab_ovphysx/test/sensors/test_contact_sensor.py 10 @pytest.mark.isaacsim_ci decorators removed; all other markers preserved

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[pytest invocation] --> B{Filter applied?}
    B -- "per-MR short run\n-m isaacsim_ci" --> C[Only isaacsim_ci-marked tests run]
    B -- "nightly full run\nno filter" --> D[All tests run]
    C --> E[Before PR: isaaclab_ovphysx tests included\ncausing device-lock crash/timeout]
    C --> F[After PR: isaaclab_ovphysx tests excluded\nno device-lock issue]
    D --> G[isaaclab_ovphysx tests still run\nnightly device-lock issue persists]
    G -.->|"future follow-up:\nadd to TESTS_TO_SKIP"| H[tools/test_settings.py]
Loading

Reviews (1): Last reviewed commit: "Remove isaacsim_ci marker from OVPhysX t..." | Re-trigger 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.

🔍 Automated Review

Overall Assessment: This is a clean, focused CI maintenance PR that removes the @pytest.mark.isaacsim_ci marker from 74 OVPhysX tests across 4 files.

✅ What Looks Good

  1. Clear rationale: The PR description thoroughly explains why these tests fail in the Isaac Sim short CI (kitless OVPhysX device locking when mixing cuda:0 and cpu in the same pytest process).

  2. Surgical changes: Only the isaacsim_ci markers are removed — all other markers (parametrize, flaky, xfail) are preserved. No test logic is touched.

  3. Proper changelog skip file: The .skip changelog entry correctly documents this as a test-only change with no user-facing impact.

  4. Accurate count: The 74 removed decorators match the table in the PR description (31 + 19 + 14 + 10 = 74).

💬 Minor Observations

  • Nightly coverage: The PR notes that nightly runs (which drop the -m isaacsim_ci filter) will still execute these tests and may still hit device-lock issues. If these become problematic there, the follow-up path via TESTS_TO_SKIP is documented.

  • No pytest.ini changes: The isaacsim_ci marker presumably remains registered — this just removes its usage from these specific tests. That's the right approach to avoid breaking other repos that still use the marker.

📋 Summary

This is a straightforward CI fix: the tests provide no useful signal in the Isaac Sim short CI due to environmental constraints, so removing them from that run is appropriate. The tests remain runnable locally and in IsaacLab's own CI.

No blocking issues found.


🤖 Automated review by isaaclab-review-bot

@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 — PR #6085

Verdict: ✅ Looks Good (LGTM)

This is a clean, well-scoped CI configuration change that removes the @pytest.mark.isaacsim_ci marker from all isaaclab_ovphysx tests (74 decorators across 4 files) to stop them from running in the Isaac Sim per-MR ("short") CI.


Findings

🔵 Suggestion — No coverage gap introduced

The isaaclab_ov job in .github/workflows/build.yaml uses filter-pattern: "isaaclab_ov" (substring match), which catches both isaaclab_ov/ and isaaclab_ovphysx/ test paths. These tests continue to run in the IsaacLab CI on every PR. The nightly Isaac Sim run (no -m filter) also remains unaffected. No regression risk here.

🔵 Suggestion — device_split marker already handles the root cause in IsaacLab CI

All affected test files carry pytestmark = pytest.mark.device_split at module level, which tells the IsaacLab CI runner to invoke each file separately per device. The Isaac Sim short CI doesn't honor this marker (it runs everything in a single process), causing the kitless OVPhysX device-lock crash. Removing these from the Isaac Sim short CI is the correct fix given the constraint. If Isaac Sim CI ever adds device_split support, re-adding the marker would be straightforward.

🔵 Suggestion — Consider a conftest.py comment for future contributors

After this PR, the isaaclab_ovphysx test directory has zero isaacsim_ci markers remaining. A brief comment in source/isaaclab_ovphysx/test/conftest.py (or the package README) explaining why the marker is intentionally absent could prevent a future contributor from re-adding it without understanding the device-lock constraint:

# Note: @pytest.mark.isaacsim_ci is intentionally NOT used in this package.
# Kitless OVPhysX locks onto the first device; mixing CPU and CUDA in a
# single pytest process (as the Isaac Sim short CI does) causes crashes.
# See PR #6085 for context.

🔵 Suggestion — Changelog fragment is correct

The .skip extension on the changelog fragment (unmark-ovphysx-isaacsim-ci.skip) correctly signals no version bump, matching the "test-only, no user-facing change" nature of this PR.


Summary

Aspect Status
Correct tests dropped (OVPhysX only) ✅
PhysX tests untouched ✅
Coverage maintained (IsaacLab CI + nightly) ✅
No unintended side effects ✅
Changelog fragment correct ✅

Clean, minimal, well-documented PR. Ship it. 🚀

@AntoineRichard
AntoineRichard merged commit 83ebc6a into isaac-sim:develop Jun 10, 2026
37 checks passed
@AntoineRichard AntoineRichard mentioned this pull request Jun 10, 2026
7 tasks done
AntoineRichard added a commit that referenced this pull request Jun 17, 2026
# Description

Implements `Pva` and `PvaData` for the OVPhysX backend, satisfying the
`BasePva` / `BasePvaData` contracts. The sensor reports world-frame
pose, body-frame linear and angular velocities, body-frame coordinate
linear and angular accelerations (zero at rest, `-g` in freefall - not
the IMU's proper acceleration), and projected gravity as a unit
direction vector.

- The kernel is byte-for-byte aligned with `isaaclab_physx`'s PVA
kernel.
- The sensor class mirrors the OVPhysX IMU's structure verbatim wherever
  applicable (binding setup, buffer naming, error wording, `__str__`),
  diverging only for PVA-specific outputs and gravity-direction vs
  gravity-bias semantics.
- `PvaData` uses the same `ProxyArray` pattern as the IMU / Newton data
  classes; `pose_w` is rebuilt on read via the shared
  `concat_pos_and_quat_to_pose_1d_kernel` (matches PhysX's lazy access).
- `OvPhysxManager.get_gravity()` is added so backend-agnostic sensor
code
  can read scene gravity through one classmethod; identical to the same
  addition in #5421, so the two PRs merge cleanly in either order.
- The branch is merged on top of latest `develop` after #6072 and #6085.
  The kitless `usdrt` guard, OVPhysX USD-clone removal, and OVPhysX
  `isaacsim_ci` cleanup are now in the base branch, so this PR carries
  only the PVA sensor changes.

Validated end-to-end against the real OVPhysX backend on both CPU and
CUDA. The procedural and Nucleus-backed cases are run in separate pytest
processes because mixing them in one process can hit the known
process-global `omni.client` symbol issue.

Validation run:

```bash
./isaaclab.sh -p -m pytest --collect-only -q -m device_split source/isaaclab_ovphysx/test/sensors/test_pva.py
# 28 tests collected

./isaaclab.sh -p -m pytest -q source/isaaclab_ovphysx/test/sensors/test_pva.py -k 'cpu and not offset and not env_ids'
# 11 passed, 17 deselected

./isaaclab.sh -p -m pytest -q source/isaaclab_ovphysx/test/sensors/test_pva.py -k 'cpu and (offset or env_ids)'
# 2 passed, 26 deselected

./isaaclab.sh -p -m pytest -q source/isaaclab_ovphysx/test/sensors/test_pva.py -k 'cuda and not offset and not env_ids'
# 11 passed, 17 deselected

./isaaclab.sh -p -m pytest -q source/isaaclab_ovphysx/test/sensors/test_pva.py -k 'cuda and (offset or env_ids)'
# 2 passed, 26 deselected

./isaaclab.sh -p -m pytest -q source/isaaclab_ovphysx/test/sensors/test_pva.py -k 'single_dof_pendulum or indirect_attachment'
# 1 passed, 3 skipped, 24 deselected

PATH=/tmp/git-lfs-v3.7.1:$PATH ./isaaclab.sh -f
# Passed

rg -n "isaacsim_ci" source/isaaclab_ovphysx/test
# no matches
```

The skipped pendulum cases are pending a USD-converted pendulum asset;
the PhysX equivalents use the Kit URDF importer, which is not loaded
under the kitless launcher.

Fixes #5319

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` - CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
## Summary

- Removes the `@pytest.mark.isaacsim_ci` marker from all
`isaaclab_ovphysx` tests (74 decorators across 4 files), so they no
longer run in the Isaac Sim integration CI's per-MR ("short") run.
- No product code touched; tests remain runnable locally and in the
IsaacLab test suite.

## 1. Background

The Isaac Sim integration CI (in the `omni_isaac_sim` repo) clones
IsaacLab and runs its test suite. For per-MR runs it appends `-m
isaacsim_ci` to pytest, so only tests tagged `@pytest.mark.isaacsim_ci`
execute there. The full nightly run drops that filter and executes
everything.

The `isaaclab_ovphysx` tests are **kitless**, and kitless OVPhysX locks
onto the first device it runs on. The tests parametrize over both
`cuda:0` and `cpu`, so running both in the same pytest process crashes
or times out on the Isaac Sim runner:

```
test_contact_sensor.py            | FAILED  |  9/27
test_articulation.py              | TIMEOUT | 95/100
```

These failures do not reproduce on the IsaacLab-side CI and provide no
useful signal for the Isaac Sim build.

## 2. Change

Drop the `isaacsim_ci` marker from every `isaaclab_ovphysx` test:

| File | Markers removed |
|---|---|
| `test/assets/test_articulation.py` | 31 |
| `test/assets/test_rigid_object.py` | 19 |
| `test/assets/test_rigid_object_collection.py` | 14 |
| `test/sensors/test_contact_sensor.py` | 10 |

All other markers (`parametrize`, `flaky`) are preserved.

## 3. Scope and follow-up

- The nightly run executes the full suite without the marker filter, so
it is **unaffected** — these tests will still run there and could still
hit the device-lock issue. If we want them out of nightly too, the next
step is adding them to `TESTS_TO_SKIP` in `tools/test_settings.py`; that
is intentionally out of scope here, matching the request to remove them
from the Isaac Sim short CI.
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# Description

Implements `Pva` and `PvaData` for the OVPhysX backend, satisfying the
`BasePva` / `BasePvaData` contracts. The sensor reports world-frame
pose, body-frame linear and angular velocities, body-frame coordinate
linear and angular accelerations (zero at rest, `-g` in freefall - not
the IMU's proper acceleration), and projected gravity as a unit
direction vector.

- The kernel is byte-for-byte aligned with `isaaclab_physx`'s PVA
kernel.
- The sensor class mirrors the OVPhysX IMU's structure verbatim wherever
  applicable (binding setup, buffer naming, error wording, `__str__`),
  diverging only for PVA-specific outputs and gravity-direction vs
  gravity-bias semantics.
- `PvaData` uses the same `ProxyArray` pattern as the IMU / Newton data
  classes; `pose_w` is rebuilt on read via the shared
  `concat_pos_and_quat_to_pose_1d_kernel` (matches PhysX's lazy access).
- `OvPhysxManager.get_gravity()` is added so backend-agnostic sensor
code
  can read scene gravity through one classmethod; identical to the same
  addition in isaac-sim#5421, so the two PRs merge cleanly in either order.
- The branch is merged on top of latest `develop` after isaac-sim#6072 and isaac-sim#6085.
  The kitless `usdrt` guard, OVPhysX USD-clone removal, and OVPhysX
  `isaacsim_ci` cleanup are now in the base branch, so this PR carries
  only the PVA sensor changes.

Validated end-to-end against the real OVPhysX backend on both CPU and
CUDA. The procedural and Nucleus-backed cases are run in separate pytest
processes because mixing them in one process can hit the known
process-global `omni.client` symbol issue.

Validation run:

```bash
./isaaclab.sh -p -m pytest --collect-only -q -m device_split source/isaaclab_ovphysx/test/sensors/test_pva.py
# 28 tests collected

./isaaclab.sh -p -m pytest -q source/isaaclab_ovphysx/test/sensors/test_pva.py -k 'cpu and not offset and not env_ids'
# 11 passed, 17 deselected

./isaaclab.sh -p -m pytest -q source/isaaclab_ovphysx/test/sensors/test_pva.py -k 'cpu and (offset or env_ids)'
# 2 passed, 26 deselected

./isaaclab.sh -p -m pytest -q source/isaaclab_ovphysx/test/sensors/test_pva.py -k 'cuda and not offset and not env_ids'
# 11 passed, 17 deselected

./isaaclab.sh -p -m pytest -q source/isaaclab_ovphysx/test/sensors/test_pva.py -k 'cuda and (offset or env_ids)'
# 2 passed, 26 deselected

./isaaclab.sh -p -m pytest -q source/isaaclab_ovphysx/test/sensors/test_pva.py -k 'single_dof_pendulum or indirect_attachment'
# 1 passed, 3 skipped, 24 deselected

PATH=/tmp/git-lfs-v3.7.1:$PATH ./isaaclab.sh -f
# Passed

rg -n "isaacsim_ci" source/isaaclab_ovphysx/test
# no matches
```

The skipped pendulum cases are pending a USD-converted pendulum asset;
the PhysX equivalents use the Kit URDF importer, which is not loaded
under the kitless launcher.

Fixes isaac-sim#5319

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` - CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants