Repository navigation
[CI] Fetch OVPhysX wheelhouse through Docker - #6388
kellyguo11 merged 2 commits into
Conversation
hujc7
left a comment
There was a problem hiding this comment.
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:
- The
exclude-pattern/test-k-exprflips 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. - The license-check path is unexercised on GitHub (self-skips for fork PRs; none of the last 100 runs executed).
preserve_wheelhouse_root=truefixes a real latent bug there, but the path rests on local validation — suggest exercising it once via a same-repo PR after merge.
Greptile SummaryThis 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
Confidence Score: 4/5Safe 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
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)
%%{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)
|
9f6dd2b to
fed79ec
Compare
|
@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 2. Fork-gate on the test jobs. Added a one-line comment in 3. license-check empty-pin / unexercised path. Rather than just gate the step, I removed the internal wheelhouse from Two related cleanups while here:
The Docker wheelhouse path for the |
5efdcde to
b8cfd0e
Compare
bc7ab91 to
89ec99c
Compare
8960ca3 to
2b6aa0f
Compare
|
for the python license check, you can update the license-exceptions.json file to include ovstage, and update the license for typing_extensions |
65b3790 to
4159d43
Compare
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.
4159d43 to
4e46564
Compare
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: "" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Any reason this is dropped?
There was a problem hiding this comment.
I may have cut a bit too aggressively.
There was a problem hiding this comment.
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.
## 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]>
Summary
ovphysx_wheelhouse_image: ""; CI continues to install publicovphysx==0.5.9.ovstageandtyping_extensionslicense metadata exceptions.Activation
A separate reviewed change can set
ovphysx_wheelhouse_imageto an@sha256:image reference.Validation
./isaaclab.sh -fpassed on the committed tree.