Skip to content

spelling: otherwise, - #2248

Merged
madolson merged 2 commits into
valkey-io:unstablefrom
jsoref:spelling-12
Aug 12, 2026
Merged

madolson merged 2 commits into
valkey-io:unstablefrom
jsoref:spelling-12

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.

Honestly ambivalent about this comma business 😆
Technically correct I suppose! Please rebase so it can be merged. If not updated in ~2 weeks I'll close this PR to help clean up the merge queue. It can always be re-opened!

Signed-off-by: Josh Soref <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 645bb859-7d10-4709-8683-a63441ddd225

📥 Commits

Reviewing files that changed from the base of the PR and between 96dcd5e and db31c57.

📒 Files selected for processing (22)
  • src/ae.c
  • src/aof.c
  • src/cluster.c
  • src/cluster_legacy.c
  • src/config.c
  • src/db.c
  • src/dict.h
  • src/functions.c
  • src/geo.c
  • src/module.c
  • src/modules/lua/engine_lua.c
  • src/networking.c
  • src/object.c
  • src/rdb.c
  • src/replication.c
  • src/server.c
  • src/sort.c
  • src/t_stream.c
  • src/t_zset.c
  • src/valkey-check-rdb.c
  • src/vset.c
  • valkey.conf
🚧 Files skipped from review as they are similar to previous changes (18)
  • src/ae.c
  • src/geo.c
  • src/aof.c
  • src/t_stream.c
  • src/server.c
  • src/rdb.c
  • src/valkey-check-rdb.c
  • src/config.c
  • src/object.c
  • src/cluster.c
  • src/sort.c
  • src/functions.c
  • src/db.c
  • src/networking.c
  • valkey.conf
  • src/cluster_legacy.c
  • src/replication.c
  • src/module.c

📝 Walkthrough

Walkthrough

The pull request corrects grammar, punctuation, spacing, and wording in documentation comments, help text, test comments, utility comments, and configuration comments. It does not change executable behavior, public declarations, configuration values, or APIs.

Changes

Documentation corrections

Layer / File(s) Summary
Core source comment corrections
src/*.c, src/*.h
Comments were corrected for grammar, punctuation, spacing, and return-value wording.
Subsystem and module comment corrections
src/module.c, src/modules/*, src/networking.c, src/replication.c, src/sentinel.c, src/valkey-cli.c
Subsystem comments and command help text were corrected without changing behavior or APIs.
Supporting documentation
tests/*, utils/redis-sha1.rb, valkey.conf
Test, utility, and configuration comments were revised. Configuration values and test logic remain unchanged.

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

Possibly related PRs

Suggested reviewers: rainsupreme, fusl, zuiderkwast

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title identifies the documentation updates for “otherwise,” which are a real part of the changeset.
Description check ✅ Passed The description states that this pull request applies a subset of PR #2183, matching the documented changes.
Docstring Coverage ✅ Passed Docstring coverage is 87.34% which is sufficient. The required threshold is 80.00%.
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.

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

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

🤖 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/adlist.c`:
- Line 43: Complete the return description for listCreate by explicitly stating
that, on success, it returns a pointer to the new list; retain the existing
NULL-on-error behavior.

In `@src/evict.c`:
- Around line 504-505: Update the comment near the ghost-key handling logic to
replace “If the key exists, is our pick.” with “If the key exists, it is our
pick.”, leaving the surrounding explanation unchanged.

In `@src/sds.c`:
- Around line 358-360: Update the comment near the manual string reallocation
logic to remove the extra “to,” so the sentence reads “letting the allocator do
the copy only if really needed.”

In `@src/sentinel.c`:
- Line 910: Correct the grammar in the edited comment near the script-removal
logging description by changing “did not terminated” to “did not terminate” or
“was not terminated,” without modifying the surrounding code.

In `@src/server.c`:
- Around line 1320-1321: Update the comment near the DB-saving guidance to
replace the incomplete “rehashing is bad as will cause” phrase with
grammatically correct wording, preserving the existing explanation about
copy-on-write memory pages.
- Line 3351: In the function documentation comment near the success return
description, change “the function return C_OK” to “the function returns C_OK”
without modifying the surrounding text or implementation.

In `@src/sort.c`:
- Around line 83-85: Update the comment describing the substitution object in
getDecodedObject to use “which we'll decrement later” instead of “that we'll
decrement later,” without changing the surrounding logic or wording.

In `@src/t_hash.c`:
- Around line 1788-1789: Update the explanatory comment near the HGETALL
handling to replace “to use a flat array makes more sense” with “using a flat
array makes more sense,” preserving the rest of the comment unchanged.

In `@src/t_set.c`:
- Around line 1478-1480: Update the comment near the dstset encoding
initialization to use the gerund form “when initializing” instead of “when
initialize,” without changing the surrounding meaning.

In `@src/t_string.c`:
- Line 1002: Update the comment near the LCS backtracking logic to clarify that
the direction is chosen by comparing the two possible predecessor LCS values,
rather than referring to an incomplete “largest LCS between” phrase. Preserve
the surrounding algorithm and make the description explicitly identify both
predecessor directions.

In `@utils/redis-sha1.rb`:
- Line 9: Update the comment near the unsorted-elements explanation in
redis-sha1.rb by replacing “equal dataset” with “the same dataset,” preserving
the rest of the wording.
🪄 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: f211f127-f000-4c28-b5cc-3513d6988ff6

📥 Commits

Reviewing files that changed from the base of the PR and between 114e415 and 96dcd5e.

📒 Files selected for processing (47)
  • src/acl.c
  • src/adlist.c
  • src/ae.c
  • src/ae_epoll.c
  • src/aof.c
  • src/bitops.c
  • src/cluster.c
  • src/cluster_legacy.c
  • src/config.c
  • src/db.c
  • src/evict.c
  • src/expire.c
  • src/functions.c
  • src/geo.c
  • src/hyperloglog.c
  • src/listpack.c
  • src/lzf.h
  • src/module.c
  • src/modules/hellotype.c
  • src/modules/helloworld.c
  • src/networking.c
  • src/object.c
  • src/rax.c
  • src/rdb.c
  • src/replication.c
  • src/scripting_engine.c
  • src/sds.c
  • src/sentinel.c
  • src/server.c
  • src/sort.c
  • src/syncio.c
  • src/t_hash.c
  • src/t_list.c
  • src/t_set.c
  • src/t_stream.c
  • src/t_string.c
  • src/t_zset.c
  • src/timeout.c
  • src/tracking.c
  • src/valkey-check-rdb.c
  • src/valkey-cli.c
  • src/ziplist.c
  • tests/support/test.tcl
  • tests/unit/maxmemory.tcl
  • tests/unit/memefficiency.tcl
  • utils/redis-sha1.rb
  • valkey.conf

Comment thread src/adlist.c Resolved
Comment thread src/evict.c Resolved
Comment thread src/sds.c Resolved
Comment thread src/sentinel.c Resolved
Comment thread src/server.c Resolved
Comment thread src/sort.c Resolved
Comment thread src/t_hash.c Resolved
Comment thread src/t_set.c Resolved
Comment thread src/t_string.c Resolved
Comment thread utils/redis-sha1.rb Resolved
Resolve the conflict caused by upstream drift since this PR was opened:

- src/t_zset.c: the skiplist was replaced by a B+ tree (valkey-io#4206, valkey-io#4359), so
  zslUpdateScore and its "Otherwise the skiplist is modified by removing
  and re-adding a new element" comment no longer exist. Drop that hunk.
  The other two t_zset.c hunks (zsetRank and addZpopInitialReply) still
  apply unchanged.

Additionally fix seven sentence-initial "Otherwise" sites added upstream
after this PR was opened, so the sweep is complete against unstable:

- src/cluster_legacy.c, src/config.c, src/dict.h, src/functions.c,
  src/modules/lua/engine_lua.c, src/replication.c, src/vset.c

Verified: builds clean, clang-format-18 reports no diff across the 45
changed src/ files, server starts, ZADD/ZRANGE/ZPOPMIN/ZRANK behave
normally. Every edit lands inside a comment except the valkey-cli --help
text. Zero sentence-initial "Otherwise" without a comma remain.

Signed-off-by: Madelyn Olson <[email protected]>
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.47%. Comparing base (94d221c) to head (db31c57).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2248      +/-   ##
============================================
- Coverage     78.50%   78.47%   -0.04%     
============================================
  Files           166      166              
  Lines         88285    88285              
============================================
- Hits          69312    69281      -31     
- Misses        18973    19004      +31     
Files with missing lines Coverage Δ
src/acl.c 92.66% <ø> (ø)
src/adlist.c 80.00% <ø> (+0.52%) ⬆️
src/ae.c 82.42% <ø> (ø)
src/ae_epoll.c 84.84% <ø> (ø)
src/aof.c 80.40% <ø> (ø)
src/bitops.c 96.22% <ø> (+0.14%) ⬆️
src/cluster.c 92.44% <ø> (-0.24%) ⬇️
src/cluster_legacy.c 88.36% <ø> (+0.10%) ⬆️
src/config.c 79.90% <ø> (ø)
src/db.c 95.01% <ø> (ø)
... and 31 more

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

@madolson

madolson commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

The CodeRabbit notes are out of scope and I'm resolving them.

@madolson
madolson merged commit cc45d06 into valkey-io:unstable Aug 12, 2026
65 of 66 checks passed
@jsoref
jsoref deleted the spelling-12 branch August 12, 2026 00:08
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.

4 participants