Skip to content

Run OV test jobs on fork PRs without the OVPhysX wheelhouse - #6348

Merged
ooctipus merged 5 commits into
isaac-sim:developfrom
ooctipus:zhengyuz/fix-ov-fork-ci-gating
Jul 6, 2026
Merged

ooctipus merged 5 commits into
isaac-sim:developfrom
ooctipus:zhengyuz/fix-ov-fork-ci-gating

Conversation

@ooctipus

@ooctipus ooctipus commented Jul 3, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Since #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 #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 — #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 #6308, where the OVRTX-variant jobs skip on every attempt.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • 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
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

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.
@ooctipus
ooctipus requested a review from kellyguo11 as a code owner July 3, 2026 23:21
@github-actions github-actions Bot added bug Something isn't working infrastructure labels Jul 3, 2026
@greptile-apps

greptile-apps Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR restores CI test coverage for fork PRs by removing redundant job-level if: conditions from test-isaaclab-ov and test-rendering-correctness-kitless. The removed clauses gated entire jobs on the wheelhouse trust check, but that check is already handled correctly at the step level: USE_OVPHYSX_WHEELHOUSE resolves to false for fork PRs, passing an empty wheelhouse-resource to run-package-tests, which in turn skips the NGC download step (if: inputs.wheelhouse-resource != '') and falls back to pip-index installs of ovrtx ovphysx.

  • test-isaaclab-ov: Removes the wheelhouse clause from the job condition while keeping github.event_name != 'push'; fork PRs now run using the pip-index fallback path.
  • test-rendering-correctness-kitless: Same wheelhouse clause removal; the job condition simplifies to needs.build.result == 'success', matching the pre-Fetch OVPhysX wheelhouse CI through NGC + 0.5.1 bump #6314 run scope.
  • No secrets are exposed: NGC_API_KEY is unavailable to fork PRs by GitHub's design, and the action's inner guard (exit 1 when NGC_API_KEY is unset) provides a defense-in-depth backstop.

Confidence Score: 5/5

Safe 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

Filename Overview
.github/workflows/build.yaml Removes redundant job-level wheelhouse guards from test-isaaclab-ov and test-rendering-correctness-kitless, restoring pre-#6314 fork PR coverage; the trust boundary is correctly enforced at the step level via USE_OVPHYSX_WHEELHOUSE and if: inputs.wheelhouse-resource != ''.

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
Loading
%%{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
Loading

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.
@ooctipus ooctipus self-assigned this Jul 4, 2026
@ooctipus
ooctipus merged commit f3c0008 into isaac-sim:develop Jul 6, 2026
37 checks passed
@ooctipus
ooctipus deleted the zhengyuz/fix-ov-fork-ci-gating branch July 6, 2026 07:26
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants