Skip to content

test(reliability): pin the shed-path future on the stack (LAB-13777) - #243

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

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

Conversation

@27Bslash6

Copy link
Copy Markdown
Contributor

The beta CI job fails on every pull request: beta clippy's unnecessary_box_pin lint fires once, on a test in crates/cachekit/src/reliability.rs that boxes a future it polls once and then drops.

std::pin::pin! pins that future on the stack instead. The test asserts the same thing as before; only the allocation goes.

Test-only, one line. No library code, manifest or lockfile change.

Verified locally with cargo clippy --all-targets --features "cachekitio,redis,encryption,l1,macros,memcached,file,tracing" -- -D warnings on beta, stable and 1.91, plus cargo fmt --check and the reliability unit tests.

Beta clippy's unnecessary_box_pin lint flags Box::pin on a future that is
polled once and dropped in the same statement. std::pin::pin! does the
same job without the allocation, and keeps the beta job green under
-D warnings.
@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 54 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 cbf628f.

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.

@27Bslash6

Copy link
Copy Markdown
Contributor Author

Duplicate of #240, which carries the same one-line change and was opened first. Closing this one.

@27Bslash6 27Bslash6 closed this Nov 27, 2026
@27Bslash6
27Bslash6 deleted the lab-13777-beta-box-pin branch November 27, 2026 00:11
@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 6354 6379 +0.40% 2.00% 0.86%
within noise l2_hit/plain/64 6355 6389 +0.53% 2.00% 0.81%
within noise l2_hit/plain/1024 7168 7188 +0.28% 2.00% 0.57%
within noise l2_hit/plain/65536 166692 166709 +0.01% 2.00% 0.05%
within noise l2_hit/rel/40 7022 7008 -0.19% 2.00% 1.04%
within noise l2_hit/rel/64 7032 6994 -0.55% 2.00% 0.45%
within noise l2_hit/rel/1024 7812 7808 -0.06% 2.00% 0.31%
within noise l2_hit/rel/65536 167223 167322 +0.06% 2.00% 0.12%
within noise l2_hit/enc/40 9763 9748 -0.16% 2.00% 0.33%
within noise l2_hit/enc/64 9865 9886 +0.21% 2.00% 0.79%
within noise l2_hit/enc/1024 13504 13487 -0.12% 2.00% 0.31%
within noise l2_hit/enc/65536 402822 402775 -0.01% 2.00% 0.06%
within noise l2_hit/prev/40 12671 12672 +0.00% 2.00% 0.44%
within noise l2_hit/prev/64 12836 12846 +0.08% 2.00% 0.77%
within noise l2_hit/prev/1024 19376 19340 -0.18% 2.00% 0.37%
within noise l2_hit/prev/65536 703827 703775 -0.01% 2.00% 0.03%
within noise l2_hit/ns/40 6782 6797 +0.23% 2.00% 0.28%
within noise l2_hit/ns/64 6967 6980 +0.19% 2.00% 0.70%
within noise l2_hit/ns/1024 7596 7594 -0.03% 2.00% 0.95%
within noise l2_hit/ns/65536 166991 167100 +0.07% 2.00% 0.09%
within noise l2_hit/nsenc/40 10429 10435 +0.06% 2.00% 0.26%
within noise l2_hit/nsenc/64 10365 10369 +0.03% 2.00% 0.36%
within noise l2_hit/nsenc/1024 13929 13914 -0.11% 2.00% 0.24%
within noise l2_hit/nsenc/65536 403272 403256 -0.00% 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 3773 3757 -0.42% 2.00% 1.17%
within noise delete/plain/64 3753 3759 +0.14% 2.00% 1.02%
within noise delete/plain/1024 3749 3766 +0.47% 4.41% 1.70%
within noise delete/plain/65536 3965 3973 +0.19% 2.00% 0.60%
within noise delete/rel/40 4383 4405 +0.50% 2.72% 0.61%
within noise delete/rel/64 4379 4391 +0.29% 2.95% 0.84%
within noise delete/rel/1024 4407 4420 +0.29% 4.75% 1.76%
within noise delete/rel/65536 4599 4618 +0.41% 2.00% 0.33%
within noise delete/enc/40 3932 3926 -0.16% 4.27% 1.40%
within noise delete/enc/64 3686 3716 +0.80% 5.14% 1.54%
within noise delete/enc/1024 3715 3727 +0.32% 6.70% 2.46%
within noise delete/enc/65536 3951 3956 +0.12% 2.44% 0.76%
within noise delete/parked256/64 3823 3822 -0.03% 2.00% 0.07%
within noise delete/parked1024/64 3828 3825 -0.08% 2.00% 0.06%
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 cbf628f7dc99c784273d3a1b7ee26803375229d2 merged into its base, measured against 07068a613b8d858a79b9716d704a8129abf114b8 on the same runner. Workflow run

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