Skip to content

test(reliability): pin the queue-full probe on the stack (LAB-13771) - #242

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

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

Conversation

@27Bslash6

Copy link
Copy Markdown
Contributor

The beta CI job fails on main and on every open PR: beta clippy's new unnecessary_box_pin lint rejects one line in the reliability test module, which heap-pins a future only to poll it once and drop it in the same statement.

This change swaps that Box::pin(...).as_mut() for pin!(...). It touches test code only: no runtime, manifest or lockfile change. The other three Box::pin calls in the module stay, because those futures are awaited or dropped later and the lint accepts them.

Checks run locally, with the CI feature set (cachekitio,redis,encryption,l1,macros,memcached,file,tracing):

  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings on beta (1.101.0-beta.3), stable and 1.91: clean on all three; beta failed with the one error before the change.
  • cargo test: all suites pass, including limiter_sheds_queue_full_at_nonzero_boundary.

Closes LAB-13771

Beta clippy's unnecessary_box_pin rejects Box::pin on a future that is
polled once and dropped in the same statement. pin! does the same job
without the allocation.
@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 55 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 64f7bac.

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 6362 6344 -0.29% 2.00% 0.73%
within noise l2_hit/plain/64 6380 6371 -0.14% 2.00% 0.92%
within noise l2_hit/plain/1024 7185 7173 -0.17% 2.00% 0.16%
within noise l2_hit/plain/65536 166704 166553 -0.09% 2.00% 0.09%
within noise l2_hit/rel/40 7005 6987 -0.26% 2.00% 1.23%
within noise l2_hit/rel/64 7006 7014 +0.11% 2.00% 0.61%
within noise l2_hit/rel/1024 7814 7817 +0.04% 2.00% 0.72%
within noise l2_hit/rel/65536 167206 167208 +0.00% 2.00% 0.15%
within noise l2_hit/enc/40 9732 9768 +0.37% 2.00% 0.84%
within noise l2_hit/enc/64 9852 9876 +0.24% 2.00% 0.68%
within noise l2_hit/enc/1024 13501 13492 -0.07% 2.00% 0.27%
within noise l2_hit/enc/65536 402829 402873 +0.01% 2.00% 0.06%
within noise l2_hit/prev/40 12660 12665 +0.03% 2.00% 0.53%
within noise l2_hit/prev/64 12844 12851 +0.05% 2.00% 0.35%
within noise l2_hit/prev/1024 19376 19371 -0.02% 2.00% 0.33%
within noise l2_hit/prev/65536 703890 703738 -0.02% 2.00% 0.03%
within noise l2_hit/ns/40 6787 6799 +0.19% 2.00% 0.79%
within noise l2_hit/ns/64 6976 6972 -0.07% 2.00% 0.84%
within noise l2_hit/ns/1024 7585 7581 -0.06% 2.00% 0.25%
within noise l2_hit/ns/65536 166988 166982 -0.00% 2.00% 0.08%
within noise l2_hit/nsenc/40 10427 10434 +0.07% 2.00% 0.46%
within noise l2_hit/nsenc/64 10359 10375 +0.15% 2.00% 0.38%
within noise l2_hit/nsenc/1024 13891 13920 +0.21% 2.00% 0.49%
within noise l2_hit/nsenc/65536 403266 403115 -0.04% 2.00% 0.06%
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 3761 3746 -0.39% 3.89% 0.59%
within noise delete/plain/64 3782 3768 -0.36% 2.00% 1.03%
within noise delete/plain/1024 3762 3746 -0.43% 8.89% 2.16%
within noise delete/plain/65536 3988 3971 -0.43% 2.00% 0.26%
within noise delete/rel/40 4384 4383 -0.04% 2.00% 0.80%
within noise delete/rel/64 4397 4390 -0.17% 2.00% 0.53%
within noise delete/rel/1024 4373 4377 +0.09% 2.16% 1.40%
within noise delete/rel/65536 4584 4599 +0.33% 3.20% 0.63%
within noise delete/enc/40 3939 3923 -0.39% 4.01% 1.79%
within noise delete/enc/64 3723 3717 -0.14% 2.00% 0.86%
within noise delete/enc/1024 3751 3730 -0.53% 6.99% 0.92%
within noise delete/enc/65536 3962 3968 +0.14% 3.20% 0.37%
within noise delete/parked256/64 3823 3823 -0.00% 2.00% 0.18%
within noise delete/parked1024/64 3827 3828 +0.03% 2.00% 0.13%
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 64f7bacccc7b31c85cf54dfd532cf15ff8dcef26 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