mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #39] [MERGED] perf: isolate benchmark and e2e dependencies #134
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#134
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/39
Author: @NickNYU
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @LSX-s-Software
Base:
main← Head:autoresearch/issue-8-p1📝 Commits (2)
8e325dfperf: keep heavyweight tooling out of unit-test buildseaef527Update crates/benchmarks/Cargo.toml📊 Changes
12 files changed (+105 additions, -36 deletions)
View changed files
📝
Cargo.lock(+33 -2)📝
Cargo.toml(+2 -22)📝
Makefile(+6 -6)➕
crates/benchmarks/Cargo.toml(+41 -0)📝
crates/benchmarks/benches/oci_conversion_pipeline_benchmark.rs(+0 -0)📝
crates/benchmarks/benches/orchestrator_store_benchmark.rs(+0 -0)📝
crates/benchmarks/benches/snapshot_benchmark.rs(+0 -0)📝
crates/benchmarks/benches/ublk_overlaybd_benchmark.rs(+0 -0)➕
crates/e2e-tests/Cargo.toml(+18 -0)📝
crates/e2e-tests/tests/snapshot_oss_e2e_test.rs(+3 -4)📝
docs/src/internals/sandbox-testing.md(+1 -1)📝
docs/src/internals/template-builder-testing.md(+1 -1)📄 Description
Summary
agentenv-benchmarksworkspace packageagentenv-e2e-testsPart of #8 (P1).
Why
Cargo activates a package's dev-dependencies for library test builds even when the test target does not use them. Keeping Criterion and
agentenv-test-supporton the root package causedcargo test -p agentenv --lib --no-runto compile benchmark tooling, AWS SDK crates, and testcontainers.Dedicated workspace packages preserve the benchmark/e2e targets while moving those costs behind explicit package selection.
Measured result
Same isolated VM for both runs: Ubuntu 22.04 ARM64, 8 vCPU, 16 GiB RAM, rustc 1.97.1. Commands used a fresh target directory and a warm Cargo source cache.
cargo test -p agentenv --lib --no-run --lockedThe compiler-artifact gate found all six P1 dependencies before the change and none afterward:
criterionagentenv-test-supportaws-sdk-s3aws-configtestcontainerstestcontainers-modulesThe ARM64 timings are screening data rather than a replacement for the issue's x86_64 baseline; the dependency isolation result itself comes from Cargo's compiled artifact stream and dependency tree.
Verification
cargo fmt --all -- --checkcargo test -p agentenv --lib --locked— 633 passed, 0 failed, 2 ignoredcargo test -p agentenv-e2e-tests --test snapshot_oss_e2e_test --no-run --lockedcargo test -p agentenv-benchmarks --benches --no-run --locked— 4 executablescargo clippy -p agentenv -p agentenv-benchmarks -p agentenv-e2e-tests --all-targets --locked -- -D warningsNot run
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.