Skip to content

Spelling 16 - #2252

Merged
rainsupreme merged 11 commits into
valkey-io:unstablefrom
jsoref:spelling-16
Oct 21, 2026
Merged

rainsupreme merged 11 commits into
valkey-io:unstablefrom
jsoref:spelling-16

Conversation

@jsoref

@jsoref jsoref commented Jun 20, 2025

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Jun 23, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.97%. Comparing base (b936001) to head (9ad10ea).
⚠️ Report is 8 commits behind head on unstable.

Files with missing lines Patch % Lines
src/sentinel.c 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2252      +/-   ##
============================================
+ Coverage     80.93%   80.97%   +0.03%     
============================================
  Files           196      196              
  Lines        102634   102692      +58     
============================================
+ Hits          83068    83150      +82     
+ Misses        19566    19542      -24     
Files with missing lines Coverage Δ
src/cluster.c 92.56% <100.00%> (ø)
src/cluster_legacy.c 89.18% <ø> (+0.23%) ⬆️
src/geohash_helper.c 99.43% <ø> (ø)
src/latency.c 82.56% <100.00%> (ø)
src/networking.c 92.66% <100.00%> (+0.09%) ⬆️
src/rax.c 84.23% <ø> (ø)
src/replication.c 85.98% <ø> (-0.14%) ⬇️
src/script.c 89.24% <100.00%> (ø)
src/server.c 89.91% <100.00%> (+0.05%) ⬆️
src/server.h 100.00% <ø> (ø)
... and 3 more

... and 17 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.

@coderabbitai

coderabbitai Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3d11c45f-8225-47b4-8ecd-636ed3ed6136
📥 Commits

Reviewing files that changed from the base of the PR and between 10bbb59 and 9ad10ea.

📒 Files selected for processing: 1
  • src/server.c

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

This PR corrects timeout-related identifier capitalization, response text, comments, and test names. It also corrects unrelated comment typos and renames the latency sparkline helper without changing runtime behavior.

Changes: Timeout terminology corrections

Layer / File(s) Summary
Timeout API and call-site renames
src/cluster.*, src/script.*, src/sentinel.c, src/server.c
Timeout-related functions, declarations, and call sites now use TimedOut capitalization.
Timeout messages and test names
src/modules/helloacl.c, src/modules/helloblock.c, src/modules/hellotype.c, src/script.*, src/server.*, src/networking.c, src/replication.c, src/timeout.c, tests/unit/scripting.tcl, tests/unit/cluster/slot-migration.tcl
Timeout messages, comments, and scripting test names now use corrected wording.
Other spelling and comment corrections
src/latency.c, src/cluster_legacy.c, src/geohash_helper.c, src/modules/lua/function_lua.c, src/rax.c, src/sentinel.c, src/t_stream.c, tests/integration/dual-channel-replication.tcl
The latency sparkline helper and several comments use corrected spelling and grammar.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: rainsupreme, fusl

Merge Risk: 🔵 Low · up to 9ad10

Only minor wording and test-documentation inconsistencies remain; they do not block runtime behavior.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 73.91% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 23 functions across 17 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title identifies the pull request as a spelling correction update. This matches the main changes, which correct spelling, wording, and identifier capitalization across the codebase.
Description check Passed The description states that this pull request is a subset of PR #2183. This is related to the changeset and satisfies the lenient description requirement.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

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

Comment @coderabbitai help to get the list of available commands.

✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/replication.c`:
- Line 5428: Update the two operator-facing log messages in the replica
disconnection flow near the “Disconnect timed out replicas” comment to replace
“timedout” with “timed out,” preserving the existing message context and
behavior.

In `@tests/unit/cluster/slot-migration.tcl`:
- Line 444: Update the comment above the sets-slot timeout test to state 3000ms
or 3s, matching the TIMEOUT 3000 configuration and its duration assertion.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a2f4af65-79e8-4c3d-99ba-eabb472ede65

📥 Commits

Reviewing files that changed from the base of the PR and between d9ce598 and 72374ae.

📒 Files selected for processing (21)
  • src/cluster.c
  • src/cluster.h
  • src/cluster_legacy.c
  • src/geohash_helper.c
  • src/latency.c
  • src/modules/helloacl.c
  • src/modules/helloblock.c
  • src/modules/lua/function_lua.c
  • src/networking.c
  • src/rax.c
  • src/replication.c
  • src/script.c
  • src/script.h
  • src/sentinel.c
  • src/server.c
  • src/server.h
  • src/t_stream.c
  • src/timeout.c
  • tests/integration/dual-channel-replication.tcl
  • tests/unit/cluster/slot-migration.tcl
  • tests/unit/scripting.tcl

Comment thread src/replication.c
}

/* Disconnect timedout replicas. */
/* Disconnect timed out replicas. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct the remaining timedout log messages.

The comment now uses timed out, but the log messages at Lines 5440 and 5453 still emit timedout. Update both messages for consistent operator-facing terminology.

Suggested wording update
-                    serverLog(LL_WARNING, "Disconnecting timedout replica (streaming sync): %s",
+                    serverLog(LL_WARNING, "Disconnecting timed out replica (streaming sync): %s",
...
-                    serverLog(LL_WARNING, "Disconnecting timedout replica (full sync): %s",
+                    serverLog(LL_WARNING, "Disconnecting timed out replica (full sync): %s",
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/replication.c` at line 5428, Update the two operator-facing log messages
in the replica disconnection flow near the “Disconnect timed out replicas”
comment to replace “timedout” with “timed out,” preserving the existing message
context and behavior.

pause_process [srv -3 pid]

# Setslot with an explicit 1ms timeoout
# Setslot with an explicit 1ms timeout

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Align the comment with the configured timeout.

The comment says 1ms, but line 446 passes TIMEOUT 3000. The test uses a 3,000 ms timeout and checks for a duration greater than 2,000 ms. Change the comment to 3000ms or 3s.

Proposed fix
-        # Setslot with an explicit 1ms timeout
+        # Setslot with an explicit 3000ms timeout
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# Setslot with an explicit 1ms timeout
# Setslot with an explicit 3000ms timeout
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/unit/cluster/slot-migration.tcl` at line 444, Update the comment above
the sets-slot timeout test to state 3000ms or 3s, matching the TIMEOUT 3000
configuration and its duration assertion.

@rainsupreme rainsupreme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please rebase this so we can merge it :)

Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
@valkey-review-bot

valkey-review-bot Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Review state

Ready for human review.
Spelling-only cleanup with nothing left open. The new head drops the stale lua_timedout comment in processCommand(), as a maintainer asked. A git grep finds no remaining uses of the renamed functions' old names.

Risk: Low. Only comments, test names, internal function names and example-module reply strings change, so a mistake would at worst break the build or rename a test.

Open findings: none.

Resolved (1)

  • (minor) src/modules/hellotype.c:209 HelloType's timeout reply still said "Request timedout", unlike helloacl.c and helloblock.c.

Backport: Not needed. Spelling cleanup with no behavior fix.

Updated for 9ad10ea at 2026-10-21 19:38 UTC. The bot rewrites this comment on every review.

@rainsupreme rainsupreme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just one nit in an arguably bad code comment

Comment thread src/server.c Resolved
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
@rainsupreme
rainsupreme merged commit 9a029ba into valkey-io:unstable Oct 21, 2026
64 of 65 checks passed
@jsoref
jsoref deleted the spelling-16 branch October 21, 2026 20:32
@github-project-automation github-project-automation Bot moved this to To be backported in Valkey 9.2 Oct 22, 2026
valkeyrie-ops Bot pushed a commit that referenced this pull request Oct 25, 2026
…ts (#2252)

- Subset of #2183

---------

Signed-off-by: Josh Soref <[email protected]>
Backport-Source-PR: 2252
JimB123 pushed a commit that referenced this pull request Oct 26, 2026
…ts (#2252)

- Subset of #2183

---------

Signed-off-by: Josh Soref <[email protected]>
Backport-Source-PR: 2252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants