Repository navigation
[CI] Fix Windows CI cache saves failing without gzip - #8929
Conversation
[Low impact] The PR appears safe to merge. SummaryFixes Windows cache saves by adding Git’s tools directory to
Reviews (2) · Last reviewed commit: "Check for gzip before a Windows cache sa..." · Reviewed by Greptile |
There was a problem hiding this comment.
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.
| # 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(): |
There was a problem hiding this comment.
🟡 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.
There was a problem hiding this comment.
Fixed in 489a104: the gzip check and the archive-path output now run first in keys(), before a save clears any cache directory.
| # 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") |
There was a problem hiding this comment.
🟡 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…
There was a problem hiding this comment.
Fixed in 489a104: the error now says gzip is needed to save and restore the archives.
|
@greptileai review |
Description
Windows CI has never kept a Warp kernel, Kit shader, or OVRTX shader cache. Every
actions/cache/saveonmainfails 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/cachearchives with Git's GNU tar, whose shell runsgzipfrom Git'susr\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 ifgzip.exeis missing instead of letting saves fail silently again.Type of change
Validation
All runs: Windows CI job
windows-ciongpu-windowsrunners (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):
This PR:
The temporary commit that forced saves on this pull request is reverted. Saving from
mainstarts working once this merges.