Skip to content

test(reliability): pin the queue-full probe on the stack for beta clippy (LAB-13774) - #241

Open
27Bslash6 wants to merge 1 commit into
mainfrom
lab-13774-beta-box-pin
Open

27Bslash6 wants to merge 1 commit into
mainfrom
lab-13774-beta-box-pin

Conversation

@27Bslash6

Copy link
Copy Markdown
Contributor

What

One test in reliability.rs pinned a future with Box::pin only to poll it once and drop it. Beta clippy (1.101) now rejects that under clippy::unnecessary_box_pin, so the beta job fails on every branch, whatever the branch changes.

This swaps it for std::pin::pin!. Test-only, no behaviour change: the future is still polled exactly once and dropped at the end of the statement.

Verified locally

  • cargo +beta clippy --all-targets --features "cachekitio,redis,encryption,l1,macros,memcached,file,tracing" -- -D warnings: 1 error before, clean after
  • the same command on stable and on 1.91 (MSRV): clean
  • cargo fmt --all -- --check: clean
  • cargo test with the same features on stable: all pass

Docs

No docs needed: test-only change, no public or documented surface.

Beta clippy's unnecessary_box_pin rejects Box::pin for a future that is
polled once and dropped in the same statement. pin! does the same job
without the allocation, and keeps the beta lint job green.
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 07068a6 and 4a3321d.

Files selected for processing: 1

  • crates/cachekit/src/reliability.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@kodus-27b

kodus-27b Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

@github-actions

Copy link
Copy Markdown

Instruction counts: PASS

122 of 122 cases measured. A case fails when its median is slower than the base by its floor or more (SLOWER). The floor is 0.5%, and such a case also fails when the head's runs spread by more than that (NOISIER), except l2_hit, whose floor is 2% because its count varies between runs. delete cases are reported, never failed. Method: README, Measuring performance.

