Skip to content

fix(server): resolve non-Linux clippy errors in shard binding - #4144

Merged
hubcio merged 2 commits into
apache:masterfrom
Standing-Man:clippy-check
Sep 12, 2026
Merged

fix(server): resolve non-Linux clippy errors in shard binding#4144
hubcio merged 2 commits into
apache:masterfrom
Standing-Man:clippy-check

Conversation

@Standing-Man

Copy link
Copy Markdown
Contributor

Which issue does this PR address?

Closes #
Relates to #

Rationale

On non-Linux platforms, ShardInfo::bind_cpu and bind_memory are no-ops, triggering Clippy's unused_self and unnecessary_wraps lints.

What changed?

Add narrowly scoped, non-Linux-only lint allowances to preserve the shared API and Linux error handling without changing runtime behavior.

Validation on macOS:

  • Clippy passed with --all-features --all-targets -- -D warnings.
  • Formatting, dependency sorting, and TOML checks passed.
  • All 438 server unit tests and the module graph check passed.
  • Server bootstrap smoke test passed outside the sandbox.

Local Execution

  • Passed / not passed
    Passed
  • Pre-commit hooks ran / not ran
    Ran

AI Usage

CPU and memory binding are no-ops on non-Linux platforms but retain
the fallible Linux API. Allow unused_self and unnecessary_wraps only
on non-Linux targets to preserve consistent method signatures.

Signed-off-by: StandingMan <jmtangcs@gmail.com>
@github-actions

Copy link
Copy Markdown

Thanks for the PR. It is labeled S-waiting-on-review and queued for review.

Slash commands (own line, regular comment) move it around the queue:

  • /ready - back to S-waiting-on-review after addressing feedback
  • /author - flip to S-waiting-on-author while you finish changes
  • /request-review @user-or-team - request a reviewer
  • /pin - exempt the PR from the stale bot, /unpin to undo

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added the S-waiting-on-review PR is waiting on a reviewer label Sep 11, 2026
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.00%. Comparing base (3b93200) to head (2325654).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #4144       +/-   ##
=============================================
- Coverage     86.64%   61.00%   -25.64%     
  Complexity     1455     1455               
=============================================
  Files          1267     1266        -1     
  Lines        211572   172178    -39394     
  Branches     176797   137378    -39419     
=============================================
- Hits         183310   105037    -78273     
- Misses        23778    62754    +38976     
+ Partials       4484     4387       -97     
Components Coverage Δ
Rust Core 55.21% <ø> (-32.40%) ⬇️
Java SDK 67.58% <ø> (ø)
C# SDK 76.97% <ø> (+0.06%) ⬆️
Python SDK 91.34% <ø> (ø)
PHP SDK 85.65% <ø> (ø)
Node SDK 96.26% <ø> (+0.02%) ⬆️
Go SDK 69.43% <ø> (+0.03%) ⬆️
Files with missing lines Coverage Δ
core/server/src/shard_allocator.rs 36.45% <ø> (ø)

... and 422 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hubcio
hubcio merged commit dc54783 into apache:master Sep 12, 2026
97 checks passed
@github-actions github-actions Bot removed the S-waiting-on-review PR is waiting on a reviewer label Sep 12, 2026
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.

3 participants