Repository navigation
Support external RLinf tasks and explicit episode success #19757
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). | |
| # All rights reserved. | |
| # | |
| # SPDX-License-Identifier: BSD-3-Clause | |
| # Any label starts a run because GitHub cannot filter label names at trigger time. | |
| # Unactivated updates fail on a CPU runner because skipped required jobs count as successful. | |
| name: Docker + Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| - 'release/**' | |
| pull_request: | |
| types: [labeled, synchronize] | |
| branches: | |
| - main | |
| - develop | |
| - 'release/**' | |
| workflow_dispatch: | |
| workflow_call: | |
| inputs: | |
| config_ref: | |
| description: 'Git ref whose .github/workflows/config.yaml supplies the CI image pins' | |
| required: false | |
| type: string | |
| default: '' | |
| ci_image_repository: | |
| description: 'Repository name used for the temporary CI image tag' | |
| required: false | |
| type: string | |
| default: 'isaac-lab-ci' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| # Push and workflow_dispatch events carry no label, so this stays false for them and | |
| # preserves the post-merge runs that ``github.event_name == 'pull_request'`` used to protect. | |
| cancel-in-progress: ${{ github.event.action == 'synchronize' || github.event.label.name == 'ci:run-docker' || github.event.label.name == 'ci:run-ovstage' }} | |
| permissions: | |
| contents: read | |
| actions: read | |
| pull-requests: write | |
| checks: write | |
| issues: read | |
| env: | |
| NGC_API_KEY: ${{ secrets.NGC_API_KEY }} | |
| jobs: | |
| changes: | |
| name: Detect Changes | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| issues: read | |
| outputs: | |
| should_run: ${{ steps.detect.outputs.should_run }} | |
| activated: ${{ steps.activation.outputs.activated }} | |
| steps: | |
| - name: Check PR update activation | |
| id: activation | |
| continue-on-error: true | |
| timeout-minutes: 5 | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| // Label history preserves activation after run-ci removes its triggering label. | |
| core.setOutput('activated', 'false'); | |
| if (context.eventName !== 'pull_request' || context.payload.action !== 'synchronize') { | |
| core.setOutput('activated', 'true'); | |
| return; | |
| } | |
| for await (const response of github.paginate.iterator(github.rest.issues.listEvents, { | |
| ...context.repo, issue_number: context.payload.pull_request.number, per_page: 100, | |
| request: {timeout: 60000}, | |
| })) { | |
| // GITHUB_TOKEN labeler events cannot trigger another workflow. | |
| if (response.data.some(event => event.event === 'labeled' | |
| && event.actor?.login && event.actor.login !== 'github-actions[bot]')) { | |
| core.setOutput('activated', 'true'); | |
| return; | |
| } | |
| } | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| sparse-checkout: .github/actions/detect-changes | |
| sparse-checkout-cone-mode: false | |
| - id: detect | |
| uses: ./.github/actions/detect-changes | |
| with: | |
| triggered-jobs-push: "Docker base + cuRobo build jobs + rendering-correctness + rendering-correctness-kitless + warp-cache-warm + ovrtx-cache-warm" | |
| triggered-jobs-pr: "Docker build jobs + all test-* matrix jobs" | |
| # config.yaml changes can change the Docker base image. | |
| patterns: | | |
| ^source/ :: Library source code | |
| ^docker/ :: Container build inputs | |
| ^tools/ :: Build tooling | |
| ^apps/ :: Standalone apps | |
| ^scripts/ :: Standalone scripts | |
| ^\.dockerignore$ :: Docker build context filter | |
| ^conftest\.py$ :: Root pytest configuration | |
| ^uv\.lock$ :: Dependency lockfile | |
| ^pyproject\.toml$ :: Root Python project (Docker copy) | |
| ^\.github/workflows/build\.yaml$ :: This workflow file | |
| ^\.github/workflows/config\.yaml$ :: Shared CI config | |
| ^\.github/actions/ :: CI actions | |
| ^\.github/test-subsets/ :: CI test subset config | |
| config: | |
| name: Load Config | |
| runs-on: ubuntu-latest | |
| outputs: | |
| isaacsim_image_name: ${{ steps.load.outputs.isaacsim_image_name }} | |
| isaacsim_image_tag: ${{ steps.load.outputs.isaacsim_image_tag }} | |
| isaaclab_image_name: ${{ steps.load.outputs.isaaclab_image_name }} | |
| ovphysx_wheelhouse_image: ${{ steps.load.outputs.ovphysx_wheelhouse_image }} | |
| ci_image_tag: ${{ steps.image_tag.outputs.ci_image_tag }} | |
| base_isaacsim_image_name: ${{ steps.base_load.outputs.name }} | |
| base_isaacsim_image_tag: ${{ steps.base_load.outputs.version }} | |
| base_image_config_outcome: ${{ steps.base_load.outcome }} | |
| paired_base_commit: ${{ steps.perf_pair.outputs.base_commit }} | |
| paired_base_error: ${{ steps.perf_pair.outputs.reason }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ inputs.config_ref }} | |
| fetch-depth: 1 | |
| sparse-checkout: | | |
| .github/workflows/config.yaml | |
| tools/performance_regression/ | |
| sparse-checkout-cone-mode: false | |
| - id: load | |
| run: | | |
| set -euo pipefail | |
| f=.github/workflows/config.yaml | |
| echo "isaacsim_image_name=$(yq -r .isaacsim_image_name "$f")" >> "$GITHUB_OUTPUT" | |
| echo "isaacsim_image_tag=$(yq -r .isaacsim_image_tag "$f")" >> "$GITHUB_OUTPUT" | |
| echo "isaaclab_image_name=$(yq -r .isaaclab_image_name "$f")" >> "$GITHUB_OUTPUT" | |
| echo "ovphysx_wheelhouse_image=$(yq -r '.ovphysx_wheelhouse_image // ""' "$f")" >> "$GITHUB_OUTPUT" | |
| echo "config_hash=$(sha256sum "$f" | cut -d' ' -f1)" >> "$GITHUB_OUTPUT" | |
| # NOTE: the default ci_image_tag formula is intentionally duplicated in | |
| # arm-ci.yml's config job. Reusable x86 runs can select another repository | |
| # and append a referenced-config identity; the independent ARM image cannot. | |
| # Keep the shared ref/SHA portion in sync if either formula changes. | |
| - id: image_tag | |
| shell: bash | |
| env: | |
| EVENT_NAME: ${{ github.event_name }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| REF_NAME: ${{ github.ref_name }} | |
| SHA: ${{ github.sha }} | |
| CI_IMAGE_REPOSITORY: ${{ inputs.ci_image_repository || 'isaac-lab-ci' }} | |
| CONFIG_REF: ${{ inputs.config_ref }} | |
| CONFIG_HASH: ${{ steps.load.outputs.config_hash }} | |
| run: | | |
| set -euo pipefail | |
| if [ "$EVENT_NAME" = "pull_request" ]; then | |
| ref_component="pr-${PR_NUMBER}" | |
| else | |
| ref_component="$REF_NAME" | |
| fi | |
| sanitized_ref=$(echo "$ref_component" | sed 's/[^a-zA-Z0-9._-]/-/g') | |
| config_suffix="" | |
| if [ -n "$CONFIG_REF" ]; then | |
| # A referenced config can advance independently of the tested source | |
| # commit. Include its identity so a rerun never reuses a stale image. | |
| config_suffix="-${CONFIG_HASH:0:12}" | |
| fi | |
| ci_image_tag="${CI_IMAGE_REPOSITORY}:${sanitized_ref}-${SHA}${config_suffix}" | |
| echo "ci_image_tag=$ci_image_tag" >> "$GITHUB_OUTPUT" | |
| echo "CI image tag: $ci_image_tag" | |
| - name: Resolve the base parent of the tested PR merge | |
| id: perf_pair | |
| if: github.event_name == 'pull_request' | |
| continue-on-error: true | |
| run: python3 -m tools.performance_regression.pr_comparison resolve --checkout-root "$GITHUB_WORKSPACE" | |
| - name: Check out the PR base image configuration | |
| id: base_config_checkout | |
| if: github.event_name == 'pull_request' && steps.perf_pair.outcome == 'success' | |
| continue-on-error: true | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ steps.perf_pair.outputs.base_commit }} | |
| fetch-depth: 1 | |
| sparse-checkout: .github/workflows/config.yaml | |
| sparse-checkout-cone-mode: false | |
| - name: Read the PR base image configuration | |
| id: base_load | |
| if: github.event_name == 'pull_request' && steps.base_config_checkout.outcome == 'success' | |
| continue-on-error: true | |
| run: | | |
| set -euo pipefail | |
| name=$(yq -er .isaacsim_image_name .github/workflows/config.yaml) | |
| version=$(yq -er .isaacsim_image_tag .github/workflows/config.yaml) | |
| echo "name=$name" >> "$GITHUB_OUTPUT" | |
| echo "version=$version" >> "$GITHUB_OUTPUT" | |
| performance-regression-route: | |
| name: Check for a reusable performance baseline | |
| needs: [changes, config] | |
| if: >- | |
| github.event_name == 'pull_request' && github.run_attempt == '1' && | |
| needs.changes.outputs.activated == 'true' && needs.changes.outputs.should_run == 'true' && | |
| needs.config.outputs.paired_base_commit != '' && needs.config.outputs.base_image_config_outcome == 'success' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| outputs: | |
| parallel_base: ${{ steps.route.outputs.result }} | |
| steps: | |
| - id: route | |
| uses: actions/github-script@v9 | |
| continue-on-error: true | |
| env: | |
| BASE_COMMIT: ${{ needs.config.outputs.paired_base_commit }} | |
| with: | |
| script: | | |
| const query = {...context.repo, per_page: 100, request: {timeout: 60000}}; | |
| const pr = context.payload.pull_request; | |
| const {data: runs} = await github.rest.actions.listWorkflowRuns({ | |
| ...query, workflow_id: 'build.yaml', branch: pr.head.ref, event: 'pull_request', | |
| }); | |
| // An incomplete listing leaves the reuse decision to the PR runner. | |
| if (runs.workflow_runs.length !== runs.total_count) return false; | |
| const attempts = Math.max(1, ...runs.workflow_runs.map(run => run.run_attempt)); | |
| if (!Number.isSafeInteger(attempts)) return false; | |
| for (let attempt = 1; attempt <= attempts; attempt++) { | |
| const name = `performance-pr-baseline-${pr.number}-${process.env.BASE_COMMIT}-${attempt}`; | |
| const {data} = await github.rest.actions.listArtifactsForRepo({...query, name}); | |
| if (data.artifacts.length !== data.total_count || data.artifacts.some(a => !a.expired)) return false; | |
| } | |
| return true; | |
| test-dockerfile-contract: | |
| name: dockerfile-contract | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 | |
| with: | |
| enable-cache: true | |
| - name: Run Dockerfile contract tests | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| contract_env="$(mktemp -d "${RUNNER_TEMP}/isaaclab-contract.XXXXXX")" | |
| uv venv --python 3.12 "${contract_env}" | |
| uv pip sync --require-hashes --only-binary :all: \ | |
| --python "${contract_env}/bin/python" docker/test/requirements.txt | |
| uv pip check --python "${contract_env}/bin/python" | |
| "${contract_env}/bin/python" -m pytest -q \ | |
| docker/test/test_dockerfile_nonroot.py docker/test/test_security_dependencies.py | |
| build: | |
| name: Build Base Docker Image | |
| # Skipping every required check would let an untested PR merge. | |
| runs-on: ${{ fromJSON(needs.changes.outputs.activated == 'true' && '["self-hosted", "gpu"]' || '["ubuntu-latest"]') }} | |
| needs: [changes, config] | |
| if: needs.changes.outputs.should_run == 'true' | |
| steps: | |
| - name: Explain missing PR activation | |
| if: needs.changes.outputs.activated != 'true' | |
| run: | | |
| echo '::error::Docker CI has not been activated, or prior activation could not be verified. Apply a label or use the existing run-ci command. No GPU build or benchmark was started.' | |
| exit 1 | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 | |
| with: | |
| enable-cache: true | |
| # Check for bundled files that break Isaac Sim imports (nvbugs 6343978). | |
| - name: Build and push to ECR | |
| uses: ./.github/actions/ecr-build-push-pull | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| dockerfile-path: docker/Dockerfile.base | |
| cache-tag: cache-base | |
| verify-test-path: docker/test/test_image_invariants.py | |
| build-curobo: | |
| name: Build cuRobo Docker Image | |
| runs-on: [self-hosted, gpu] | |
| needs: [changes, config] | |
| # Also runs on push so PRs find the cuRobo deps image already built. | |
| if: >- | |
| needs.changes.outputs.activated == 'true' && | |
| needs.changes.outputs.should_run == 'true' | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - name: Build and push to ECR | |
| uses: ./.github/actions/ecr-build-push-pull | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }}-curobo | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| dockerfile-path: docker/Dockerfile.curobo | |
| cache-tag: cache-curobo | |
| test-isaaclab-tasks: | |
| name: isaaclab_tasks [1/3] | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| continue-on-error: true | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_tasks" | |
| exclude-pattern: "test_rendering_,test_video_recording.py" | |
| shard-index: "0" | |
| shard-count: "3" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-tasks-1-test | |
| test-isaaclab-tasks-2: | |
| name: isaaclab_tasks [2/3] | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| continue-on-error: true | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_tasks" | |
| exclude-pattern: "test_rendering_,test_video_recording.py" | |
| shard-index: "1" | |
| shard-count: "3" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-tasks-2-test | |
| test-isaaclab-tasks-3: | |
| name: isaaclab_tasks [3/3] | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| continue-on-error: true | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_tasks" | |
| exclude-pattern: "test_rendering_,test_video_recording.py" | |
| shard-index: "2" | |
| shard-count: "3" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-tasks-3-test | |
| test-isaaclab-core: | |
| name: isaaclab (core) [1/3] | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "not isaaclab_" | |
| extra-uv-packages: "opencv-python-headless==4.13.0.90" | |
| shard-index: "0" | |
| shard-count: "3" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-core-1-test | |
| test-isaaclab-core-2: | |
| name: isaaclab (core) [2/3] | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "not isaaclab_" | |
| extra-uv-packages: "opencv-python-headless==4.13.0.90" | |
| shard-index: "1" | |
| shard-count: "3" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-core-2-test | |
| test-isaaclab-core-3: | |
| name: isaaclab (core) [3/3] | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "not isaaclab_" | |
| extra-uv-packages: "opencv-python-headless==4.13.0.90" | |
| shard-index: "2" | |
| shard-count: "3" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-core-3-test | |
| # Separate jobs preserve required check names when skipped; a matrix leaves the names unexpanded. | |
| test-standalone-demos-kit: | |
| name: standalone demos (headless, Kit) | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| include-files: "test_standalone_scripts.py" | |
| standalone-script-scope: "demos" | |
| standalone-script-visualizer: "default" | |
| standalone-script-runtime-group: kit | |
| # Launch matrix only; the file's other tests already run in isaaclab (core) [1/3]. | |
| # Dedicated sensor tests cover raycasting; keep these example launches available for manual runs. | |
| test-k-expr: "test_standalone_script_runs_cleanly and not (multi_mesh_raycaster or newton_raycast or raycaster_sensor)" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| # Four concurrent Kit launches intermittently hang microduck_warehouse at startup. | |
| test-jobs: "3" | |
| result-file: "test-standalone-demos-kit-report.xml" | |
| container-name: isaac-lab-standalone-demos-kit-test | |
| omni-github-test-type: standalone-demo | |
| test-standalone-demos-non-kit: | |
| name: standalone demos (headless, non-Kit) | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - name: Resolve OVPhysX runtime pin from pyproject | |
| uses: ./.github/actions/resolve-ov-pins | |
| id: ov_pins | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| extra-pip-packages: "${{ steps.ov_pins.outputs.ovphysx }}" | |
| include-files: "test_standalone_scripts.py" | |
| standalone-script-scope: "demos" | |
| standalone-script-visualizer: "default" | |
| standalone-script-runtime-group: non-kit | |
| test-k-expr: "test_standalone_script_runs_cleanly and not (multi_mesh_raycaster or newton_raycast or raycaster_sensor)" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| result-file: "test-standalone-demos-non-kit-report.xml" | |
| container-name: isaac-lab-standalone-demos-non-kit-test | |
| omni-github-test-type: standalone-demo | |
| # Share runner/image startup across the short package suites. Keep per-file | |
| # process isolation and the same four-slot budget within each combined job. | |
| # RL stays separate because it installs extra dependencies the other suites do not need. | |
| test-isaaclab-rl: | |
| name: isaaclab_rl | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_rl" | |
| extra-pip-packages: "leapp==0.8.1 torchrl>=0.13" | |
| warp-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-rl-test | |
| test-isaaclab-visualizers: | |
| name: isaaclab_visualizers | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_visualizers,test_visualizers_kit.py,test_visualizers_rtx.py" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-visualizers-test | |
| test-isaaclab-assets: | |
| name: isaaclab_assets | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_assets,isaaclab_contrib,isaaclab_teleop,isaaclab_mimic,isaaclab_experimental,isaaclab_fovi" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-assets-test | |
| # Preserve the required package check names without provisioning GPU runners. | |
| # A failed or cancelled combined suite must fail each dependent check too. | |
| test-isaaclab-mimic: | |
| name: isaaclab_mimic | |
| runs-on: ubuntu-latest | |
| needs: [test-isaaclab-assets] | |
| if: always() && needs.test-isaaclab-assets.result != 'skipped' | |
| steps: | |
| - name: Check combined package tests | |
| env: | |
| RESULT: ${{ needs.test-isaaclab-assets.result }} | |
| run: test "$RESULT" = success | |
| test-isaaclab-experimental: | |
| name: isaaclab_experimental | |
| runs-on: ubuntu-latest | |
| needs: [test-isaaclab-assets] | |
| if: always() && needs.test-isaaclab-assets.result != 'skipped' | |
| steps: | |
| - name: Check combined package tests | |
| env: | |
| RESULT: ${{ needs.test-isaaclab-assets.result }} | |
| run: test "$RESULT" = success | |
| test-isaaclab-contrib: | |
| name: isaaclab_contrib | |
| runs-on: ubuntu-latest | |
| needs: [test-isaaclab-assets] | |
| if: always() && needs.test-isaaclab-assets.result != 'skipped' | |
| steps: | |
| - name: Check combined package tests | |
| env: | |
| RESULT: ${{ needs.test-isaaclab-assets.result }} | |
| run: test "$RESULT" = success | |
| test-isaaclab-teleop: | |
| name: isaaclab_teleop | |
| runs-on: ubuntu-latest | |
| needs: [test-isaaclab-assets] | |
| if: always() && needs.test-isaaclab-assets.result != 'skipped' | |
| steps: | |
| - name: Check combined package tests | |
| env: | |
| RESULT: ${{ needs.test-isaaclab-assets.result }} | |
| run: test "$RESULT" = success | |
| test-isaaclab-newton: | |
| name: isaaclab_newton | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_newton,isaaclab_neural,isaaclab_tasks/test/neural,scripts/neural" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-newton-test | |
| test-isaaclab-isaacsim: | |
| # The main/develop ruleset requires this check name, so it keeps the old package name. | |
| name: isaaclab_physx | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_isaacsim" | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-physx-test | |
| test-isaaclab-ov: | |
| name: isaaclab_ov | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| env: | |
| USE_OVPHYSX_WHEELHOUSE: ${{ needs.config.outputs.ovphysx_wheelhouse_image != '' && ((github.event_name == 'pull_request' && github.base_ref == github.event.repository.default_branch && github.event.pull_request.head.repo.full_name == github.repository) || (github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch)) }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - name: Resolve OV runtime pins from pyproject | |
| uses: ./.github/actions/resolve-ov-pins | |
| id: ov_pins | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_ov" | |
| extra-pip-packages: ${{ env.USE_OVPHYSX_WHEELHOUSE == 'true' && steps.ov_pins.outputs.ovrtx || format('{0} {1}', steps.ov_pins.outputs.ovrtx, steps.ov_pins.outputs.ovphysx) }} | |
| wheelhouse-image: ${{ env.USE_OVPHYSX_WHEELHOUSE == 'true' && needs.config.outputs.ovphysx_wheelhouse_image || '' }} | |
| wheelhouse-packages: ${{ env.USE_OVPHYSX_WHEELHOUSE == 'true' && 'ovphysx' || '' }} | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| test-jobs: "4" | |
| container-name: isaac-lab-ov-test | |
| # Reuse the image already pulled for tests to avoid another runner. | |
| - name: Verify Base runtime user is non-root | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| runtime_identity="$(docker run --rm --entrypoint bash "${{ needs.config.outputs.ci_image_tag }}" \ | |
| -lc 'printf "%s %s %s\n" "$(id -u)" "$(id -g)" "$(id -un 2>/dev/null || true)"')" | |
| read -r runtime_uid runtime_gid runtime_user <<< "${runtime_identity}" | |
| echo "Base runtime identity: uid=${runtime_uid} gid=${runtime_gid} user=${runtime_user}" | |
| if [ "${runtime_uid}" = "0" ]; then | |
| echo "::error::Base Docker image must not run as root by default." | |
| exit 1 | |
| fi | |
| test-curobo: | |
| name: test-curobo | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 120 | |
| continue-on-error: true | |
| needs: [build-curobo, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build-curobo.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }}-curobo | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| dockerfile-path: docker/Dockerfile.curobo | |
| cache-tag: cache-curobo | |
| # SkillGen's simulator-driven dataset test remains available for manual runs. | |
| include-files: "test_curobo_planner_franka.py,test_curobo_planner_cube_stack.py,test_pink_ik.py" | |
| # The planner files finish alongside test_pink_ik.py (~7 min). | |
| test-jobs: "3" | |
| container-name: isaac-lab-curobo-test | |
| - name: Verify cuRobo runtime user is non-root | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| runtime_identity="$(docker run --rm --entrypoint bash "${{ needs.config.outputs.ci_image_tag }}-curobo" \ | |
| -lc 'printf "%s %s %s\n" "$(id -u)" "$(id -g)" "$(id -un 2>/dev/null || true)"')" | |
| read -r runtime_uid runtime_gid runtime_user <<< "${runtime_identity}" | |
| echo "cuRobo runtime identity: uid=${runtime_uid} gid=${runtime_gid} user=${runtime_user}" | |
| if [ "${runtime_uid}" = "0" ]; then | |
| echo "::error::cuRobo Docker image must not run as root by default." | |
| exit 1 | |
| fi | |
| # No contributed environment needs cuRobo, so this job uses the base image and | |
| # does not wait for the cuRobo image build. | |
| test-contrib-environments: | |
| name: test-contrib-environments | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 120 | |
| continue-on-error: true | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| include-files: >- | |
| test_contrib_environments_kitless.py, | |
| test_contrib_environments_kit.py, | |
| test_contrib_environments_kit_cameras.py | |
| warp-cache: restore | |
| ovrtx-shader-cache: restore | |
| ovrtx-shader-cache-trees: kit | |
| # Keep the shared GPU to one two-worker test file at a time. | |
| test-jobs: "2" | |
| container-name: isaac-lab-contrib-environments-test | |
| test-record-video: | |
| name: "record-video" | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| continue-on-error: true | |
| needs: [build, config] | |
| if: >- | |
| github.event_name != 'push' && | |
| needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_tasks" | |
| include-files: "test_video_recording.py" | |
| extra-uv-packages: "moviepy>=1.0.3,<2.0.0.dev0 decorator<5" | |
| container-name: isaac-lab-record-video-test | |
| omni-github-test-type: video-e2e | |
| test-rendering-correctness: | |
| name: "rendering-correctness" | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 120 | |
| continue-on-error: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }} | |
| needs: [build, config] | |
| if: needs.build.result == 'success' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab" | |
| extra-uv-packages: "pytetwild[all]>=0.3.0,<0.4" | |
| include-files: >- | |
| test_rendering_kit.py, | |
| test_rendering_architecture.py, | |
| test_golden_image.py | |
| test-node-ids-file: ${{ github.event_name == 'push' && '.github/test-subsets/postmerge-rendering.toml' || '' }} | |
| test-node-ids-key: ${{ github.event_name == 'push' && 'rendering-correctness' || '' }} | |
| ovrtx-shader-cache: restore | |
| ovrtx-shader-cache-trees: kit | |
| warp-cache: restore | |
| container-name: isaac-lab-rendering-correctness-test | |
| omni-github-test-type: rendering-correctness | |
| # Separate jobs preserve the required legacy check name when skipped and let ovstage use its own trigger. | |
| test-rendering-correctness-kitless-legacy: | |
| name: "rendering-correctness-kitless (legacy)" | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 120 | |
| continue-on-error: ${{ github.event_name == 'workflow_dispatch' }} | |
| needs: [build, config] | |
| if: needs.build.result == 'success' | |
| env: | |
| # Fail rather than skip the Newton OptiX golden test when OptiX is not importable. | |
| ISAACLAB_TEST_REQUIRE_OPTIX: "1" | |
| USE_OVPHYSX_WHEELHOUSE: ${{ needs.config.outputs.ovphysx_wheelhouse_image != '' && ((github.event_name == 'pull_request' && github.base_ref == github.event.repository.default_branch && github.event.pull_request.head.repo.full_name == github.repository) || (github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch)) }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - name: Resolve OV runtime pins from pyproject | |
| uses: ./.github/actions/resolve-ov-pins | |
| id: ov_pins | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab" | |
| # warp-optix matches newton[optix]; pyoptix is named so it lands in the --no-deps overlay. | |
| extra-uv-packages: "pytetwild[all]>=0.3.0,<0.4 warp-optix~=0.3.0 pyoptix==9.1.1" | |
| extra-pip-packages: >- | |
| ${{ env.USE_OVPHYSX_WHEELHOUSE == 'true' && steps.ov_pins.outputs.ovrtx || format('{0} {1}', steps.ov_pins.outputs.ovrtx, steps.ov_pins.outputs.ovphysx) }} | |
| wheelhouse-image: ${{ env.USE_OVPHYSX_WHEELHOUSE == 'true' && needs.config.outputs.ovphysx_wheelhouse_image || '' }} | |
| wheelhouse-packages: ${{ env.USE_OVPHYSX_WHEELHOUSE == 'true' && 'ovphysx' || '' }} | |
| include-files: >- | |
| test_rendering_kitless_newton_newton_warp.py, | |
| test_rendering_kitless_newton_ovrtx.py, | |
| test_rendering_kitless_ovphysx_newton_warp.py, | |
| test_rendering_kitless_ovphysx_ovrtx.py | |
| test-k-expr: legacy | |
| test-node-ids-file: ${{ github.event_name == 'push' && '.github/test-subsets/postmerge-rendering.toml' || '' }} | |
| test-node-ids-key: ${{ github.event_name == 'push' && 'rendering-correctness-kitless-legacy' || '' }} | |
| ovrtx-shader-cache: restore | |
| ovrtx-shader-cache-trees: kitless | |
| warp-cache: restore | |
| container-name: "isaac-lab-rendering-correctness-kitless-legacy-test" | |
| omni-github-test-type: "rendering-correctness-kitless-legacy" | |
| # Post-merge by default; pull requests opt in per run with ``run-ci ovstage``. | |
| test-rendering-correctness-kitless-ovstage: | |
| name: "rendering-correctness-kitless (ovstage)" | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 120 | |
| continue-on-error: ${{ github.event_name == 'workflow_dispatch' }} | |
| needs: [build, config] | |
| if: >- | |
| (github.event_name != 'pull_request' || github.event.label.name == 'ci:run-ovstage') && | |
| needs.build.result == 'success' | |
| env: | |
| USE_OVPHYSX_WHEELHOUSE: ${{ needs.config.outputs.ovphysx_wheelhouse_image != '' && ((github.event_name == 'pull_request' && github.base_ref == github.event.repository.default_branch && github.event.pull_request.head.repo.full_name == github.repository) || (github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch)) }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - name: Resolve OV runtime pins from pyproject | |
| uses: ./.github/actions/resolve-ov-pins | |
| id: ov_pins | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab" | |
| extra-uv-packages: "pytetwild[all]>=0.3.0,<0.4" | |
| extra-pip-packages: >- | |
| ${{ env.USE_OVPHYSX_WHEELHOUSE == 'true' && steps.ov_pins.outputs.ovrtx || format('{0} {1}', steps.ov_pins.outputs.ovrtx, steps.ov_pins.outputs.ovphysx) }} | |
| wheelhouse-image: ${{ env.USE_OVPHYSX_WHEELHOUSE == 'true' && needs.config.outputs.ovphysx_wheelhouse_image || '' }} | |
| wheelhouse-packages: ${{ env.USE_OVPHYSX_WHEELHOUSE == 'true' && 'ovphysx' || '' }} | |
| include-files: >- | |
| test_rendering_kitless_newton_ovrtx.py, | |
| test_rendering_kitless_ovphysx_ovrtx.py | |
| test-k-expr: ovstage | |
| test-node-ids-file: ${{ github.event_name == 'push' && '.github/test-subsets/postmerge-rendering.toml' || '' }} | |
| test-node-ids-key: ${{ github.event_name == 'push' && 'rendering-correctness-kitless-ovstage' || '' }} | |
| ovrtx-shader-cache: restore | |
| ovrtx-shader-cache-trees: kitless | |
| warp-cache: restore | |
| container-name: "isaac-lab-rendering-correctness-kitless-ovstage-test" | |
| omni-github-test-type: "rendering-correctness-kitless-ovstage" | |
| performance-regression: | |
| name: ${{ matrix.role == 'baseline' && 'performance-regression-baseline' || 'performance-regression-benchmarks' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| role: ${{ fromJSON(needs.performance-regression-route.outputs.parallel_base == 'true' && github.run_attempt == '1' && '["baseline","pr"]' || '["combined"]') }} | |
| continue-on-error: ${{ matrix.role == 'baseline' }} | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 450 | |
| needs: [build, config, performance-regression-route] | |
| env: | |
| PERF_ROLE: ${{ matrix.role }} | |
| PERF_BASE_COMMIT: ${{ needs.config.outputs.paired_base_commit }} | |
| PERF_PAIR_ERROR: ${{ needs.config.outputs.paired_base_error }} | |
| # PRs and manual runs read history; only default-branch pushes record it. | |
| if: >- | |
| !cancelled() && needs.build.result == 'success' && needs.config.result == 'success' && | |
| (github.event_name != 'push' || github.ref_name == github.event.repository.default_branch) | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| # Row format: name|task|num_envs|bench_timeout_s|args | |
| - name: Define benchmark matrix | |
| run: | | |
| cat > benchmark-legs.tsv <<'EOF' | |
| cartpole-newton|Isaac-Cartpole-Direct|4096|600|physics=newton_mjwarp | |
| shadow-camera-newton-renderer|IsaacContrib-Reorient-Cube-Shadow-Camera-Benchmark-Direct|512|1200|physics=newton_mjwarp renderer=newton_warp | |
| shadow-camera-ovphysx-newton|IsaacContrib-Reorient-Cube-Shadow-Camera-Benchmark-Direct|512|1200|physics=ovphysx renderer=newton_warp | |
| g1-newton|Isaac-Velocity-Flat-G1|512|720|physics=newton_mjwarp | |
| EOF | |
| - name: Resolve Warp version for the JIT cache key | |
| id: warp_version | |
| run: | | |
| set -euo pipefail | |
| version="$(sed -n 's/.*warp-lang[^0-9]*\([0-9][0-9A-Za-z.\-]*\).*/\1/p' pyproject.toml | head -n1)" | |
| if [ -z "$version" ]; then | |
| echo "::error::Could not resolve the warp-lang pin from pyproject.toml; the JIT cache key would stop tracking Warp" | |
| exit 1 | |
| fi | |
| echo "value=$version" >> "$GITHUB_OUTPUT" | |
| - name: Restore warm JIT cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: ${{ github.workspace }}/jit-cache | |
| key: perf-jit-warp${{ steps.warp_version.outputs.value }}-${{ github.run_id }} | |
| restore-keys: | | |
| perf-jit-warp${{ steps.warp_version.outputs.value }}- | |
| # Switching revisions cleans the checkout, so store the controller and results outside it. | |
| - name: Preserve benchmark controller and restored JIT cache | |
| run: | | |
| set -euo pipefail | |
| controller="${RUNNER_TEMP}/performance-regression-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-$PERF_ROLE" | |
| mkdir -p "$controller/tools" "$controller/baseline-output" | |
| cp -a tools/performance_regression "$controller/tools/" | |
| cp benchmark-legs.tsv "$controller/benchmark-legs.tsv" | |
| if [ -d jit-cache ]; then | |
| mv jit-cache "$controller/jit-cache" | |
| else | |
| mkdir -p "$controller/jit-cache" | |
| fi | |
| echo "PERF_CONTROLLER=$controller" >> "$GITHUB_ENV" | |
| echo "PERF_BASELINE_OUTPUT=$controller/baseline-output" >> "$GITHUB_ENV" | |
| if [ "$GITHUB_EVENT_NAME" = pull_request ]; then | |
| echo "PERF_MEASUREMENT_ROOT=$controller/measurement" >> "$GITHUB_ENV" | |
| echo "PERF_MEASUREMENT_MANIFEST=$controller/measurement/measurement-manifest.json" >> "$GITHUB_ENV" | |
| fi | |
| - name: Preserve the tested PR measurement implementation | |
| if: github.event_name == 'pull_request' | |
| run: | | |
| python3 "$PERF_CONTROLLER/tools/performance_regression/source_revision.py" snapshot \ | |
| --checkout-root "$GITHUB_WORKSPACE" --output-dir "$PERF_MEASUREMENT_ROOT" | |
| - name: Pull pull-request image | |
| if: ${{ !cancelled() && matrix.role != 'baseline' }} | |
| uses: ./.github/actions/ecr-build-push-pull | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| dockerfile-path: docker/Dockerfile.base | |
| cache-tag: cache-base | |
| pull-on-deps-hit: 'true' | |
| - name: Check out the PR base revision | |
| id: base_checkout | |
| continue-on-error: true | |
| if: matrix.role != 'pr' && github.event_name == 'pull_request' && needs.config.outputs.paired_base_commit != '' | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ needs.config.outputs.paired_base_commit }} | |
| fetch-depth: 1 | |
| lfs: true | |
| - name: Restore this PR's verified base measurement | |
| id: pr_baseline | |
| timeout-minutes: 5 | |
| if: matrix.role == 'combined' && steps.base_checkout.outcome == 'success' | |
| continue-on-error: true | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| CI_IMAGE_TAG: ${{ needs.config.outputs.ci_image_tag }} | |
| run: | | |
| cd "$PERF_CONTROLLER" | |
| python3 -m tools.performance_regression.pr_comparison restore \ | |
| --checkout-root "$GITHUB_WORKSPACE" --output-dir "$PERF_BASELINE_OUTPUT" \ | |
| --selection "$PERF_CONTROLLER/selection.json" --legs "$PERF_CONTROLLER/benchmark-legs.tsv" \ | |
| --image "$CI_IMAGE_TAG" | |
| - name: Resolve the base revision's dependency image | |
| id: base_dependencies | |
| continue-on-error: true | |
| if: steps.base_checkout.outcome == 'success' && steps.pr_baseline.outputs.reused != 'true' && needs.config.outputs.base_image_config_outcome == 'success' | |
| uses: ./.github/actions/ecr-build-push-pull | |
| with: | |
| image-tag: isaac-lab-perf-base:${{ needs.config.outputs.paired_base_commit }} | |
| isaacsim-base-image: ${{ needs.config.outputs.base_isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.base_isaacsim_image_tag }} | |
| dockerfile-path: docker/Dockerfile.base | |
| cache-tag: cache-base | |
| pull-on-deps-hit: 'true' | |
| - name: Benchmark the PR base | |
| id: measure_base | |
| if: steps.base_dependencies.outcome == 'success' | |
| continue-on-error: true | |
| env: | |
| CI_IMAGE_TAG: isaac-lab-perf-base:${{ needs.config.outputs.paired_base_commit }} | |
| run: | | |
| set -euo pipefail | |
| cd "$PERF_CONTROLLER" | |
| # Clear failed lookup diagnostics before collecting fresh benchmark results. | |
| rm -rf -- "$PERF_BASELINE_OUTPUT" | |
| mkdir -p "$PERF_BASELINE_OUTPUT" | |
| python3 -m tools.performance_regression.pr_comparison capture \ | |
| --checkout-root "$GITHUB_WORKSPACE" --output-dir "$PERF_BASELINE_OUTPUT" \ | |
| --image "$CI_IMAGE_TAG" --role baseline --legs "$PERF_CONTROLLER/benchmark-legs.tsv" | |
| CHECKOUT_ROOT="$GITHUB_WORKSPACE" BENCHMARK_OUTPUT="$PERF_BASELINE_OUTPUT" \ | |
| SOURCE_REVISION_LAUNCHER="$PERF_CONTROLLER/tools/performance_regression/source_revision.py" \ | |
| SOURCE_MANIFEST="$PERF_BASELINE_OUTPUT/source-manifest.json" \ | |
| BENCHMARK_LEGS="$PERF_CONTROLLER/benchmark-legs.tsv" JIT_CACHE_ROOT="$PERF_CONTROLLER/jit-cache" \ | |
| BENCHMARK_ROLE=BASELINE exec bash "$PERF_CONTROLLER/tools/performance_regression/run_benchmarks.sh" | |
| - name: Archive the PR base measurement | |
| id: base_artifact | |
| if: always() && matrix.role != 'pr' && github.event_name == 'pull_request' && steps.pr_baseline.outputs.reused != 'true' | |
| continue-on-error: true | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: performance-pr-baseline-${{ github.event.pull_request.number }}-${{ needs.config.outputs.paired_base_commit }}-${{ github.run_attempt }} | |
| path: ${{ env.PERF_BASELINE_OUTPUT }} | |
| if-no-files-found: warn | |
| - name: Restore the tested PR revision | |
| if: ${{ !cancelled() && matrix.role == 'combined' && github.event_name == 'pull_request' }} | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.sha }} | |
| fetch-depth: 1 | |
| lfs: true | |
| - name: Pin the base comparison for this tested PR revision | |
| if: always() && matrix.role != 'baseline' && github.event_name == 'pull_request' | |
| continue-on-error: true | |
| env: | |
| BASE_ARTIFACT_ID: ${{ steps.base_artifact.outputs.artifact-id }} | |
| PERF_BASELINE_REUSED: ${{ steps.pr_baseline.outputs.reused }} | |
| BASE_CHECKOUT: ${{ steps.base_checkout.outcome }} | |
| BASE_RESTORE: ${{ steps.pr_baseline.outcome }} | |
| BASE_CONFIG: ${{ needs.config.outputs.base_image_config_outcome }} | |
| BASE_IMAGE: ${{ steps.base_dependencies.outcome }} | |
| BASE_MEASUREMENT: ${{ steps.measure_base.outcome }} | |
| BASE_ARCHIVE: ${{ steps.base_artifact.outcome }} | |
| run: | | |
| cd "$PERF_CONTROLLER" | |
| if [ "$PERF_ROLE" = pr ]; then | |
| exec python3 -m tools.performance_regression.pr_comparison bind --parallel \ | |
| --selection "$PERF_CONTROLLER/selection.json" --output-dir "$GITHUB_WORKSPACE/benchmark-output" | |
| fi | |
| baseline_issue="" | |
| if { [ "$BASE_RESTORE" = failure ] || [ "$BASE_MEASUREMENT" = failure ]; } && \ | |
| [ -f "$PERF_BASELINE_OUTPUT/paired-failure.json" ]; then | |
| mkdir -p "$GITHUB_WORKSPACE/benchmark-output" | |
| cp "$PERF_BASELINE_OUTPUT/paired-failure.json" "$GITHUB_WORKSPACE/benchmark-output/" | |
| fi | |
| if [ "$BASE_CHECKOUT" != success ]; then | |
| baseline_issue="The base source checkout failed; baseline FPS is unavailable." | |
| elif [ "$BASE_CONFIG" != success ]; then | |
| baseline_issue="The base image configuration could not be read; the base benchmark did not run." | |
| elif [ "$BASE_IMAGE" = failure ]; then | |
| baseline_issue="The base dependency image could not be prepared; the base benchmark did not run." | |
| elif [ "$BASE_MEASUREMENT" = failure ]; then | |
| baseline_issue="The base benchmark failed; baseline results are incomplete or unavailable." | |
| elif [ "$BASE_ARCHIVE" = failure ]; then | |
| baseline_issue="The base results could not be uploaded; baseline FPS is unavailable." | |
| elif [ "$BASE_RESTORE" != success ] && [ "$BASE_MEASUREMENT" != success ]; then | |
| baseline_issue="The base measurement setup failed; baseline FPS is unavailable." | |
| fi | |
| python3 -m tools.performance_regression.pr_comparison bind \ | |
| --selection "$PERF_CONTROLLER/selection.json" --output-dir "$GITHUB_WORKSPACE/benchmark-output" \ | |
| --artifact-id "$BASE_ARTIFACT_ID" --baseline-issue "$baseline_issue" | |
| - name: Capture performance build provenance and source evidence | |
| id: source_capture | |
| if: always() && matrix.role != 'baseline' | |
| env: | |
| CI_IMAGE_TAG: ${{ needs.config.outputs.ci_image_tag }} | |
| run: | | |
| cd "$PERF_CONTROLLER" | |
| python3 -m tools.performance_regression.pr_comparison capture \ | |
| --checkout-root "$GITHUB_WORKSPACE" --output-dir "$GITHUB_WORKSPACE/benchmark-output" \ | |
| --image "$CI_IMAGE_TAG" --role current --legs "$PERF_CONTROLLER/benchmark-legs.tsv" | |
| - name: Run runtime benchmarks | |
| if: ${{ !cancelled() && steps.source_capture.outcome == 'success' }} | |
| env: | |
| CI_IMAGE_TAG: ${{ needs.config.outputs.ci_image_tag }} | |
| run: | | |
| CHECKOUT_ROOT="$GITHUB_WORKSPACE" BENCHMARK_OUTPUT="$GITHUB_WORKSPACE/benchmark-output" \ | |
| SOURCE_REVISION_LAUNCHER="$PERF_CONTROLLER/tools/performance_regression/source_revision.py" \ | |
| SOURCE_MANIFEST="$GITHUB_WORKSPACE/benchmark-output/source-manifest.json" \ | |
| BENCHMARK_LEGS="$PERF_CONTROLLER/benchmark-legs.tsv" JIT_CACHE_ROOT="$PERF_CONTROLLER/jit-cache" \ | |
| BENCHMARK_ROLE=CURRENT exec bash "$PERF_CONTROLLER/tools/performance_regression/run_benchmarks.sh" | |
| - name: Restore the JIT archive path | |
| if: always() && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch | |
| run: mv "$PERF_CONTROLLER/jit-cache" "$GITHUB_WORKSPACE/jit-cache" | |
| - name: Save warm JIT cache | |
| if: always() && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: ${{ github.workspace }}/jit-cache | |
| key: perf-jit-warp${{ steps.warp_version.outputs.value }}-${{ github.run_id }} | |
| - name: Set up uv for performance comparisons | |
| if: always() && matrix.role != 'baseline' | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: false | |
| - name: Set up ASV and the baseline store client | |
| if: always() && matrix.role != 'baseline' | |
| # Dependency failures report a gate ERROR without failing a successful benchmark job. | |
| continue-on-error: true | |
| id: store_venv | |
| run: | | |
| set -euo pipefail | |
| venv="${RUNNER_TEMP}/performance-regression-venv" | |
| uv venv --python 3.12 "$venv" | |
| uv pip install --python "$venv/bin/python" \ | |
| -r tools/performance_regression/requirements.txt | |
| echo "python=$venv/bin/python" >> "$GITHUB_OUTPUT" | |
| # This step runs PR code, so it receives only read access to stored baselines. | |
| - name: Compare against baseline history | |
| continue-on-error: true | |
| if: always() && matrix.role != 'baseline' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.id == github.event.repository.id) | |
| timeout-minutes: 30 | |
| env: | |
| ISAACLAB_BLOB_URL: ${{ secrets.ISAACLAB_BLOB_READ_URL }} | |
| PERF_PYTHON: ${{ steps.store_venv.outputs.python }} | |
| run: | | |
| set -uo pipefail | |
| while IFS='|' read -r leg task num_envs bench_timeout_s args; do | |
| gate_report="$GITHUB_STEP_SUMMARY" | |
| if [ "$GITHUB_EVENT_NAME" = pull_request ]; then | |
| mkdir -p "benchmark-output/${leg}" | |
| gate_report="benchmark-output/${leg}/rolling-history.md" | |
| fi | |
| mapfile -t results < <(find "benchmark-output/${leg}" -type f -name 'benchmark_runtime_*.json' | sort) | |
| if [ "$(cat "benchmark-output/${leg}/status" 2>/dev/null)" != "ok" ] || [ "${#results[@]}" -ne 3 ]; then | |
| echo "::warning::${leg}: expected three runtime benchmark JSONs, found ${#results[@]}" | |
| results=("benchmark-output/${leg}/benchmark_runtime_MISSING.json") | |
| fi | |
| uv run --no-project --python "${PERF_PYTHON:-python3}" python -m tools.performance_regression.cli compare \ | |
| --benchmark_result "${results[@]}" \ | |
| --label "$leg" \ | |
| --output_json "benchmark-output/${leg}/comparison.json" \ | |
| | tee -a "$gate_report" | |
| done < "$PERF_CONTROLLER/benchmark-legs.tsv" | |
| # Default-branch pushes store successful samples under unique commit/run names. | |
| - name: Record baseline | |
| if: ${{ always() && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch }} | |
| timeout-minutes: 30 | |
| env: | |
| ISAACLAB_BLOB_URL: ${{ secrets.ISAACLAB_BLOB_URL }} | |
| PERF_PYTHON: ${{ steps.store_venv.outputs.python }} | |
| run: | | |
| set -uo pipefail | |
| if [ -z "${ISAACLAB_BLOB_URL:-}" ]; then | |
| echo "::warning::ISAACLAB_BLOB_URL is not set; no baselines recorded" | |
| exit 0 | |
| fi | |
| while IFS='|' read -r leg task num_envs bench_timeout_s args; do | |
| if [ "$(cat "benchmark-output/${leg}/status" 2>/dev/null)" != "ok" ]; then | |
| echo "::warning::${leg}: benchmark did not succeed; no baseline recorded" | |
| continue | |
| fi | |
| mapfile -t results < <(find "benchmark-output/${leg}" -type f -name 'benchmark_runtime_*.json' | sort) | |
| if [ "${#results[@]}" -ne 3 ]; then | |
| echo "::error::${leg}: expected three runtime benchmark JSONs, found ${#results[@]}; no baseline recorded" | |
| continue | |
| fi | |
| for index in "${!results[@]}"; do | |
| uv run --no-project --python "${PERF_PYTHON:-python3}" python -m tools.performance_regression.cli write \ | |
| --benchmark_result "${results[$index]}" \ | |
| --commit "$GITHUB_SHA" \ | |
| --timestamp "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ | |
| --run_id "${GITHUB_RUN_ID}-${leg}-sample-${index}" | |
| done | |
| done < "$PERF_CONTROLLER/benchmark-legs.tsv" | |
| - name: Upload performance results | |
| if: always() && matrix.role != 'baseline' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: performance-regression-${{ github.run_id }}-${{ github.run_attempt }} | |
| path: benchmark-output/ | |
| if-no-files-found: warn | |
| retention-days: 7 | |
| # Benchmark execution failures are reported by performance-regression-benchmarks. | |
| performance-regression-summary: | |
| name: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.id != github.event.repository.id && 'performance-regression-summary' || 'performance-regression' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| actions: read | |
| checks: write | |
| needs: [performance-regression] | |
| if: always() && needs.performance-regression.result != 'skipped' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: false | |
| - name: Collect performance results and compare PR builds | |
| if: always() | |
| continue-on-error: true | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: | | |
| args=() | |
| if [ "$GITHUB_EVENT_NAME" != pull_request ]; then | |
| args+=(--gate-only) | |
| fi | |
| uv run --no-project python -m tools.performance_regression.pr_comparison report \ | |
| --comparison_dir comparisons --output_dir build-comparison "${args[@]}" | |
| - name: Upload the automatic build comparison | |
| id: build_comparison_artifact | |
| if: always() && github.event_name == 'pull_request' | |
| continue-on-error: true | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: performance-build-comparison-${{ github.run_id }}-${{ github.run_attempt }} | |
| path: build-comparison/ | |
| if-no-files-found: warn | |
| - name: Summarise performance comparisons | |
| if: always() | |
| env: | |
| COMPARISON_ARTIFACT_URL: ${{ steps.build_comparison_artifact.outputs.artifact-url }} | |
| HISTORY_IN_REPORTER: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.id != github.event.repository.id }} | |
| run: | | |
| set -euo pipefail | |
| gate_exit=0 | |
| if [ "$HISTORY_IN_REPORTER" = true ]; then | |
| printf '### Rolling-history CI gate: reported separately\n\nSee the `performance-regression` check on this PR for the history result.\n' > rolling-history.md | |
| else | |
| uv run --no-project python -m tools.performance_regression.cli aggregate \ | |
| --comparison_dir comparisons > rolling-history.md || gate_exit=$? | |
| fi | |
| if [ "$GITHUB_EVENT_NAME" != pull_request ]; then | |
| cat rolling-history.md >> "$GITHUB_STEP_SUMMARY" | |
| exit "$gate_exit" | |
| fi | |
| { | |
| printf '## Performance regression\n\n' | |
| if [ -s build-comparison/build-comparison.md ]; then | |
| cat build-comparison/build-comparison.md | |
| else | |
| printf '### Automatic build comparison\n\n' | |
| printf '**Build comparison: SKIPPED.** The comparison report was not produced; baseline selection and A/B results are unavailable. See the "Collect performance results and compare PR builds" step for the error.\n\n' | |
| printf '**B — current build:** [%s](%s/%s/commit/%s) · [run %s, attempt %s](%s/%s/actions/runs/%s/attempts/%s).\n\n' \ | |
| "$GITHUB_SHA" "$GITHUB_SERVER_URL" "$GITHUB_REPOSITORY" "$GITHUB_SHA" \ | |
| "$GITHUB_RUN_ID" "$GITHUB_RUN_ATTEMPT" "$GITHUB_SERVER_URL" "$GITHUB_REPOSITORY" "$GITHUB_RUN_ID" "$GITHUB_RUN_ATTEMPT" | |
| printf '**A — baseline build:** unavailable because report generation did not complete.\n' | |
| fi | |
| printf '\n' | |
| cat rolling-history.md | |
| if [ -n "$COMPARISON_ARTIFACT_URL" ]; then | |
| printf '\n[Download optional comparison evidence and provenance](%s)\n' "$COMPARISON_ARTIFACT_URL" | |
| else | |
| printf '\nThe optional comparison artifact was not uploaded; available source-result links are shown above.\n' | |
| fi | |
| } >> "$GITHUB_STEP_SUMMARY" | |
| echo "Performance comparison rendered in the GitHub Actions Summary." | |
| exit "$gate_exit" | |
| - name: Link the rendered comparison from PR Checks | |
| if: always() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.id == github.event.repository.id | |
| continue-on-error: true | |
| timeout-minutes: 5 | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const fs = require('node:fs'); | |
| const attempt = Number(process.env.GITHUB_RUN_ATTEMPT); | |
| const jobs = await github.paginate(github.rest.actions.listJobsForWorkflowRunAttempt, { | |
| ...context.repo, | |
| run_id: context.runId, | |
| attempt_number: attempt, | |
| per_page: 100, | |
| request: {timeout: 60000}, | |
| }); | |
| const summaryJob = jobs.find(job => job.name === 'performance-regression'); | |
| if (!summaryJob) throw new Error('The Performance regression Summary job could not be located.'); | |
| const summaryUrl = `${process.env.GITHUB_SERVER_URL}/${context.repo.owner}/${context.repo.repo}` | |
| + `/actions/runs/${context.runId}/attempts/${attempt}#summary-${summaryJob.id}`; | |
| core.notice(summaryUrl, {title: 'Open rendered Performance regression Summary'}); | |
| const reportPath = 'build-comparison/build-comparison.md'; | |
| const report = fs.existsSync(reportPath) ? fs.readFileSync(reportPath, 'utf8') : ''; | |
| const result = report.match(/^\*\*(.+)\*\*$/m)?.[0] | |
| || '**Comparison unavailable. Open the Summary for the reason and available evidence.**'; | |
| const {data: check} = await github.rest.checks.create({ | |
| ...context.repo, | |
| name: 'Performance regression comparison', | |
| head_sha: context.payload.pull_request.head.sha, | |
| status: 'completed', | |
| conclusion: 'neutral', | |
| external_id: `performance-regression-comparison:${context.runId}:${attempt}`, | |
| details_url: summaryUrl, | |
| output: { | |
| title: 'Performance regression comparison', | |
| summary: [ | |
| `## [Open rendered Performance regression Summary](${summaryUrl})`, | |
| result, | |
| 'View baseline and PR FPS, percentage changes, and results for every workload. ' | |
| + 'Builds, source runs, samples, and diagnostics are in the collapsed details.', | |
| 'This report is informational. The existing `performance-regression` check retains the rolling-history CI gate.', | |
| ].join('\n\n'), | |
| }, | |
| }); | |
| core.info(`PR comparison check: ${check.html_url}`); | |
| warm-warp-cache: | |
| name: "warp-cache-warm" | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| # A failed warm leaves the previous cache usable. | |
| continue-on-error: true | |
| needs: [build, config] | |
| # Concurrent writers could each publish a cache missing the other's additions. | |
| concurrency: | |
| group: warp-cache-write-${{ github.ref }} | |
| cancel-in-progress: false | |
| if: >- | |
| (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && | |
| needs.build.result == 'success' | |
| env: | |
| # Caches are branch-scoped: publishing only helps from a PR base branch | |
| # (the on.push.branches list). A dispatch from elsewhere runs as a dry run | |
| # instead of burning quota in a scope no PR can read. The default branch | |
| # and active release branches are the scopes that can serve future PRs. | |
| PUBLISHES_WARP_CACHE: ${{ github.ref_name == github.event.repository.default_branch || startsWith(github.ref_name, 'release/') }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| filter-pattern: "isaaclab_tasks,isaaclab_newton" | |
| # Warm every supported rigid core environment on Newton. MJWarp | |
| # specializes kernels per model config, so a small representative task | |
| # set leaves most of the cache to be compiled again by each PR test | |
| # shard. The multi-agent suite supplies Handover. Newton deterministic | |
| # modes generate different kernels, which only the determinism suite | |
| # compiles, and the contributed environments are not core tasks; uncached, | |
| # both are the long poles of their PR jobs. | |
| # Only the Newton solver-matrix file compiles Kamino's collision detector (~140 s cold). | |
| include-files: >- | |
| test_environments_newton.py, | |
| test_multi_agent_environments.py, | |
| test_environment_determinism.py, | |
| test_contrib_environments_kitless.py, | |
| test_newton_manager.py | |
| # Keep this warmer focused on rigid environments. | |
| test-k-expr: "not (Soft or Cloth or Cable)" | |
| warp-cache: ${{ env.PUBLISHES_WARP_CACHE == 'true' && 'save' || 'restore' }} | |
| container-name: isaac-lab-warp-cache-warm | |
| omni-github-test-type: warp-cache-warm | |
| # Publish outside PR runs so base-branch jobs do not inherit caches written by PR code. | |
| warm-ovrtx-cache: | |
| name: "ovrtx-cache-warm" | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 180 | |
| continue-on-error: true | |
| needs: [build, config] | |
| concurrency: | |
| group: ovrtx-cache-write-${{ github.ref }} | |
| cancel-in-progress: false | |
| if: >- | |
| (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && | |
| needs.build.result == 'success' | |
| env: | |
| PUBLISHES_OVRTX_CACHE: ${{ github.ref_name == github.event.repository.default_branch || startsWith(github.ref_name, 'release/') }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| - name: Resolve OV runtime pins from pyproject | |
| uses: ./.github/actions/resolve-ov-pins | |
| id: ov_pins | |
| - uses: ./.github/actions/run-package-tests | |
| with: | |
| image-tag: ${{ needs.config.outputs.ci_image_tag }} | |
| isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} | |
| isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} | |
| # Warm both Kit and standalone RTX paths using the rendering subset below. | |
| filter-pattern: "isaaclab" | |
| extra-pip-packages: "${{ steps.ov_pins.outputs.ovrtx }} ${{ steps.ov_pins.outputs.ovphysx }}" | |
| extra-uv-packages: "pytetwild[all]>=0.3.0,<0.4" | |
| include-files: >- | |
| test_rendering_kit.py, | |
| test_rendering_kitless_newton_ovrtx.py, | |
| test_rendering_kitless_ovphysx_ovrtx.py | |
| # Only the two RTX paths compile PSO blobs: isaacsim_rtx fills kit/ and | |
| # ovrtx fills kitless/. newton_warp would exercise the Warp rasterizer, | |
| # which populates neither tree. The nodes are pinned by exact ID rather | |
| # than a -k expression, so a parametrize-ID rename fails collection here | |
| # instead of quietly leaving the warmer with nothing to run. | |
| test-node-ids-file: .github/test-subsets/postmerge-rendering.toml | |
| test-node-ids-key: ovrtx-cache-warm | |
| ovrtx-shader-cache: ${{ env.PUBLISHES_OVRTX_CACHE == 'true' && 'save' || 'restore' }} | |
| container-name: isaac-lab-ovrtx-cache-warm | |
| omni-github-test-type: ovrtx-cache-warm |