122 cases within noise
Verdict Case Base Ir/op Head Ir/op Delta Floor Head spread
within noise l1_hit/plain/40 1284 1284 +0.00% 0.50% 0.00%
within noise l1_hit/plain/64 1331 1331 +0.00% 0.50% 0.00%
within noise l1_hit/plain/1024 1860 1860 +0.00% 0.50% 0.00%
within noise l1_hit/plain/65536 95707 95707 +0.00% 0.50% 0.00%
within noise l1_hit/rel/40 1284 1284 +0.00% 0.50% 0.00%
within noise l1_hit/rel/64 1331 1331 +0.00% 0.50% 0.00%
within noise l1_hit/rel/1024 1860 1860 +0.00% 0.50% 0.00%
within noise l1_hit/rel/65536 95729 95729 +0.00% 0.50% 0.00%
within noise l1_hit/enc/40 4689 4689 +0.00% 0.50% 0.00%
within noise l1_hit/enc/64 4803 4803 +0.00% 0.50% 0.00%
within noise l1_hit/enc/1024 8157 8157 +0.00% 0.50% 0.00%
within noise l1_hit/enc/65536 331691 331691 +0.00% 0.50% 0.00%
within noise l1_hit/prev/40 7587 7587 +0.00% 0.50% 0.00%
within noise l1_hit/prev/64 7775 7775 +0.00% 0.50% 0.00%
within noise l1_hit/prev/1024 13989 13989 +0.00% 0.50% 0.00%
within noise l1_hit/prev/65536 632730 632730 +0.00% 0.50% 0.00%
within noise l1_hit/ns/40 1485 1485 +0.00% 0.50% 0.00%
within noise l1_hit/ns/64 1529 1529 +0.00% 0.50% 0.00%
within noise l1_hit/ns/1024 2064 2064 +0.00% 0.50% 0.00%
within noise l1_hit/ns/65536 95905 95905 +0.00% 0.50% 0.00%
within noise l1_hit/nsenc/40 4891 4891 +0.00% 0.50% 0.00%
within noise l1_hit/nsenc/64 5005 5005 +0.00% 0.50% 0.00%
within noise l1_hit/nsenc/1024 8347 8347 +0.00% 0.50% 0.00%
within noise l1_hit/nsenc/65536 331861 331861 +0.00% 0.50% 0.00%
within noise l1_hit_row/plain/40 7777 7777 +0.00% 0.50% 0.00%
within noise l1_hit_row/plain/64 7824 7824 +0.00% 0.50% 0.00%
within noise l1_hit_row/plain/1024 8339 8339 +0.00% 0.50% 0.00%
within noise l1_hit_row/plain/65536 102340 102340 +0.00% 0.50% 0.00%
within noise l1_hit_row/enc/40 11921 11921 +0.00% 0.50% 0.00%
within noise l1_hit_row/enc/64 11830 11830 +0.00% 0.50% 0.00%
within noise l1_hit_row/enc/1024 15024 15024 +0.00% 0.50% 0.00%
within noise l1_hit_row/enc/65536 339149 339149 +0.00% 0.50% 0.00%
within noise l2_hit/plain/40 6345 6355 +0.15% 2.00% 1.38%
within noise l2_hit/plain/64 6374 6366 -0.13% 2.00% 0.84%
within noise l2_hit/plain/1024 7189 7186 -0.04% 2.00% 0.89%
within noise l2_hit/plain/65536 166581 166657 +0.05% 2.00% 0.11%
within noise l2_hit/rel/40 6985 6989 +0.06% 2.00% 0.74%
within noise l2_hit/rel/64 7026 7016 -0.14% 2.00% 0.64%
within noise l2_hit/rel/1024 7833 7822 -0.14% 2.00% 0.45%
within noise l2_hit/rel/65536 167216 167316 +0.06% 2.00% 0.11%
within noise l2_hit/enc/40 9764 9779 +0.15% 2.00% 1.08%
within noise l2_hit/enc/64 9873 9872 -0.02% 2.00% 0.72%
within noise l2_hit/enc/1024 13508 13483 -0.18% 2.00% 0.22%
within noise l2_hit/enc/65536 402794 402697 -0.02% 2.00% 0.06%
within noise l2_hit/prev/40 12665 12670 +0.04% 2.00% 0.49%
within noise l2_hit/prev/64 12823 12841 +0.14% 2.00% 0.30%
within noise l2_hit/prev/1024 19356 19385 +0.15% 2.00% 0.21%
within noise l2_hit/prev/65536 703839 703822 -0.00% 2.00% 0.02%
within noise l2_hit/ns/40 6794 6790 -0.06% 2.00% 0.41%
within noise l2_hit/ns/64 6978 6969 -0.13% 2.00% 0.59%
within noise l2_hit/ns/1024 7586 7587 +0.01% 2.00% 0.87%
within noise l2_hit/ns/65536 166980 167097 +0.07% 2.00% 0.12%
within noise l2_hit/nsenc/40 10444 10430 -0.14% 2.00% 0.69%
within noise l2_hit/nsenc/64 10373 10378 +0.05% 2.00% 0.17%
within noise l2_hit/nsenc/1024 13905 13929 +0.17% 2.00% 0.32%
within noise l2_hit/nsenc/65536 403173 403112 -0.02% 2.00% 0.07%
within noise set/plain/40 4504 4504 +0.00% 0.50% 0.00%
within noise set/plain/64 4514 4514 +0.00% 0.50% 0.00%
within noise set/plain/1024 4665 4665 +0.00% 0.50% 0.00%
within noise set/plain/65536 70099 70099 +0.00% 0.50% 0.00%
within noise set/rel/40 5306 5306 +0.00% 0.50% 0.00%
within noise set/rel/64 5314 5314 -0.00% 0.50% 0.00%
within noise set/rel/1024 5459 5459 +0.00% 0.50% 0.00%
within noise set/rel/65536 70884 70884 +0.00% 0.50% 0.00%
within noise set/enc/40 7658 7658 +0.00% 0.50% 0.00%
within noise set/enc/64 7727 7727 +0.00% 0.50% 0.00%
within noise set/enc/1024 10784 10784 +0.00% 0.50% 0.00%
within noise set/enc/65536 305961 305961 +0.00% 0.50% 0.00%
within noise set/ns/40 4719 4719 +0.00% 0.50% 0.00%
within noise set/ns/64 4735 4735 -0.00% 0.50% 0.00%
within noise set/ns/1024 4885 4885 +0.00% 0.50% 0.00%
within noise set/ns/65536 70301 70301 +0.00% 0.50% 0.00%
within noise set/nsenc/40 7843 7843 +0.00% 0.50% 0.00%
within noise set/nsenc/64 7941 7941 +0.00% 0.50% 0.00%
within noise set/nsenc/1024 11005 11005 +0.00% 0.50% 0.00%
within noise set/nsenc/65536 306123 306123 +0.00% 0.50% 0.00%
within noise delete/plain/40 3759 3758 -0.04% 3.78% 0.72%
within noise delete/plain/64 3762 3760 -0.03% 3.00% 0.41%
within noise delete/plain/1024 3735 3766 +0.85% 4.44% 0.94%
within noise delete/plain/65536 3969 3973 +0.11% 2.00% 0.56%
within noise delete/rel/40 4381 4400 +0.43% 2.00% 0.49%
within noise delete/rel/64 4393 4384 -0.20% 2.47% 1.33%
within noise delete/rel/1024 4372 4387 +0.35% 2.00% 1.38%
within noise delete/rel/65536 4590 4605 +0.33% 2.00% 0.43%
within noise delete/enc/40 3935 3937 +0.05% 2.79% 1.19%
within noise delete/enc/64 3719 3731 +0.32% 2.83% 1.28%
within noise delete/enc/1024 3744 3730 -0.36% 6.69% 1.36%
within noise delete/enc/65536 3963 3970 +0.19% 2.00% 0.55%
within noise delete/parked256/64 3822 3822 -0.01% 2.00% 0.13%
within noise delete/parked1024/64 3827 3829 +0.04% 2.00% 0.20%
within noise exists/plain/40 722 722 +0.00% 0.50% 0.00%
within noise exists/plain/64 722 722 +0.00% 0.50% 0.00%
within noise exists/plain/1024 722 722 +0.00% 0.50% 0.00%
within noise exists/plain/65536 728 728 +0.00% 0.50% 0.00%
within noise exists/rel/40 722 722 +0.00% 0.50% 0.00%
within noise exists/rel/64 722 722 +0.00% 0.50% 0.00%
within noise exists/rel/1024 722 722 +0.00% 0.50% 0.00%
within noise exists/rel/65536 734 734 +0.00% 0.50% 0.00%
within noise exists/enc/40 740 740 +0.00% 0.50% 0.00%
within noise exists/enc/64 740 740 +0.00% 0.50% 0.00%
within noise exists/enc/1024 740 740 +0.00% 0.50% 0.00%
within noise exists/enc/65536 746 746 +0.00% 0.50% 0.00%
within noise oneshot/enc/40 69443 69443 +0.00% 0.50% 0.00%
within noise oneshot/enc/64 69557 69557 -0.00% 0.50% 0.00%
within noise oneshot/enc/1024 73221 73221 +0.00% 0.50% 0.00%
within noise oneshot/enc/65536 462611 462611 -0.00% 0.50% 0.00%
within noise oneshot/prev/40 101772 101772 +0.00% 0.50% 0.00%
within noise oneshot/prev/64 101960 101960 -0.00% 0.50% 0.00%
within noise oneshot/prev/1024 108496 108496 +0.00% 0.50% 0.00%
within noise oneshot/prev/65536 793063 793063 +0.00% 0.50% 0.00%
within noise macro_hit/plain/40 5203 5203 +0.00% 0.50% 0.00%
within noise macro_hit/plain/64 5250 5250 +0.00% 0.50% 0.00%
within noise macro_hit/plain/1024 5779 5779 +0.00% 0.50% 0.00%
within noise macro_hit/plain/65536 99658 99658 +0.00% 0.50% 0.00%
within noise macro_hit/rel/40 5203 5203 +0.00% 0.50% 0.00%
within noise macro_hit/rel/64 5250 5250 +0.00% 0.50% 0.00%
within noise macro_hit/rel/1024 5779 5779 +0.00% 0.50% 0.00%
within noise macro_hit/rel/65536 99610 99610 +0.00% 0.50% 0.00%
within noise macro_hit/enc/40 9224 9224 +0.00% 0.50% 0.00%
within noise macro_hit/enc/64 9338 9338 +0.00% 0.50% 0.00%
within noise macro_hit/enc/1024 12678 12678 +0.00% 0.50% 0.00%
within noise macro_hit/enc/65536 336258 336258 +0.00% 0.50% 0.00%

PR head 4a3321d81bfb6ab2cf796b8587896cde893b346b merged into its base, measured against 07068a613b8d858a79b9716d704a8129abf114b8 on the same runner. Workflow run

This branch has not been deployed

No deployments
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.

1 participant