Skip to content

[CI] Fetch OVPhysX wheelhouse through Docker - #6388

Merged
kellyguo11 merged 2 commits into
isaac-sim:developfrom
marcodiiga:fix/malesiani/ovphysx_docker_wheelhouse_ci
Jul 31, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:developfrom
marcodiiga:fix/malesiani/ovphysx_docker_wheelhouse_ci

Conversation

@marcodiiga

@marcodiiga marcodiiga commented Jul 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Replace OVPhysX NGC-resource ingestion with an optional Docker wheelhouse.
  • Keep the Docker path disabled with ovphysx_wheelhouse_image: ""; CI continues to install public ovphysx==0.5.9.
  • Require future wheelhouse images to be pinned by digest and restrict their use to trusted same-repository refs.
  • Reuse the existing offline wheelhouse installation and runtime-version check.
  • Materialize ECR dependency-cache hits for test callers while base, cuRobo, and multi-GPU build-only jobs opt out.
  • Remove private-wheel handling from the license workflow.
  • Align the public ovstage and typing_extensions license metadata exceptions.

Activation

A separate reviewed change can set ovphysx_wheelhouse_image to an @sha256: image reference.

Validation

  • Focused ECR/wheelhouse regression check passed with a verified red/green boundary.
  • Repository-wide ./isaaclab.sh -f passed on the committed tree.

@hujc7 hujc7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review: Transport swap verified end to end — this PR's own isaaclab_ov job pulled the pinned digest, validated both wheels, and ran the OVPhysX tests green. Two notes:

  1. The exclude-pattern/test-k-expr flips are behavioral fixes: cond && '' || 'x' always yields 'x' in GitHub expressions, so OVPhysX tests never ran even on trusted runs before this PR. Worth a sentence in the description.
  2. The license-check path is unexercised on GitHub (self-skips for fork PRs; none of the last 100 runs executed). preserve_wheelhouse_root=true fixes a real latent bug there, but the path rests on local validation — suggest exercising it once via a same-repo PR after merge.

Comment thread .github/workflows/build.yaml Resolved
Comment thread .github/workflows/license-check.yaml Resolved
@AntoineRichard
AntoineRichard marked this pull request as ready for review July 20, 2026 09:44
@AntoineRichard
AntoineRichard requested a review from a team July 20, 2026 09:44
@greptile-apps

greptile-apps Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR replaces the NGC CLI-based OVPhysX wheelhouse download with a digest-pinned Docker image pulled from NVCR. Wheels and the manifest are extracted via docker create / docker cp without executing the image, and a Python validation step verifies the manifest identity, source SHA, exact wheel set, and per-wheel SHA256 hashes before installation.

  • config.yaml: switches the pin from an NGC resource path to a fully digest-pinned NVCR image reference.
  • action.yml / license-check.yaml: remove the NGC CLI download-and-cache steps; replace with docker pull → docker create → docker cp extraction; add manifest integrity checks.
  • build.yaml: renames ovphysx_wheelhouse_resource to ovphysx_wheelhouse_image and removes the fork-PR guard from USE_OVPHYSX_WHEELHOUSE.

Confidence Score: 4/5

Safe to merge for the primary CI paths; two robustness concerns worth watching but neither blocks the validated workflows.

The transport change is well-validated and the manifest integrity checks are thorough. The two concerns are: fork PRs targeting develop now attempt wheelhouse extraction via runner-level nvcr.io credentials with no graceful fallback, and the credential-stripping logic in action.yml silently drops any credential-helper-stored auth for nvcr.io. Both are benign on the currently configured runners as proven by the CI run in the PR description, but they create implicit dependencies on runner state that could silently break future fork PR runs.

build.yaml (the fork-PR credential dependency) and action.yml (the credential-stripping logic) deserve a second look if runner nvcr.io authentication is ever reconfigured.

Important Files Changed

