Repository navigation
test windows CI - #3900
test windows CI#3900kellyguo11 wants to merge 27 commits into
Conversation
There was a problem hiding this comment.
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-windowsjob in.github/workflows/build.ymlthat runs on self-hosted Windows GPU runners with PowerShell setup - Fixed Windows file locking issues in test files by properly closing
tempfile.NamedTemporaryFilehandles before use and addingPermissionErrorretry logic - Added new
check-links.ymlworkflow 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
-cflag expects actual newlines, not\n` sequences. .github/workflows/build.ymlline 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
8 files reviewed, 1 comment
|
|
||
| # 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 |
There was a problem hiding this comment.
syntax: PowerShell backtick escaping in Python multiline string may not work correctly. Python's -c expects actual newlines, not backtick-n sequences.
| $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 |
Signed-off-by: Kelly Guo <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
2ef7fc8 to
f3061a4
Compare
…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.
…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.
|
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. |
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
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there