Skip to content

test windows CI - #3900

Closed
kellyguo11 wants to merge 27 commits into
isaac-sim:mainfrom
kellyguo11:fix/windows-ci-tests
Closed

kellyguo11 wants to merge 27 commits into
isaac-sim:mainfrom
kellyguo11:fix/windows-ci-tests

Conversation

@kellyguo11

Copy link
Copy Markdown
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@kellyguo11
kellyguo11 marked this pull request as draft October 31, 2025 01:57
@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Oct 31, 2025

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Greptile Overview

Greptile Summary

This PR adds Windows CI support to the build pipeline and fixes Windows-specific test failures.

Major changes:

  • Added test-general-windows job in .github/workflows/build.yml that runs on self-hosted Windows GPU runners with PowerShell setup
  • Fixed Windows file locking issues in test files by properly closing tempfile.NamedTemporaryFile handles before use and adding PermissionError retry logic
  • Added new check-links.yml workflow for automated documentation link validation using lychee
  • Updated outdated documentation URLs for Isaac Sim forums and ETH Zurich Euler cluster

The Windows CI job installs Python 3.11, Isaac Sim 5.1.0, PyTorch with CUDA 12.8, and runs general tests excluding isaaclab_tasks. Results are uploaded as artifacts and combined with Linux test results.