Filename Overview
.github/actions/run-package-tests/action.yml Replaces NGC CLI download with Docker-based wheelhouse extraction; adds robust manifest and hash validation. The credential-stripping approach for nvcr.io auth is safe for standard runners but silently breaks if a credential helper is configured for that registry.
.github/workflows/build.yaml Updates USE_OVPHYSX_WHEELHOUSE to use the new image-based config key; removes the fork-PR guard from both isaaclab_ov and rendering-correctness-kitless jobs, creating an implicit dependency on pre-configured runner nvcr.io credentials for fork PRs.
.github/workflows/config.yaml Replaces the NGC resource path with a digest-pinned Docker image reference for the OVPhysX wheelhouse; digest and tag format look correct.
.github/workflows/license-check.yaml Switches to Docker-based wheelhouse extraction with an explicit NGC_API_KEY login; adds a digest-format guard and the same manifest/hash validation used in the composite action; fork PRs are correctly excluded at the job level.

Sequence Diagram

%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
    participant GHA as GitHub Actions Job
    participant Runner as CI Runner
    participant NVCR as nvcr.io Registry
    participant Docker as Local Docker Daemon

    GHA->>Runner: wheelhouse-image input set?
    Runner->>Runner: Check ~/.docker/config.json exists
    Runner->>Runner: "Copy config, strip credsStore & credHelpers"
    Runner->>Runner: "export DOCKER_CONFIG=docker_config_dir"
    Runner->>NVCR: docker pull image (tag+digest)
    NVCR-->>Docker: image layers
    Runner->>Docker: docker create (no execution)
    Docker-->>Runner: container_id
    Runner->>Docker: docker cp container:/wheelhouse
    Runner->>Docker: docker cp container:/manifest.json
    Runner->>Docker: docker rm container
    Runner->>Docker: docker image rm image
    Runner->>Runner: Python: validate manifest identity, platform, image field
    Runner->>Runner: Python: verify tag SHA prefix matches ovphysx_git_sha
    Runner->>Runner: Python: verify each wheel SHA256
    Runner->>Runner: Python: verify exact wheel-set (no extras)
    Runner->>GHA: wheelhouse_host_dir output
    GHA->>Runner: run-tests (UV_FIND_LINKS / pip --no-index)
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"}}}%%
sequenceDiagram
    participant GHA as GitHub Actions Job
    participant Runner as CI Runner
    participant NVCR as nvcr.io Registry
    participant Docker as Local Docker Daemon

    GHA->>Runner: wheelhouse-image input set?
    Runner->>Runner: Check ~/.docker/config.json exists
    Runner->>Runner: "Copy config, strip credsStore & credHelpers"
    Runner->>Runner: "export DOCKER_CONFIG=docker_config_dir"
    Runner->>NVCR: docker pull image (tag+digest)
    NVCR-->>Docker: image layers
    Runner->>Docker: docker create (no execution)
    Docker-->>Runner: container_id
    Runner->>Docker: docker cp container:/wheelhouse
    Runner->>Docker: docker cp container:/manifest.json
    Runner->>Docker: docker rm container
    Runner->>Docker: docker image rm image
    Runner->>Runner: Python: validate manifest identity, platform, image field
    Runner->>Runner: Python: verify tag SHA prefix matches ovphysx_git_sha
    Runner->>Runner: Python: verify each wheel SHA256
    Runner->>Runner: Python: verify exact wheel-set (no extras)
    Runner->>GHA: wheelhouse_host_dir output
    GHA->>Runner: run-tests (UV_FIND_LINKS / pip --no-index)
Loading

Comments Outside Diff (1)

  1. .github/workflows/build.yaml, line 601 (link)

    P2 Fork PRs now depend on pre-configured runner credentials

    The old expression included && github.event.pull_request.head.repo.full_name == github.repository, which set USE_OVPHYSX_WHEELHOUSE=false for fork PRs and let them fall back to public packages. The new expression removes that guard, so a fork PR targeting develop now gets USE_OVPHYSX_WHEELHOUSE=true, causing run-package-tests to attempt a docker pull from nvcr.io using whatever credentials happen to be cached on the runner. If those cached credentials are absent or have been rotated, fork PR jobs will fail with an opaque Docker authentication error rather than gracefully degrading to the public-package path.

    The same issue exists at line 781 for the rendering-correctness-kitless job.

