mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #57] [MERGED] fix(snapshot): parallelize OSS layer validation #145
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#145
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/57
Author: @huajq
Created: 7/29/2026
Status: ✅ Merged
Merged: 7/29/2026
Merged by: @yingdi-shan
Base:
main← Head:perf/parallel-oss-layer-validation📝 Commits (1)
86b6770fix(snapshot): parallelize OSS layer validation📊 Changes
1 file changed (+126 additions, -14 deletions)
View changed files
📝
src/snapshot/repository/backends/oss/resolver.rs(+126 -14)📄 Description
Summary
HEADrequestsMotivation
The OSS runtime resolver previously validated every managed layer sequentially.
Snapshots with many rootfs and attached-drive layers therefore spent most of
their cold resolve time waiting for serialized OSS
HEADrequests. A snapshotwith approximately 100 managed layers took 1.47–1.87 seconds in
load_snapshotbefore sandbox startup could begin.Implementation
The OSS resolver now:
buffer_unordered(16);ArtifactNotFounderror with the original layer index anddigest when an object is missing;
The shared runtime materializer and POSIX repository backend are unchanged.
Performance
Measured through the existing
agentenv_sandbox_stage_duration_seconds{operation="create_warm",stage="load_snapshot"}metric with a fresh local snapshot cache:
load_snapshotWarm-cache resolution was approximately 10 ms.
Validation
cargo test -p agentenv --lib snapshot::repository::backends::oss::resolver -- --nocapturecargo clippy -p agentenv --lib -- -D warningscargo build --releasecargo fmt --all -- --checkgit diff --check🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.