Repository navigation
Adds unused Docker volumes pruning - #7220
myurasov-nv merged 3 commits into
Conversation
Greptile SummaryThe PR adds unused Docker-volume pruning to each storage-cleanup path after the applicable image, container, and build-cache cleanup.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (2): Last reviewed commit: "Prune Docker volumes after stopped conta..." | Re-trigger Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
The volume-pruning addition follows the existing cleanup structure, but its placement leaves two concrete gaps: volumes released by aggressive container pruning are not reclaimed in the same run, and volume cleanup is skipped entirely when storage usage cannot be measured.
- Design and architecture: The helper is appropriately scoped and follows existing logging conventions. However, placing its only call after the unknown-usage early-return means it is not shared across all cleanup lifecycles; the fallback conservative path never invokes it.
- API: No public API, workflow input, environment variable, or documented compatibility surface changes. This is isolated to the CI runner cleanup implementation.
- Implementation:
docker volume prune -f || truematches the script's non-fatal cleanup behavior. It should run after the selected cleanup branch so volumes made unused bydocker container pruneare reclaimed before final usage is checked, and it must also be reached by the unknown-usage fallback path.
Minor fixes needed. Posted 2 actionable findings inline.
Automated review; human maintainers own approval decisions.
bc0d032 to
8402ae6
Compare
6443a29 to
4400f3b
Compare
4400f3b to
df51d7e
Compare
df51d7e to
83d57f5
Compare
|
Dear Greptile! Fixed in 5b2eae3, the way you asked: What this does not cover: the container prune keeps its
|
AntoineRichard
left a comment
There was a problem hiding this comment.
Wasn't there already a docker cleanup? I remember adding something that prunes when storage gets too large? In any case this looks good!
# Description Backports the following merged `develop` PRs to `release/3.0.0`: - #7220 — prune unused Docker volumes on package-test runners - #7169 — cache the resolved OVRTX Warp device - #6889 — move the OVPhysX collider cache out of the Python interpreter directory - #7345 — document the registered XR camera PiP tasks - #7050 — update and reorganize the LEAPP documentation - #7473 — register external RSL-RL tasks before agent discovery - #7467 — update the China storage profile to Isaac Sim 6.1 - #7385 — accept legal float scale values when seeding Fabric frame views from USD - #7517 — use lazy exports in `isaaclab_rl` The duplicate #7517 in the original request is included once. Seven source commits replayed cleanly. Two required release-specific reconciliation: - #7169 retains the release branch's mapped OVRTX write path, which was removed separately on `develop`, while resolving and caching one Warp device for render-product IDs, mappings, and CUDA streams. - #7050 preserves the #7494 export-backend clarification that is already present on the release branch while applying the broader LEAPP documentation overhaul. No new dependencies are added. ## Type of change - Bug fix (non-breaking change which fixes an issue) - Performance improvement - Documentation update - CI/infrastructure update ## Release backport - [ ] <!-- backport-active-release --> This PR already targets the active release branch; do not backport it again. ## Validation - `uv run --no-project --with pytest python -m pytest -q .github/actions/run-package-tests/test_cleanup_docker_storage.py` — 10 passed - Nine isolated `isaaclab_rl` namespace/lazy-import regression cases passed - Resolved-device OVRTX mapping behavior check passed with Warp 1.16.0 - `uv run --no-project python -m compileall -q` on all changed Python modules and tests - `uv run --no-project python tools/changelog/cli.py check` against the exact `upstream/release/3.0.0` base - `pre-commit==4.6.2 run --all-files` passed all available hooks - `git diff --check upstream/release/3.0.0..HEAD` The full project test environment and documentation build cannot resolve on this macOS/arm64 host because the release lockfile supports Linux and Windows only. The Git LFS hook was also unavailable because `git-lfs` is not installed; none of the changed paths are LFS-tracked. Linux CI remains authoritative for simulator, OVRTX, Fabric, and full documentation validation. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the available formatting and static checks - [x] I have included the corresponding documentation changes - [x] Each touched source package includes its original changelog fragment - [x] Every backported commit records its source commit with `cherry picked from commit` - [x] The original contributors are preserved as commit authors --------- Signed-off-by: Zeng Qingcheng <[email protected]> Co-authored-by: myurasov-nv <[email protected]> Co-authored-by: Peter Verswyvelen <[email protected]> Co-authored-by: pv-nvidia <[email protected]> Co-authored-by: hujc <[email protected]> Co-authored-by: hougantc-nvda <[email protected]> Co-authored-by: Frank Lai NV <[email protected]> Co-authored-by: peterd-NV <[email protected]> Co-authored-by: Sheikh Dawood <[email protected]> Co-authored-by: Zeng Qingcheng <[email protected]> Co-authored-by: Antoine RICHARD <[email protected]> Co-authored-by: Mustafa H <[email protected]>
Description
The package-test runner cleanup prunes images, containers, and build cache, but never volumes, so anonymous volumes from test containers accumulate for the life of the runner. On an idle GPU runner,
docker system dfreported 39.58 GB of local volumes, fully reclaimable with no containers attached. This adds a volume prune after the existing cleanup, so volumes released when a stopped container is removed are reclaimed in the same run.Reproduction
On a runner that has finished the package tests, check what Docker is holding:
Observed:
Local Volumes 2 0 39.58GB 39.58GB (100%), so every volume was unused.Confirm nothing in the cleanup reclaims them:
Observed before this change: no matches. The script prunes images, containers, and build cache only.
Run the action's tests:
Observed: 10 passed. The volume tests fail if the prune or its position is removed.
Type of change
Screenshots
Not applicable; the change has no rendered output.
Checklist
pre-commitchecks with./isaaclab.sh --format: not run locally; this change touches only.github/actions/, and the repository's ownpre-commitcheck passes on this branchtest_cleanup_docker_storage.pycover the conservative path, the aggressive path, the ordering against container pruning, and the unmeasurable-usage path; all 10 tests in that file passsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that): not applicable; no package undersource/is touchedCONTRIBUTORS.mdor my name already exists there