Skip to content

[CI] Fix Windows CI cache saves failing without gzip - #8929

Merged
AntoineRichard merged 6 commits into
isaac-sim:mainfrom
hujc7:jichuanh/fix-windows-cache-save
Nov 4, 2026
Merged

AntoineRichard merged 6 commits into
isaac-sim:mainfrom
hujc7:jichuanh/fix-windows-cache-save

Conversation

@hujc7

@hujc7 hujc7 commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Windows CI has never kept a Warp kernel, Kit shader, or OVRTX shader cache. Every actions/cache/save on main fails with a warning (/bin/sh: gzip: command not found, tar exit 2), so the repository holds no Windows caches and every pull request starts cold unless it lands on a runner that kept its local directories: the job takes about 20 min instead of 4, mostly kernel and shader compilation in the Cartpole smoke tests (see Validation).

actions/cache archives with Git's GNU tar, whose shell runs gzip from Git's usr\bin, which the runner service's PATH does not include. The cache-key step now exports a PATH with that directory, and only the six restore/save steps use it, so the tests keep the runner's normal PATH. The step fails if gzip.exe is missing instead of letting saves fail silently again.

Type of change

  • Bug fix (CI)

Validation

All runs: Windows CI job windows-ci on gpu-windows runners (sm120, driver 596.86); Cartpole smoke = pytest source/isaaclab/test/install_ci/misc/cartpole_training_smoke.py --run-gpu (12 tests, all physics/renderer pairings); durations from the job's step timings.

Before (main, no cache ever restored):

Run Runner state Job Cartpole smoke
41742264620 fresh runner 20 min 872.7 s
41748884703 same runner again, local directories kept 4 min 239.1 s

This PR:

Run Mode Caches Job Cartpole smoke
41777044783 attempt 1 save (temporary commit), cold 3 saved (warp 26 MB, kit 145 MB, kitless 128 MB) 19.3 min 699.8 s
41777044783 attempt 2 save, fresh runner, local directories cleared 3 restored, unchanged after the run 11.5 min 306.9 s
41781485421 restore (final code) 3 restored, saves skipped 5.1 min 252.2 s

The temporary commit that forced saves on this pull request is reverted. Saving from main starts working once this merges.

@github-actions github-actions Bot added bug Something isn't working infrastructure labels Nov 4, 2026
@hujc7
hujc7 marked this pull request as ready for review November 4, 2026 05:55
@hujc7
hujc7 requested a review from a team November 4, 2026 05:55
@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Fixes Windows cache saves by adding Git’s tools directory to PATH only for the six cache restore and save steps.

  • Windows cache actions can now find Git’s gzip.

Reviews (2) · Last reviewed commit: "Check for gzip before a Windows cache sa..." · Reviewed by Greptile

@isaaclab-review-bot isaaclab-review-bot 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.

Isaac Lab Review Bot

Needs attention: Implementation (1), Style consistency (1). Other reviewed categories look good.

  • PR description: The 18–21 versus four-minute claim is absent from the table; add baseline/candidate revisions, job command, runner GPU, environment count, warmup state, and job-duration metric.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: The gzip precondition runs after save mode deletes all local cache directories; move it before the mutation so a missing tool cannot destroy warm caches.
  • Style consistency: The error says gzip is only for compression even though restore also uses it; describe archive compression and extraction.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 2 inline findings.

Automated review; human maintainers own approval decisions.

Comment thread .github/scripts/windows_ci_caches.py Outdated
# actions/cache archives with Git's GNU tar, whose shell runs gzip by name from Git's usr\bin;
# the runner service's PATH lacks that directory, so every save and restore would fail.
git_tools = Path(os.environ["PROGRAMFILES"], "Git", "usr", "bin")
if not (git_tools / "gzip.exe").is_file():

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.

🟡 Warning · Implementation — gzip check runs after cache deletion

In CACHE_MODE=save the loop above already rmtree's all three cache directories before this guard exits. A runner missing gzip.exe loses its kept local caches and saves nothing. Move the check above the loop.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in 489a104: the gzip check and the archive-path output now run first in keys(), before a save clears any cache directory.

Comment thread .github/scripts/windows_ci_caches.py Outdated
# the runner service's PATH lacks that directory, so every save and restore would fail.
git_tools = Path(os.environ["PROGRAMFILES"], "Git", "usr", "bin")
if not (git_tools / "gzip.exe").is_file():
print(f"::error::actions/cache needs {git_tools / 'gzip.exe'} to compress its archives")

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.

🟡 Warning · Style Consistency — Error text omits restore requirement

The message says gzip is needed "to compress its archives", but the comment two lines above and the three restore steps consuming archive-path show it is equally required to extract. Reword to cover save and…

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in 489a104: the error now says gzip is needed to save and restore the archives.

@hujc7

hujc7 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

@greptileai review

@AntoineRichard
AntoineRichard enabled auto-merge (squash) November 4, 2026 18:58
@AntoineRichard
AntoineRichard merged commit efa240e into isaac-sim:main Nov 4, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants