Skip to content

Add availability-zone to the reply schema for CLUSTER SHARDS/SLOTS#3352

Merged
zuiderkwast merged 5 commits into
valkey-io:unstablefrom
enjoy-binbin:add_reply
Mar 11, 2026
Merged

Add availability-zone to the reply schema for CLUSTER SHARDS/SLOTS#3352
zuiderkwast merged 5 commits into
valkey-io:unstablefrom
enjoy-binbin:add_reply

Conversation

@enjoy-binbin

Copy link
Copy Markdown
Member

availability_zone was added to the HELLO command in #1487, and
it was missing the reply schema and the test was wrongly marked
with logreqres:skip.

availability-zone was added to CLUSTER SHARDS and CLUSTER SLOTS
commands in #3156, and it was missing the reply schema.

…t commands

`availability_zone` was added to the HELLO command in valkey-io#1487, and
it was missing the reply schema and the test was wrongly marked
with `logreqres:skip`.

`availability-zone` was added to CLUSTER SHARDS and CLUSTER SLOTS
commands in valkey-io#3156, and it was missing the reply schema.

Signed-off-by: Binbin <binloveplay1314@qq.com>
@enjoy-binbin

enjoy-binbin commented Mar 11, 2026

Copy link
Copy Markdown
Member Author

reply CI with this change: https://github.com/enjoy-binbin/valkey/actions/runs/22935935370
it is green now

Signed-off-by: Binbin <binloveplay1314@qq.com>
@codecov

codecov Bot commented Mar 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.93%. Comparing base (a7d919a) to head (3ce190d).
⚠️ Report is 5 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #3352      +/-   ##
============================================
- Coverage     75.03%   74.93%   -0.11%     
============================================
  Files           129      129              
  Lines         71724    71724              
============================================
- Hits          53821    53748      -73     
- Misses        17903    17976      +73     
Files with missing lines Coverage Δ
src/commands.def 100.00% <ø> (ø)

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

@sarthakaggarwal97

Copy link
Copy Markdown
Contributor

Hahah, I raised a similar fix #3353 5 mins after you. Thank you. I will close my PR.

Signed-off-by: Binbin <binloveplay1314@qq.com>
@enjoy-binbin

Copy link
Copy Markdown
Member Author

ohh, you are fast. After merging some PRs i looked through some merged PRs and found it.

Comment thread tests/unit/protocol.tcl Outdated

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

Nice! Lets run reply schema validator action?

@enjoy-binbin

Copy link
Copy Markdown
Member Author

Nice! Lets run reply schema validator action?

#3352 (comment)
Yes, it is green in here

@dvkashapov

Copy link
Copy Markdown
Member

My bad, I thought that was link to failing CI

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

Thank you!

I merged this feature yesterday evening and I realized afterwards that the reply schema will probably fail.

Comment thread src/commands/cluster-shards.json Outdated
Comment thread src/commands/hello.json
Comment thread src/commands/cluster-slots.json Outdated
Comment thread src/commands/cluster-slots.json Outdated
Comment thread tests/unit/protocol.tcl Outdated
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
@zuiderkwast zuiderkwast changed the title Add availability zone information to the reply shcema for the relevant commands Add availability zone information to the reply schema for the relevant commands Mar 11, 2026
@zuiderkwast

zuiderkwast commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

I started the reply-schema-validator job here: https://github.com/valkey-io/valkey/actions/runs/22951771959/job/66617979827

🟢 Pass

@zuiderkwast zuiderkwast changed the title Add availability zone information to the reply schema for the relevant commands Add availability-zone to the reply schema for CLUSTER SHARDS/SLOTS Mar 11, 2026
@zuiderkwast zuiderkwast merged commit 26522fc into valkey-io:unstable Mar 11, 2026
72 of 73 checks passed
@enjoy-binbin enjoy-binbin deleted the add_reply branch March 11, 2026 15:38
JimB123 pushed a commit that referenced this pull request Mar 19, 2026
…3352)

`availability_zone` was added to the HELLO command in #1487, and
it was missing the reply schema and the test was wrongly marked
with `logreqres:skip`.

`availability-zone` was added to CLUSTER SHARDS and CLUSTER SLOTS
commands in #3156, and it was missing the reply schema.

---------

Signed-off-by: Binbin <binloveplay1314@qq.com>
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