Repository navigation
test(e2e): gate the Linux-only port test helpers so non-Linux clippy is clean - #2785
Merged
Merged
Conversation
…is clean Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Code coverage overviewLanguages: Rust Rust / code-coverage/cargo-llvm-cov
View coverage of the 3 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. |
thiras
approved these changes
Oct 30, 2026
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.
On macOS (any non-Linux target),
CARGO_BUILD_WARNINGS=deny cargo clippy --workspace --all-targetsfails with three dead-code errors incrates/e2e/src/ports/tests.rs:EPHEMERAL_PICKS,node_style_listen, and theSocketAddr/TcpListener/socket2imports. Their only users are the#[cfg(target_os = "linux")]tests from #2731, so off Linux they are unused andbuild.warnings = denyturns that into errors. Linux CI is unaffected, but thecargo-clippypre-commit hook runs this command, so every local commit on macOS fails.Fix: put
#[cfg(target_os = "linux")]on those items and split the imports so the sharedIpv4Addr/UdpSocketstay ungated. The tests and their Linux behavior do not change.Verified on macOS (aarch64-apple-darwin):
env CARGO_BUILD_WARNINGS=deny cargo clippy --workspace --all-targetspasses, and the commit went through every pre-commit hook.cargo fmt -- --checkpasses.cargo nextest run -p decdn-e2e -E 'binary(decdn_e2e)': 49/49 pass, including the four ports tests that are not Linux-gated.x86_64-unknown-linux-gnutarget is not installed, anddecdn-e2e's C-building dependencies would need a cross toolchain. Linux CI's clippy job covers that case.Unrelated, and not fixed here: on macOS,
cargo clippy -p decdn-e2e --all-targets --features anvil-e2e -- -D warningsreports threeclippy::large_futureserrors incrates/e2e/tests/node_pull_pool_redeploy.rs(lines 197, 276, 364; 16384-byte futures). Linux CI's--all-featuresclippy run does not report them.Unblocks #2672.
🤖 Generated with Claude Code