feat: parallelize volume queries + Linux/presets/audit docs#39
Merged
Conversation
added 3 commits
March 10, 2026 02:09
Add unit tests for parse_du_bytes and collect_disk_usage helpers extracted to src/orchestration/mod.rs. Covers happy path, edge cases (empty input, non-numeric, whitespace-only), None-skipping, and error propagation.
…32) Parallelize volume_disk_usage with futures::future::join_all in both NativePodmanRuntime and OrbStackRuntime. Wrap detect_lockfiles in spawn_blocking to avoid blocking IO on the async runtime. Extract shared parse_du_bytes/collect_disk_usage helpers. Remove redundant second volume_disk_usage call in show_project_info. Update README with Linux platform support, network presets table, and audit log format documentation.
Only join_all is used — no need for the full futures crate (10 sub-crates). futures-util provides the same function with ~60% less compile surface.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
volume_disk_usagewithfutures::future::join_allin both runtimes (was sequential N×2 operations). Wrapdetect_lockfilesinspawn_blockingto avoid blocking IO on the async runtime. Extract sharedparse_du_bytes/collect_disk_usagehelpers. Remove redundant secondvolume_disk_usagecall inshow_project_info.dev,registries). Document audit log format (JSON Lines, 5 event types).Closes #31, closes #32
Test plan
cargo clippycleancargo fmt --checkcleanparse_du_bytes,collect_disk_usage)