Reviews (1): Last reviewed commit: "Merge branch 'develop' into fix/malesian..." | Re-trigger Greptile

@AntoineRichard
AntoineRichard force-pushed the fix/malesiani/ovphysx_docker_wheelhouse_ci branch from 9f6dd2b to fed79ec Compare July 20, 2026 10:14
@AntoineRichard

Copy link
Copy Markdown
Collaborator

@hujc7 thanks for the careful review — all three points are addressed:

1. Ternary flip is a behavioral fix, not just a rename. Documented in the PR description under Review follow-ups: the old ${{ cond && '' || 'x' }} always evaluates to 'x' (empty string is falsy), so the OVPhysX tests never ran even on trusted runs; the inverted ${{ cond != 'true' && 'x' || '' }} fixes that.

2. Fork-gate on the test jobs. Added a one-line comment in build.yaml documenting the intent: the image is pulled with the runner's ambient nvcr.io login (no NGC_API_KEY secret crosses the fork boundary) and the wheels are internal-ci-only rather than credentials. Whether fork-PR runs should receive these wheels is ultimately a maintainer call — flagging it explicitly rather than leaving it implicit.

3. license-check empty-pin / unexercised path. Rather than just gate the step, I removed the internal wheelhouse from license-check entirely. uv sync --extra all excludes the ov extra (it clashes with isaacsim), and uv.lock confirms ovphysx is gated behind extra == 'ov' only — so that job never actually resolved OVPhysX and the wheelhouse fetch was inert. OVPhysX now gets the same treatment as its sister ovrtx (plain public resolution). Both your concerns dissolve with the code: there's no empty-pin hard-fail and no locally-validated-only path left. Note this drops the NGC_API_KEY dependency and the same-repo gate, so license-check now runs on fork PRs again — worth a second look as a deliberate behavior change.

Two related cleanups while here:

  • Renamed the private-source identifiers to internal (USE_OVPHYSX_INTERNAL, ovphysx_internal_image, the internal-image action input) to match the manifest's internal-ci-only purpose; wheelhouse now names only the extracted artifact.
  • Factored the byte-identical manifest validator out of both workflows into a shared validate_wheelhouse_manifest.py.

The Docker wheelhouse path for the build.yaml test jobs (which need ovphysx ≥ 0.5.1) is unchanged.

@AntoineRichard
AntoineRichard force-pushed the fix/malesiani/ovphysx_docker_wheelhouse_ci branch from 5efdcde to b8cfd0e Compare July 21, 2026 14:27
@marcodiiga
marcodiiga force-pushed the fix/malesiani/ovphysx_docker_wheelhouse_ci branch 2 times, most recently from bc7ab91 to 89ec99c Compare July 21, 2026 16:50
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 22, 2026
@AntoineRichard
AntoineRichard requested a review from ooctipus as a code owner July 22, 2026 15:04
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Jul 22, 2026
@AntoineRichard
AntoineRichard force-pushed the fix/malesiani/ovphysx_docker_wheelhouse_ci branch from 8960ca3 to 2b6aa0f Compare July 27, 2026 16:14
@kellyguo11

Copy link
Copy Markdown
Contributor

for the python license check, you can update the license-exceptions.json file to include ovstage, and update the license for typing_extensions

@AntoineRichard
AntoineRichard force-pushed the fix/malesiani/ovphysx_docker_wheelhouse_ci branch from 65b3790 to 4159d43 Compare July 30, 2026 09:17
Replace NGC resource ingestion with a digest-pinned Docker image path
controlled by empty repository configuration. Public packages remain the
default.

Materialize dependency-cache hits for test callers while registry-only
build jobs opt out.
@AntoineRichard
AntoineRichard force-pushed the fix/malesiani/ovphysx_docker_wheelhouse_ci branch from 4159d43 to 4e46564 Compare July 30, 2026 09:34

@marcodiiga marcodiiga left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head after handoff 4e4656401d181da17fe86ab1c7fa5d191da81a02. The Docker carrier and intentionally empty pin make sense. I found two blocking gaps in the trim: the carrier path no longer establishes artifact identity/integrity or the mandatory OVStage closure, and no persistent test exercises that dormant policy. I left one comment for each concern.


