Repository navigation
Run OV test jobs on fork PRs without the OVPhysX wheelhouse - #6348
Conversation
Commit a13d8d6 (isaac-sim#6314) gated test-isaaclab-ov and test-rendering-correctness-kitless behind a trusted-context check whenever ovphysx_wheelhouse_resource is configured, so every fork PR now skips both jobs entirely and silently loses all OVRTX and kitless rendering coverage. The same commit already introduced the correct fallback: the USE_OVPHYSX_WHEELHOUSE env var resolves the trust decision per run, and untrusted contexts install ovphysx from the pip index with no wheelhouse inputs, so the NGC download step (which needs secrets that fork PRs cannot access) never runs for them. The job-level conditions duplicated that decision at the wrong scope and made the fallback unreachable. Drop the wheelhouse clauses from both job conditions so fork PRs run the jobs via the pip fallback while trusted runs keep using the NGC wheelhouse.
Greptile SummaryThis PR restores CI test coverage for fork PRs by removing redundant job-level
Confidence Score: 5/5Safe to merge — the two-line condition removal correctly eliminates dead code that was silently skipping entire jobs on fork PRs, and the actual trust boundary enforcement remains intact at the step level. The analysis confirms that every safety mechanism that mattered is preserved: USE_OVPHYSX_WHEELHOUSE evaluates to false for fork PRs (no NGC credentials are passed), the extract-wheelhouse step in run-package-tests/action.yml is independently gated on inputs.wheelhouse-resource != '' (which will be empty for fork PRs), and the action has a hard exit 1 failsafe if NGC_API_KEY is absent but the resource is somehow non-empty. The removed conditions were genuinely redundant — the fallback pip-index install path they were preventing from running is fully functional and was the pre-#6314 behavior. No logic regressions were found. No files require special attention. The single changed file touches only job-level if: conditions. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PR triggered] --> B{github.event_name not push?\nFor test-isaaclab-ov only}
B -- yes --> C{needs.build.result == 'success'?}
B -- no --> SKIP1[Job skipped]
C -- yes --> D{ovphysx_wheelhouse_resource != ''\nAND trusted context?}
C -- no --> SKIP2[Job skipped]
D -- yes\nSame-repo PR to develop\nor push to develop --> E[USE_OVPHYSX_WHEELHOUSE=true\nNGC wheelhouse download\nInstall ovphysx from wheelhouse]
D -- no\nFork PR or other branch --> F[USE_OVPHYSX_WHEELHOUSE=false\nSkip NGC download step\nInstall ovrtx + ovphysx from pip index]
E --> G[Run tests]
F --> G
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[PR triggered] --> B{github.event_name not push?\nFor test-isaaclab-ov only}
B -- yes --> C{needs.build.result == 'success'?}
B -- no --> SKIP1[Job skipped]
C -- yes --> D{ovphysx_wheelhouse_resource != ''\nAND trusted context?}
C -- no --> SKIP2[Job skipped]
D -- yes\nSame-repo PR to develop\nor push to develop --> E[USE_OVPHYSX_WHEELHOUSE=true\nNGC wheelhouse download\nInstall ovphysx from wheelhouse]
D -- no\nFork PR or other branch --> F[USE_OVPHYSX_WHEELHOUSE=false\nSkip NGC download step\nInstall ovrtx + ovphysx from pip index]
E --> G[Run tests]
F --> G
Reviews (1): Last reviewed commit: "Run OV test jobs on fork PRs without the..." | Re-trigger Greptile |
CI on this PR showed the pip-index fallback is only partially viable: ovphysx 0.4.13 (newest public wheel) lacks PhysX.set_cpu_mode, which ovphysx_manager now calls unconditionally, so every isaaclab_ovphysx test fails, while all isaaclab_ov (ovrtx) tests pass on the pip stack. Scope the fallback accordingly: fork PRs run test-isaaclab-ov with isaaclab_ovphysx tests excluded, and test-rendering-correctness-kitless (whose matrix is predominantly ovphysx-backed) stays gated to trusted runs until ovphysx >= 0.5.1 is published to the public index.
The kitless golden-image files parametrize physics backends inside each file, so file-level excludes cannot separate ovphysx-backed params from newton/ovrtx ones. Deselect at param granularity instead: untrusted runs pass -k "not ovphysx", keeping the newton + ovrtx kitless rendering coverage for fork PRs while the ovphysx-backed params stay trusted-only until ovphysx >= 0.5.1 reaches the public pip index.
The run_tests call interpolated inputs.pytest-options textually into the bash command line, so a value like -k "not ovphysx" word-split into "-k not" and shifted every following positional argument by one. Pass it through the step environment instead; the value then reaches the container script intact and the container shell parses the embedded quotes.
pytest-options only affects the orchestrating pytest process over tools/, not the per-file subprocesses tools/conftest.py spawns, so -k "not ovphysx" never reached the tests: cartpole's ovphysx-backed params ran against pip-index ovphysx 0.4.13, failed at init, and the leaked partially-initialized ovrtx engines exhausted SyncScopeIds until HydraEngine creation aborted (CRASHED, no report). Add a test-k-expr input plumbed through run-package-tests and run-tests into the container as TEST_K_EXPR; tools/conftest.py combines it with the device-split selectors for every per-file run. The kitless job uses it to deselect ovphysx-backed params in untrusted runs.
…m#6348) # Description Since isaac-sim#6314 landed, `test-isaaclab-ov` and `test-rendering-correctness-kitless` are silently skipped on every fork PR: the job-level `if:` conditions require a same-repository PR (or `develop`) whenever `ovphysx_wheelhouse_resource` is configured — which it now always is. Fork contributors and team members working from forks have had zero OVRTX / kitless rendering CI coverage since then, with no visible signal (the jobs just show "skipped"). The NGC trust boundary is correct (the wheelhouse download needs `NGC_API_KEY`, which fork PRs cannot access), and this PR keeps it intact — the `USE_OVPHYSX_WHEELHOUSE` env var from isaac-sim#6314 already resolves trust per run, and the NGC download step is gated on `wheelhouse-resource != ''`, so it never executes without credentials. This PR's own CI (it is a fork PR, and PR runs use the merge-commit workflow, so it exercises its own fix) established exactly which coverage is recoverable on the public pip stack: - **All `isaaclab_ov` (ovrtx) tests pass** with pip-index `ovrtx` + `ovphysx` — 0 failures. - **All 562 `isaaclab_ovphysx` test failures are one error**: `AttributeError: type object 'PhysX' has no attribute 'set_cpu_mode'` — `ovphysx_manager` now requires ovphysx ≥ 0.5.1, which only exists in the NGC wheelhouse; the newest public wheel is 0.4.13. ovrtx does not depend on ovphysx, so the fallback separates them at the finest granularity each job allows: - `test-isaaclab-ov` **runs on fork PRs** via the pip fallback with `exclude-pattern: isaaclab_ovphysx` (file-level — the two packages live in separate test trees; the shared `filter-pattern: "isaaclab_ov"` only bundles them by prefix match). - `test-rendering-correctness-kitless` **runs on fork PRs** with a new `test-k-expr` input that reaches the per-file pytest subprocesses spawned by `tools/conftest.py` (param-level: `not ovphysx` — the golden-image files parametrize physics backends inside each file, so fork runs keep the `newton + ovrtx` combinations and deselect only the ovphysx-backed params). - Trusted runs (same-repo PRs to `develop`, post-merge `develop`) are byte-for-byte unchanged. Once ovphysx ≥ 0.5.1 is published to the public pip index, the exclude and the `-k` deselect can both be dropped and fork PRs regain full parity. cc @AntoineRichard — isaac-sim#6314's description says "Do not merge; this PR exists only for CI validation", so flagging in case the fork-PR skip wasn't meant to reach `develop` in this form at all. Fixes the coverage gap observed on isaac-sim#6308, where the OVRTX-variant jobs skip on every attempt. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## 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` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Description
Since #6314 landed,
test-isaaclab-ovandtest-rendering-correctness-kitlessare silently skipped on every fork PR: the job-levelif:conditions require a same-repository PR (ordevelop) wheneverovphysx_wheelhouse_resourceis configured — which it now always is. Fork contributors and team members working from forks have had zero OVRTX / kitless rendering CI coverage since then, with no visible signal (the jobs just show "skipped").The NGC trust boundary is correct (the wheelhouse download needs
NGC_API_KEY, which fork PRs cannot access), and this PR keeps it intact — theUSE_OVPHYSX_WHEELHOUSEenv var from #6314 already resolves trust per run, and the NGC download step is gated onwheelhouse-resource != '', so it never executes without credentials.This PR's own CI (it is a fork PR, and PR runs use the merge-commit workflow, so it exercises its own fix) established exactly which coverage is recoverable on the public pip stack:
isaaclab_ov(ovrtx) tests pass with pip-indexovrtx+ovphysx— 0 failures.isaaclab_ovphysxtest failures are one error:AttributeError: type object 'PhysX' has no attribute 'set_cpu_mode'—ovphysx_managernow requires ovphysx ≥ 0.5.1, which only exists in the NGC wheelhouse; the newest public wheel is 0.4.13.ovrtx does not depend on ovphysx, so the fallback separates them at the finest granularity each job allows:
test-isaaclab-ovruns on fork PRs via the pip fallback withexclude-pattern: isaaclab_ovphysx(file-level — the two packages live in separate test trees; the sharedfilter-pattern: "isaaclab_ov"only bundles them by prefix match).test-rendering-correctness-kitlessruns on fork PRs with a newtest-k-exprinput that reaches the per-file pytest subprocesses spawned bytools/conftest.py(param-level:not ovphysx— the golden-image files parametrize physics backends inside each file, so fork runs keep thenewton + ovrtxcombinations and deselect only the ovphysx-backed params).develop, post-mergedevelop) are byte-for-byte unchanged.Once ovphysx ≥ 0.5.1 is published to the public pip index, the exclude and the
-kdeselect can both be dropped and fork PRs regain full parity.cc @AntoineRichard — #6314's description says "Do not merge; this PR exists only for CI validation", so flagging in case the fork-PR skip wasn't meant to reach
developin this form at all.Fixes the coverage gap observed on #6308, where the OVRTX-variant jobs skip on every attempt.
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there