Confidence Score: 4/5

  • Safe to merge with one syntax issue to verify in the Windows CI job
  • The PR makes solid improvements for Windows compatibility with proper file handle management and adds comprehensive CI infrastructure. Test file fixes follow correct Windows patterns (close handles, retry on PermissionError). However, there's a potential syntax issue with PowerShell backtick escaping in the Python multiline command that should be verified - Python's -c flag expects actual newlines, not \n` sequences.
  • .github/workflows/build.yml line 200 - verify the PowerShell Python command works correctly with backtick-escaped newlines

Important Files Changed

File Analysis

Filename Score Overview
.github/workflows/build.yml 4/5 Added Windows CI job with PowerShell setup, test execution, and artifact handling; integrated into existing workflow
scripts/tools/test/test_cosmos_prompt_gen.py 5/5 Fixed Windows-specific file handle issues by closing temp files before use and adding PermissionError retry logic
scripts/tools/test/test_hdf5_to_mp4.py 5/5 Fixed Windows file locking by closing temp file handles before h5py access and adding PermissionError retry logic
scripts/tools/test/test_mp4_to_hdf5.py 5/5 Fixed Windows file locking by closing temp files immediately and explicitly closing h5py file objects

Sequence Diagram

sequenceDiagram
    participant PR as Pull Request
    participant GHA as GitHub Actions
    participant Linux as Linux Runner
    participant Windows as Windows Runner
    participant Combine as Combine Results
    
    PR->>GHA: Trigger on PR
    
    par Parallel Test Execution
        GHA->>Linux: test-isaaclab-tasks job
        Linux->>Linux: Build Docker image
        Linux->>Linux: Run IsaacLab tasks tests
        Linux->>GHA: Upload test results artifact
        
        GHA->>Linux: test-general job
        Linux->>Linux: Build Docker image
        Linux->>Linux: Run general tests (exclude isaaclab_tasks)
        Linux->>GHA: Upload test results artifact
        
        GHA->>Windows: test-general-windows job
        Windows->>Windows: Checkout code
        Windows->>Windows: Create/verify Python 3.11 venv
        Windows->>Windows: Install Isaac Sim 5.1.0
        Windows->>Windows: Install PyTorch + CUDA 12.8
        Windows->>Windows: Install Isaac Lab dependencies
        Windows->>Windows: Run general tests via isaaclab.bat
        Windows->>Windows: Generate test report XML
        Windows->>GHA: Upload Windows test results artifact
    end
    
    GHA->>Combine: combine-results job
    Combine->>GHA: Download all test artifacts
    Combine->>Combine: Merge XML reports
    Combine->>GHA: Upload combined results
    Combine->>PR: Post test results comment

Loading

8 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile


# Check if Isaac Sim is installed
Write-Host "Checking if Isaac Sim is already installed..."
$isaacsimCheck = python -c "try:`n import isaacsim`n print('installed')`nexcept:`n print('not_installed')" 2>&1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

syntax: PowerShell backtick escaping in Python multiline string may not work correctly. Python's -c expects actual newlines, not backtick-n sequences.

Suggested change
$isaacsimCheck = python -c "try:`n import isaacsim`n print('installed')`nexcept:`n print('not_installed')" 2>&1
$isaacsimCheck = python -c @"
try:
import isaacsim
print('installed')
except:
print('not_installed')
"@ 2>&1

@github-actions github-actions Bot added the isaac-mimic Related to Isaac Mimic team label Oct 31, 2025
@Mayankm96
Mayankm96 force-pushed the main branch 2 times, most recently from 2ef7fc8 to f3061a4 Compare January 28, 2026 16:16
hujc7 added a commit that referenced this pull request Jun 20, 2026
…base) (#5695)

## Summary

Base PR for cross-platform CI on Windows and NVIDIA DGX Spark
(ARM/aarch64 Linux). No user-facing API change.

- Registers `windows_ci` and `arm_ci` pytest markers in pyproject.toml.
- AppLauncher argv strip recognizes the new markers so `pytest -m
windows_ci` (etc.) does not leak into Isaac Sim's argparse.
- AssetConverterBase USD scratch dir: hardcoded `/tmp/IsaacLab` →
`tempfile.gettempdir()` for cross-platform compatibility.

This base PR ships only the marker registration and the shared
scaffolding. Tagging specific suites with these markers, and the CI
workflows that consume them, ship in the follow-up parts below — that
keeps the marker/scaffolding change reviewable on its own and lets the
consumer PRs rebase cleanly once it lands.

## Prior art and credits

This work is a derivative of and builds directly on two prior PRs by
other contributors:

- #3900 by Kelly Guo (kellyguo11), against `main`, 2025-10-31 — "test
windows CI". Designed and introduced the cross-platform marker scheme
(`windows`, `windows_ci`, `arm`, `arm_ci`), tagged ~50 existing tests
across the codebase, added the AppLauncher argv-strip pattern so the new
pytest `-m` filters do not leak into Isaac Sim's argument parser, and
pioneered the Windows CI job wiring. The marker design and AppLauncher
behavior in this PR are taken directly from #3900.
- #3845 by Alexander Poddubny (nv-apoddubny), against `main`, 2025-10-27
— "Adds basic CI verification on Windows". Built the original Windows
self-hosted runner infrastructure: `isaaclab.bat` entry script, the
initial `.github/workflows/build.yml` Windows job, and the
self-hosted-runner labeling conventions this PR's downstream Part 2/Part
3 workflows still rely on.

Both PRs target `main` and have not been merged. This PR rebases that
work onto `develop` (where the active development happens — `main` is
behind by hundreds of commits), narrows the base PR to just the marker
scheme plus shared scaffolding (so the marker/runner plumbing can be
validated end-to-end before tests are tagged and re-expanded), and adds
an `arm_ci` marker variant + ARM/Spark runner support that #3900/#3845
did not include.

Credit for the architecture goes to the authors above; this PR is the
rebase + minimization step.

## Series

PRs prefixed with `[CI] Cross-platform —` all contribute to bringing
Isaac Lab CI up on Windows and NVIDIA DGX Spark runners. This PR is the
base everything else builds on. Current siblings:

- Part 1 (this PR, base) — Markers and shared scaffolding
- Part 2 — #5698 — ARM/Spark workflow (`.github/workflows/arm-ci.yaml`)
- Part 3 — #5700 — Windows workflow
(`.github/workflows/windows-ci.yaml`)

Siblings depend on this PR's marker scheme; the same scaffolding lines
are carried in their branches and dedupe on rebase after this lands.
Additional follow-up parts can be added later without renumbering
existing ones.

## Test plan

- [x] `pytest --markers` lists `windows_ci` and `arm_ci` (registered, no
`PytestUnknownMarkWarning`).
- [x] AppLauncher argv strip drops `-m windows_ci` / `-m arm_ci` before
Isaac Sim's argparse runs.
- [x] `./isaaclab.sh -f` (pre-commit) passes.
- [x] Merged latest `develop`: the markers list is the union with the
newly added `device_split` marker, and `--capture=no` argv stripping
from develop is preserved.
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…base) (isaac-sim#5695)

## Summary

Base PR for cross-platform CI on Windows and NVIDIA DGX Spark
(ARM/aarch64 Linux). No user-facing API change.

- Registers `windows_ci` and `arm_ci` pytest markers in pyproject.toml.
- AppLauncher argv strip recognizes the new markers so `pytest -m
windows_ci` (etc.) does not leak into Isaac Sim's argparse.
- AssetConverterBase USD scratch dir: hardcoded `/tmp/IsaacLab` →
`tempfile.gettempdir()` for cross-platform compatibility.

This base PR ships only the marker registration and the shared
scaffolding. Tagging specific suites with these markers, and the CI
workflows that consume them, ship in the follow-up parts below — that
keeps the marker/scaffolding change reviewable on its own and lets the
consumer PRs rebase cleanly once it lands.

## Prior art and credits

This work is a derivative of and builds directly on two prior PRs by
other contributors:

- isaac-sim#3900 by Kelly Guo (kellyguo11), against `main`, 2025-10-31 — "test
windows CI". Designed and introduced the cross-platform marker scheme
(`windows`, `windows_ci`, `arm`, `arm_ci`), tagged ~50 existing tests
across the codebase, added the AppLauncher argv-strip pattern so the new
pytest `-m` filters do not leak into Isaac Sim's argument parser, and
pioneered the Windows CI job wiring. The marker design and AppLauncher
behavior in this PR are taken directly from isaac-sim#3900.
- isaac-sim#3845 by Alexander Poddubny (nv-apoddubny), against `main`, 2025-10-27
— "Adds basic CI verification on Windows". Built the original Windows
self-hosted runner infrastructure: `isaaclab.bat` entry script, the
initial `.github/workflows/build.yml` Windows job, and the
self-hosted-runner labeling conventions this PR's downstream Part 2/Part
3 workflows still rely on.

Both PRs target `main` and have not been merged. This PR rebases that
work onto `develop` (where the active development happens — `main` is
behind by hundreds of commits), narrows the base PR to just the marker
scheme plus shared scaffolding (so the marker/runner plumbing can be
validated end-to-end before tests are tagged and re-expanded), and adds
an `arm_ci` marker variant + ARM/Spark runner support that isaac-sim#3900/isaac-sim#3845
did not include.

Credit for the architecture goes to the authors above; this PR is the
rebase + minimization step.

## Series

PRs prefixed with `[CI] Cross-platform —` all contribute to bringing
Isaac Lab CI up on Windows and NVIDIA DGX Spark runners. This PR is the
base everything else builds on. Current siblings:

- Part 1 (this PR, base) — Markers and shared scaffolding
- Part 2 — isaac-sim#5698 — ARM/Spark workflow (`.github/workflows/arm-ci.yaml`)
- Part 3 — isaac-sim#5700 — Windows workflow
(`.github/workflows/windows-ci.yaml`)

Siblings depend on this PR's marker scheme; the same scaffolding lines
are carried in their branches and dedupe on rebase after this lands.
Additional follow-up parts can be added later without renumbering
existing ones.

## Test plan

- [x] `pytest --markers` lists `windows_ci` and `arm_ci` (registered, no
`PytestUnknownMarkWarning`).
- [x] AppLauncher argv strip drops `-m windows_ci` / `-m arm_ci` before
Isaac Sim's argparse runs.
- [x] `./isaaclab.sh -f` (pre-commit) passes.
- [x] Merged latest `develop`: the markers list is the union with the
newly added `device_split` marker, and `--capture=no` argv stripping
from develop is preserved.
@AntoineRichard

Copy link
Copy Markdown
Collaborator

Closing this one as part of our PR backlog cleanup — it looks like a temporary/testing PR that was never intended to land, and it's been idle since 2025-12-01.

Thanks for the housekeeping! If this was actually still needed, please reopen and let us know. 💚


🤖 This comment was drafted with AI assistance as part of a maintainer-led sweep of the Isaac Lab pull request backlog. A maintainer is behind this cleanup — but if this closure looks wrong, it may well be, so please push back and we'll take another look.

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 isaac-mimic Related to Isaac Mimic team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants