mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #153] [MERGED] test: remove redundant tests and merge similar tests #213
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#213
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/153
Author: @LSX-s-Software
Created: 8/11/2026
Status: ✅ Merged
Merged: 8/11/2026
Merged by: @LSX-s-Software
Base:
main← Head:test/simplify📝 Commits (1)
ca42dfdtest: remove redundant tests and merge similar tests📊 Changes
7 files changed (+182 additions, -460 deletions)
View changed files
📝
src/cfg.rs(+127 -260)📝
src/cfg/image.rs(+34 -0)📝
src/cfg/network.rs(+20 -0)📝
src/sandbox/envd.rs(+1 -111)📝
src/sandbox/firecracker/config.rs(+0 -10)📝
src/sandbox/firecracker/instance.rs(+0 -67)📝
src/setup/deps.rs(+0 -12)📄 Description
What
Remove and consolidate unit tests that duplicate implementation details instead of testing owned behavior.
Why
Several tests repeated constants or simple assignments from production code. Others constructed temporary config files or mock HTTP servers without exercising additional AgentENV behavior.
This made the suite larger and more brittle without providing meaningful regression coverage. The remaining tests focus on validation rules, configuration relationships, and observable failure paths owned by AgentENV.
Related issue
N/A.
Scope and non-goals
Included:
Excluded:
Design and behavior changes
There are no runtime behavior changes.
Configuration tests now construct the relevant config objects directly and invoke their validation methods. Related invalid cases use table-driven assertions so each owned validation rule remains explicit without duplicating setup.
Tests that only mirrored direct assignments, builder options, or dependency-provided deserialization behavior were removed.
Compatibility and operations
Validation
make fmtmake clippymake test-unitmake -C services test(required whenservices/changes)maketargetCommands and results:
Skipped checks and reasons:
Risks and reviewer notes
Low risk. The retained tests continue to cover bundled config loading, supported memory snapshot combinations, disk rate limits, GC watermarks, path normalization, and OverlayBD configuration isolation.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.