if [ -z "${NGC_API_KEY:-}" ]; then
echo "::error::wheelhouse-resource is set but NGC_API_KEY is unavailable; cannot download configured wheelhouse resource"
if [[ "$WHEELHOUSE_IMAGE" != *@sha256:* ]]; then

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: the Docker transport now validates neither the image origin nor the extracted artifact. The *@sha256:* check accepts any repository and malformed digests; after extraction, manifest.json, source identity, the exact wheel set, and wheel hashes are never verified. The later OVPhysX version comparison is only self-consistency against the same image and happens after installation/import.

Please retain a narrow pre-install validator that allowlists the expected repository, requires a full lowercase SHA-256 digest, binds manifest version/source identity to repository-controlled expected values, and verifies regular wheel hashes/sizes with no missing or extra files. The current OVPhysX wheel installs OVStage transitively, but OVStage is now part of the required carrier contract, so the validator/runtime check should also require, import, and version-check both OVPhysX and OVStage. The earlier public validator is a useful reference, with its old repository/tag assumptions updated rather than restored unchanged.

isaacsim_image_tag: latest-develop
isaaclab_image_name: nvcr.io/nvidian/isaac-lab
ovphysx_wheelhouse_resource: "nvidian/ovphysx-wheelhouse:trunk-gf62c22207cfd"
ovphysx_wheelhouse_image: ""

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking test gap: leaving this pin empty for now is sensible, but it also means every check on this head follows the public-package fallback and none executes the new registry/extraction path. The focused helper/policy tests were removed too, so green CI cannot catch malformed references, missing/extra/tampered wheels, cleanup regressions, or broken trusted-ref fallback.

Please retain a reduced CPU-only mocked suite in an existing workflow. It should cover the dormant/enabled policy, strict image reference and manifest/file validation (including OVStage), and cleanup/error paths. The real image pull, offline OVPhysX+OVStage install/import checks, and OVStage-backed ingestion test can remain an explicit gate for the later activation change.

…388-20260730

# Conflicts:
#	.github/actions/ecr-build-push-pull/action.yml
#	.github/actions/run-package-tests/action.yml
#	.github/workflows/build.yaml
license-check:
# Fork PRs cannot access NGC_API_KEY, so they cannot resolve the immutable
# OVPhysX wheel required by the development extras.
if: github.event.pull_request.head.repo.full_name == github.repository

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this is dropped?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may have cut a bit too aggressively.

@AntoineRichard AntoineRichard Jul 31, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking again, dropping this guard was intentional. It only existed because the old license workflow required NGC_API_KEY to download the private NGC wheelhouse. This PR leaves the Docker carrier disabled and resolves the public packages instead, so the license check no longer needs secrets and can run on fork PRs. The refreshed license check passes. When the Docker carrier is activated, we can decide whether its CI-only wheels also need to participate in license scanning.

@kellyguo11
kellyguo11 merged commit 330ca26 into isaac-sim:develop Jul 31, 2026
100 of 102 checks passed
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
## Summary

- Replace OVPhysX NGC-resource ingestion with an optional Docker
wheelhouse.
- Keep the Docker path disabled with `ovphysx_wheelhouse_image: ""`; CI
continues to install public `ovphysx==0.5.9`.
- Require future wheelhouse images to be pinned by digest and restrict
their use to trusted same-repository refs.
- Reuse the existing offline wheelhouse installation and runtime-version
check.
- Materialize ECR dependency-cache hits for test callers while base,
cuRobo, and multi-GPU build-only jobs opt out.
- Remove private-wheel handling from the license workflow.
- Align the public `ovstage` and `typing_extensions` license metadata
exceptions.

## Activation

A separate reviewed change can set `ovphysx_wheelhouse_image` to an
`@sha256:` image reference.

## Validation

- Focused ECR/wheelhouse regression check passed with a verified
red/green boundary.
- Repository-wide `./isaaclab.sh -f` passed on the committed tree.

Co-authored-by: AntoineRichard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants