Repository navigation
Add warp cache for post-merge - #6809
Conversation
| if: >- | ||
| (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && | ||
| needs.build.result == 'success' |
There was a problem hiding this comment.
Manual dispatch publishes isolated cache
When a maintainer dispatches this workflow from a non-default branch, the warmer publishes up to 5 GB into that branch's cache scope, which normal pull requests cannot restore and which consumes the repository-wide cache quota.
| if: >- | |
| (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && | |
| needs.build.result == 'success' | |
| if: >- | |
| (github.event_name == 'push' || | |
| (github.event_name == 'workflow_dispatch' && github.ref_name == github.event.repository.default_branch)) && | |
| needs.build.result == 'success' |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| { | ||
| echo "restore-keys<<EOF" | ||
| echo "${scoped}-" | ||
| echo "${prefix}-" |
There was a problem hiding this comment.
Greptile SummaryAdds a shared Warp kernel cache to accelerate containerized CI tests.
Confidence Score: 4/5The branch guard on the cache warmer should be fixed before merging because a non-default-branch manual run can consume substantial shared cache quota with an artifact ordinary pull requests cannot use. The new caching flow is otherwise internally coordinated, but workflow_dispatch is not restricted to the default branch and the restore prefixes also permit costly cross-version cache downloads. Files Needing Attention: .github/workflows/build.yaml and .github/actions/warp-cache-key/action.yml Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
Push["Default-branch push or manual dispatch"] --> Warm["warm-warp-cache"]
Warm --> Compile["Run selected environment tests"]
Compile --> Save["Publish bounded Warp cache"]
PR["PR test jobs"] --> Key["Compute version/GPU/source key"]
Key --> Restore["Restore shared cache"]
Restore --> Mount["Bind mount as WARP_CACHE_PATH"]
Mount --> Tests["Run package tests"]
Tests --> Coverage["Report cache growth"]
Reviews (1): Last reviewed commit: "Add warp cache for post-merge" | Re-trigger Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
The shared Warp cache plumbing is coherent, but two cache-scope boundaries are broader than documented: manual runs can publish from non-default branches, and restore fallback can select caches from incompatible IsaacSim versions.
- Design and architecture: Centralizing cache keys and paths in one composite action keeps readers and writers aligned, while clean cache generation and the publication size cap limit uncontrolled growth. However, the unversioned restore fallback defeats the stated IsaacSim/Warp invalidation boundary and can download a multi-gigabyte cache that cannot be reused.
- API: The new cache inputs are additive and disabled by default, and the host-directory argument is threaded consistently. The documented restriction that save mode is only used on the default branch is not enforced because workflow_dispatch permits arbitrary refs.
- Implementation: The bind mount, WARP_CACHE_PATH validation, measurement, and success-gated save paths are implemented consistently. Before merge, restrict the warmer's manual-dispatch save path to the default branch and remove the restore prefix that crosses IsaacSim versions; otherwise branch-scoped entries waste repository quota and incompatible restores distort coverage reporting.
Minor fixes needed. Posted 2 actionable findings inline.
Automated review; human maintainers own approval decisions.
| continue-on-error: true | ||
| needs: [build, config] | ||
| if: >- | ||
| (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && |
There was a problem hiding this comment.
🟡 Warning · Implementation — Cache save not restricted to default branch
The warp-cache input documents that save may be used "only on the default branch, since caches written from a pull request are scoped to that pull request". This condition also allows workflow_dispatch, which can be launched from any ref, so a manual run on a feature branch publishes a branch-scoped entry (up to warp-cache-max-mb) that no other run can read while still consuming the repository cache quota and triggering LRU eviction. Add an explicit branch guard on the save path.
| { | ||
| echo "restore-keys<<EOF" | ||
| echo "${scoped}-" | ||
| echo "${prefix}-" |
There was a problem hiding this comment.
🔵 Suggestion · Design Architecture — Restore fallback crosses IsaacSim versions
The ${prefix}- fallback omits ISAACSIM_VERSION, contradicting this action's own statement that "a new IsaacSim ships a new Warp and invalidates every kernel". After a version bump, a job downloads a multi-gigabyte cache that Warp cannot reuse, and the non-zero restored size makes the coverage step report "compiled N% beyond the warm cache" instead of a cold run. Keep only the version-scoped ${scoped}- restore prefix.
# Description Better implementation for the proposed warp cache for faster CI testing. Follows a pattern from the newton repo. ## Checklist - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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 added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Description
Better implementation for the proposed warp cache for faster CI testing. Follows a pattern from the newton repo.
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there