Skip to content

apollo_gateway: stop auto-discovering bench helper as a bench target#14878

Draft
avi-starkware wants to merge 1 commit into
avi/build-hygiene/01-dev-line-tables-onlyfrom
avi/build-hygiene/02-gateway-autobenches
Draft

apollo_gateway: stop auto-discovering bench helper as a bench target#14878
avi-starkware wants to merge 1 commit into
avi/build-hygiene/01-dev-line-tables-onlyfrom
avi/build-hygiene/02-gateway-autobenches

Conversation

@avi-starkware

Copy link
Copy Markdown
Collaborator

benches/utils.rs is a helper module included by benches/main.rs (the explicit
[[bench]], gated on the testing feature). Cargo's bench auto-discovery also
picked utils.rs up as a standalone, feature-less bench target, so
cargo bench/cargo clippy --benches failed to compile it without
--features testing (it references apollo_gateway::test_utils). Set
autobenches = false so only the explicit [[bench]] is a bench target.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

benches/utils.rs is a helper module included by benches/main.rs (the explicit
[[bench]], gated on the `testing` feature). Cargo's bench auto-discovery also
picked utils.rs up as a standalone, feature-less bench target, so
`cargo bench`/`cargo clippy --benches` failed to compile it without
`--features testing` (it references apollo_gateway::test_utils). Set
autobenches = false so only the explicit [[bench]] is a bench target.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

Copy link
Copy Markdown
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants