Skip to content

Include module version in module load log message - #4566

Merged
hpatro merged 2 commits into
valkey-io:unstablefrom
enjoy-binbin:log
Sep 1, 2026
Merged

hpatro merged 2 commits into
valkey-io:unstablefrom
enjoy-binbin:log

Conversation

@enjoy-binbin

Copy link
Copy Markdown
Member

The module load log lines only reported the module name (and the path
it was loaded from). Also log the module version, so it is easy to tell
which version of a module was loaded.

The module load log lines only reported the module name (and the path
it was loaded from). Also log the module version, so it is easy to tell
which version of a module was loaded.

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

coderabbitai Bot commented Aug 31, 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: 26141598-ae30-40fb-a804-9d8348760cd7

📥 Commits

Reviewing files that changed from the base of the PR and between d849e18 and a755329.

📒 Files selected for processing (1)
  • src/module.c
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/module.c

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

Module load success logs now place the module version after the load status for static and dynamic modules. The logged values and loading behavior remain unchanged.

Changes

Module Loading

Layer / File(s) Summary
Versioned module load logs
src/module.c
Static and dynamic module load success messages now place the version after the success or source text. Existing log arguments remain unchanged.

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

Merge Risk: ⚪ Minimal · up to a7553

This localized change only adds the module version to load log messages; no actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: module load log messages now include the module version.
Description check ✅ Passed The description accurately explains that module load logs now include the module version, name, and path context.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 too large.)


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.

Comment thread src/module.c Resolved
@codecov

codecov Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 78.66%. Comparing base (11a74cf) to head (a755329).

Files with missing lines Patch % Lines
src/module.c 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #4566      +/-   ##
============================================
- Coverage     78.79%   78.66%   -0.14%     
============================================
  Files           171      171              
  Lines         89862    89862              
============================================
- Hits          70811    70687     -124     
- Misses        19051    19175     +124     
Files with missing lines Coverage Δ
src/module.c 25.36% <50.00%> (ø)

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

Signed-off-by: Binbin <[email protected]>

@rjd15372 rjd15372 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, although that version is not human readable in some cases.

For instance, the ldap module uses a version scheme that encodes the semver version number in the highest 3 bytes, which makes the logged version number to show as a very big number.
It might be worth in the future to have a module API function that returns the module version in a human readable format to be used in logging and in other places.

@hpatro
hpatro merged commit 7507a93 into valkey-io:unstable Sep 1, 2026
63 checks passed
@enjoy-binbin
enjoy-binbin deleted the log branch September 1, 2026 13:42
zuiderkwast pushed a commit to tartelettie/valkey that referenced this pull request Sep 15, 2026
The module load log lines only reported the module name (and the path
it was loaded from). Also log the module version, so it is easy to tell
which version of a module was loaded.

---------

Signed-off-by: Binbin <[email protected]>
sarthakaggarwal97 added a commit that referenced this pull request Sep 16, 2026
Move the sorted set B+ tree note (#4359) to Behavior Changes: OBJECT
ENCODING now reports btree instead of skiplist, which is a client-visible
output change and matters more for upgrade decisions than the speedup.

Drop the notes for #3366 and #3791, neither of which is user-facing.
#3366 replaces dict with a wrapper around hashtable; scoping the
configured hash seed to data hashtables keeps hash-seed doing exactly
what valkey.conf documents it to do, and stops the seed leaking into
internal tables already populated during startup. #3791 makes the ranged
memory-release helper a no-op on non-jemalloc builds to match existing
behavior.

Add two changes that triage left out:
- #3533 fixed an undersized madvise range in dismissHashtable, so only
  about an eighth of the bucket array was hinted after fork. The fix
  cuts real copy-on-write overhead during background saves.
- #4566 logs the module version on load, which is operator-visible.

Signed-off-by: Sarthak Aggarwal <[email protected]>
(cherry picked from commit 097567a)
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