Skip to content

spelling: cannot - #2242

Merged
rainsupreme merged 1 commit into
valkey-io:unstablefrom
jsoref:spelling-5
Oct 21, 2026
Merged

rainsupreme merged 1 commit into
valkey-io:unstablefrom
jsoref:spelling-5

Conversation

@jsoref

@jsoref jsoref commented Jun 20, 2025

Copy link
Copy Markdown
Contributor

@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.

The comment/log fixes are fine, but ~12 changes touch user-facing error strings that clients may pattern-match (e.g. src/functions.c, src/module.c, src/server.c, src/sentinel.c) and corresponding test assertions. Could you drop those changes from this PR (and rebase)? If you want to pursue the user-facing changes (which may be a breaking change) let's tackle that in a separate PR, I'd say

@coderabbitai

coderabbitai Bot commented Aug 6, 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: 9cbb8fe2-7f01-45a5-8aae-33d876161d2f
📥 Commits

Reviewing files that changed from the base of the PR and between f444b16 and 0762d83.

📒 Files selected for processing: 14
  • src/bio.c
  • src/cluster_legacy.c
  • src/debug.c
  • src/io_threads.c
  • src/module.c
  • src/pubsub.c
  • src/rdma.c
  • src/server.h
  • src/valkey-cli.c
  • src/ziplist.c
  • tests/modules/basics.c
  • tests/unit/acl.tcl
  • tests/unit/client-eviction.tcl
  • tests/unit/wait.tcl
🚧 Files skipped from review as they are similar to previous changes: 14
  • src/bio.c
  • src/rdma.c
  • tests/unit/client-eviction.tcl
  • src/server.h
  • tests/unit/wait.tcl
  • src/ziplist.c
  • src/debug.c
  • src/valkey-cli.c
  • src/pubsub.c
  • tests/unit/acl.tcl
  • src/io_threads.c
  • src/cluster_legacy.c
  • src/module.c
  • tests/modules/basics.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 pull request replaces “can not” with “cannot” in source messages and comments, and in test comments and descriptions. It does not change executable behavior.

Changes: Grammar consistency

Layer / File(s) Summary
Source text updates
src/*.c, src/server.h
Corrects wording in runtime messages and comments across source files.
Test text updates
tests/modules/*, tests/unit/*
Corrects wording in test comments and descriptions. Test logic and expectations remain unchanged.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: rainsupreme

Merge Risk: ⚪ Minimal · up to 0762d

The wording updates are ready to merge after normal checks; no actionable behavior or test regression remains.

Pre-merge checks: Passed 4 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Docstring Coverage Inconclusive Docstring coverage is 59.09% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 22 functions across 14 files. (4 skipped:… 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 clearly identifies the spelling correction from “can not” to “cannot,” which is the primary change.
Description check Passed The description identifies the pull request as a subset of PR #2183. This is related to the changeset and is sufficient for this lenient check.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 59.09% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 22 functions across 14 files. (4 skipped: 3 unsupported, 1 too large.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

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.

@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/module.c`:
- Line 6265: Update the disconnect callback comment near the server-provided
commands note to replace the incorrect phrase “cannot happened” with the
grammatically correct “cannot happen.”
- Around line 6814-6820: Update the exact-response assertion in the cluster
down-state test around the RM_Call error expectation to match the message
emitted by the CLUSTER_REDIR_DOWN_STATE branch in module.c: expect “ERR Cannot
execute...” instead of “ERR Can not execute...”, preserving the rest of the
response unchanged.
🪄 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: bf316172-3ed8-4a5b-9731-4b77d4f25108

📥 Commits

Reviewing files that changed from the base of the PR and between 28aa048 and 0843d69.

📒 Files selected for processing (20)
  • src/bio.c
  • src/cluster_legacy.c
  • src/debug.c
  • src/functions.c
  • src/io_threads.c
  • src/module.c
  • src/pubsub.c
  • src/rdma.c
  • src/server.h
  • src/valkey-cli.c
  • src/ziplist.c
  • tests/modules/basics.c
  • tests/modules/block_keyspace_notification.c
  • tests/modules/keyspace_events.c
  • tests/unit/acl.tcl
  • tests/unit/client-eviction.tcl
  • tests/unit/cluster/scripting.tcl
  • tests/unit/functions.tcl
  • tests/unit/moduleapi/timer.tcl
  • tests/unit/wait.tcl

Comment thread src/module.c
* That said, it is possible that the abort operation will successes but the operation will still continue.
* This can happened if, for example, a module implements some blocking command and does not respect the
* disconnect callback. For server-provided commands this can not happened.*/
* disconnect callback. For server-provided commands this cannot happened.*/

@coderabbitai coderabbitai Bot Aug 6, 2026 •

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

Fix the verb form in this comment.

cannot happened is incorrect. Use cannot happen.

Proposed fix
- * disconnect callback. For server-provided commands this cannot happened.*/
+ * disconnect callback. For server-provided commands this cannot happen. */
📝 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
* disconnect callback. For server-provided commands this cannot happened.*/
* disconnect callback. For server-provided commands this cannot happen. */
🤖 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/module.c` at line 6265, Update the disconnect callback comment near the
server-provided commands note to replace the incorrect phrase “cannot happened”
with the grammatically correct “cannot happen.”

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's outside of the scope for this pr which is limited to just can not -> cannot

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.

@jsoref, acknowledged. The correction is outside this pull request’s stated scope. I will not require it here.

Would you like me to open a follow-up issue for the cannot happened → cannot happen correction in src/module.c?

You are interacting with an AI system.

Comment thread src/module.c Resolved
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@coderabbitai coderabbitai Bot mentioned this pull request Aug 11, 2026

@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.

Thanks for the rebase — dropping the server.c and sentinel.c changes is most of it, but a few client-facing error strings are still in here, plus a couple of test assertions that got changed without their source string.

Still user-facing (please revert these back to can not):

  • src/functions.c — cannot read data type (returned to the client as an error in functionRestoreCommand)
  • src/module.c — Cannot execute a write command ... while the cluster is down and readonly and Cannot execute a command ... while the cluster is down (both go back to the caller as RM_Call error replies)
  • src/script.c — Cannot run script on cluster, 'no-cluster' flag is set. (addReplyError, client-visible)
  • src/valkey-cli.c — >>> New node already contains functions and cannot be added to the cluster. (CLI user output)

And the test assertions that check for those strings, which need to revert alongside the source:

  • tests/unit/cluster/scripting.tcl — the two Cannot run script on cluster matches
  • tests/unit/functions.tcl — Cannot execute a script with write flag ... and Cannot execute the command on a stale replica

Sorry for the delay in getting back to this! I expect to be more responsive going forward (fixing my personal process so I track things better 😅)

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

Copy link
Copy Markdown
Contributor

Review state

Ready for human review.
Only comments, four rare log lines (bio, debug, io_threads, rdma) and Tcl test names change. The error strings in module.c, functions.c, script.c and valkey-cli.c, and the Tcl assertions that match them, are no longer modified, which covers the last CHANGES_REQUESTED review.

Risk: Low. No behavior changes. The worst case is an operator log grep for one of the reworded thread-join or RDMA unload messages.

Open findings: none.

Backport: Not needed. Spelling cleanup in comments, log lines and test names. Not a bug fix.

Updated for 0762d83 at 2026-10-21 12:19 UTC. The bot rewrites this comment on every review.

@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.94%. Comparing base (b936001) to head (0762d83).

Files with missing lines Patch % Lines
src/bio.c 0.00% 1 Missing ⚠️
src/debug.c 0.00% 1 Missing ⚠️
src/io_threads.c 0.00% 1 Missing ⚠️
src/module.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2242      +/-   ##
============================================
+ Coverage     80.93%   80.94%   +0.01%     
============================================
  Files           196      196              
  Lines        102634   102634              
============================================
+ Hits          83068    83080      +12     
+ Misses        19566    19554      -12     
Files with missing lines Coverage Δ
src/cluster_legacy.c 89.23% <ø> (+0.28%) ⬆️
src/pubsub.c 97.78% <ø> (ø)
src/rdma.c 100.00% <ø> (ø)
src/server.h 100.00% <ø> (ø)
src/valkey-cli.c 60.23% <ø> (ø)
src/ziplist.c 73.08% <ø> (ø)
src/bio.c 81.25% <0.00%> (ø)
src/debug.c 56.61% <0.00%> (ø)
src/io_threads.c 79.48% <0.00%> (ø)
src/module.c 25.05% <0.00%> (ø)

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

@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 :)

@rainsupreme
rainsupreme merged commit 6b8dfd8 into valkey-io:unstable Oct 21, 2026
65 checks passed
@jsoref
jsoref deleted the spelling-5 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 24, 2026
- Subset of #2183

Signed-off-by: Josh Soref <[email protected]>
Backport-Source-PR: 2242
JimB123 pushed a commit that referenced this pull request Oct 26, 2026
- Subset of #2183

Signed-off-by: Josh Soref <[email protected]>
Backport-Source-PR: 2242
@valkeyrie-ops valkeyrie-ops Bot moved this from To be backported to Done in Valkey 9.2 Oct 26, 2026
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