perf(test): consolidate agent runtime contract targets - #2001
Merged
limityan merged 1 commit intoAug 3, 2026
Conversation
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
bitfun-agent-runtimeintegration-test crates into four responsibility-aligned targetsWhy
The package previously linked 28 integration-test executables against the same feature-free runtime dependency closure. Most of those crates represented source-file granularity rather than an architectural or execution boundary. The new layout preserves the one real platform/process boundary while reducing redundant test compilation and debug artifacts.
Behavior and architecture
native_hook_execution_contracts.rsremains at its original path and unchangeda03b977a31db21c247db636d85f60250666a979a57c2b186a0a0ef8129eabde2)autotests = falsefail closed when a future test file is not registeredLocal performance observation
Windows 10.0.19045, i7-10700, rustc/cargo 1.97.1, dependencies warmed, A/B/A/B/A/B order. Each sample ran:
cargo clean -p bitfun-agent-runtimecargo test -p bitfun-agent-runtime --no-run --locked --quietThis is a local observation: median package test compile/link time decreased by about 17.0%, and integration PDB size by about 75.2%. It does not claim fewer third-party dependencies or features.
Validation
pnpm run fmt:rscargo test -p bitfun-agent-runtime --locked --tests(504/504 on Windows; repeated three times before rebase and rerun after rebase)cargo check -p bitfun-agent-runtime --tests --target x86_64-unknown-linux-gnu --lockedpnpm run check:core-boundaries:test(40/40)pnpm run check:core-boundariescargo check -p bitfun-core --features product-full --lockedThe Windows host cannot execute the 22 Unix shell/process tests; existing Linux CI remains the runtime proof for that path.