Skip to content

Regenerate commands.def for DELEX - #4747

Merged
sarthakaggarwal97 merged 1 commit into
valkey-io:unstablefrom
Baraa-Hasheesh:commands-def
Sep 21, 2026
Merged

sarthakaggarwal97 merged 1 commit into
valkey-io:unstablefrom
Baraa-Hasheesh:commands-def

Conversation

@Baraa-Hasheesh

Copy link
Copy Markdown
Contributor

Fix failures when validating commands.def

commands.def is out of sync after #4607 which causes a failures when commands.def state is validated

Signed-off-by: Bara' Hasheesh <bara.hasheesh@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Understand this PR’s impact

Explore downstream dependencies and potential security impact with Blast Radius.

View blast radius β†’

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: d5f767ff-edab-4c69-bdbe-6c8a0b92c65a

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 7945915 and 28a6fb0.

πŸ“’ Files selected for processing (1)
  • src/commands.def

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


πŸ“ Walkthrough

Walkthrough

The DELEX command definition now documents O(1) complexity and version 9.2.0. Its handler, flags, ACL categories, key specifications, and arguments remain unchanged.

Changes

DELEX command metadata

Layer / File(s) Summary
Update DELEX command metadata
src/commands.def
The documented complexity changes from O(N) to O(1). The since-version changes from 9.1.2 to 9.2.0.

Priority: ⬇️ Low

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

Suggested reviewers: enjoy-binbin

πŸš₯ Pre-merge checks | βœ… 5
βœ… Passed checks (5 passed)
Check name Status Explanation
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.
Title check βœ… Passed The title clearly identifies the main change: regenerating commands.def for the DELEX command.
Description check βœ… Passed The description explains that commands.def was out of sync and caused validation failures. This matches the changeset and PR objective.

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.

@codecov

codecov Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 80.68%. Comparing base (7945915) to head (28a6fb0).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #4747      +/-   ##
============================================
- Coverage     80.84%   80.68%   -0.16%     
============================================
  Files           192      192              
  Lines        100870   100870              
============================================
- Hits          81545    81385     -160     
- Misses        19325    19485     +160     
Files with missing lines Coverage Ξ”
src/commands.def 100.00% <ΓΈ> (ΓΈ)

... and 25 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 sarthakaggarwal97 changed the title correct commands.def Regenerate commands.def for DELEX Sep 21, 2026

@sarthakaggarwal97 sarthakaggarwal97 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!

@sarthakaggarwal97
sarthakaggarwal97 merged commit eae50c2 into valkey-io:unstable Sep 21, 2026
65 checks passed
@sarthakaggarwal97 sarthakaggarwal97 moved this to To be backported in Valkey 9.2 Sep 21, 2026
@madolson

Copy link
Copy Markdown
Member

@sarthakaggarwal97 How did this happen twice recently? Isn't there like a build step that prevents us from missing this.

@sarthakaggarwal97

Copy link
Copy Markdown
Contributor

Fair point, let me check on this

@ranshid

ranshid commented Sep 22, 2026

Copy link
Copy Markdown
Member

Is there a reason we decided to include the command.def as part of the source and not have it generated as part of the build?

valkeyrie-ops Bot pushed a commit that referenced this pull request Sep 22, 2026
Update the generated command table to match delex.json. DELEX has O(1)
complexity and was introduced in Valkey 9.2.0.

The generated file was left stale when DELEX was added in #4607.

Signed-off-by: Bara' Hasheesh <bara.hasheesh@gmail.com>
Backport-Source-PR: 4747
JimB123 pushed a commit that referenced this pull request Sep 22, 2026
Update the generated command table to match delex.json. DELEX has O(1)
complexity and was introduced in Valkey 9.2.0.

The generated file was left stale when DELEX was added in #4607.

Signed-off-by: Bara' Hasheesh <bara.hasheesh@gmail.com>
Backport-Source-PR: 4747
@valkeyrie-ops valkeyrie-ops Bot moved this from To be backported to Done in Valkey 9.2 Sep 22, 2026
sarthakaggarwal97 added a commit that referenced this pull request Sep 23, 2026
Pointed out by @madolson in #4747 

#### Motivation

The existing validation still works, but it runs near the end of the
large `test-ubuntu-latest` job. In both recent cases, the stale
`commands.def` was detected only after the originating change had
merged.

- Path hash was merged in #4506 with a stale `commands.def`. The next
successful CI execution reached the validation step and [failed on
`commands.def`](https://github.com/valkey-io/valkey/actions/runs/35109002068/job/104838099246),
resulting in #4709.
- DELEX was merged in #4607 with a stale `commands.def`. A later,
unrelated PR reached the validation step and [failed on
`commands.def`](https://github.com/valkey-io/valkey/actions/runs/35612624270/job/106375287422),
resulting in #4747.

Therefore, the validation was still functioning, but it did not produce
an isolated result on the originating PR before merge.

This change creates a dedicated `validate-commands-def` job that runs
independently and fails directly on the PR introducing stale generated
output.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
valkeyrie-ops Bot pushed a commit that referenced this pull request Sep 24, 2026
Pointed out by @madolson in #4747

#### Motivation

The existing validation still works, but it runs near the end of the
large `test-ubuntu-latest` job. In both recent cases, the stale
`commands.def` was detected only after the originating change had
merged.

- Path hash was merged in #4506 with a stale `commands.def`. The next
successful CI execution reached the validation step and [failed on
`commands.def`](https://github.com/valkey-io/valkey/actions/runs/35109002068/job/104838099246),
resulting in #4709.
- DELEX was merged in #4607 with a stale `commands.def`. A later,
unrelated PR reached the validation step and [failed on
`commands.def`](https://github.com/valkey-io/valkey/actions/runs/35612624270/job/106375287422),
resulting in #4747.

Therefore, the validation was still functioning, but it did not produce
an isolated result on the originating PR before merge.

This change creates a dedicated `validate-commands-def` job that runs
independently and fails directly on the PR introducing stale generated
output.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Backport-Source-PR: 4753
JimB123 pushed a commit that referenced this pull request Sep 28, 2026
Pointed out by @madolson in #4747

#### Motivation

The existing validation still works, but it runs near the end of the
large `test-ubuntu-latest` job. In both recent cases, the stale
`commands.def` was detected only after the originating change had
merged.

- Path hash was merged in #4506 with a stale `commands.def`. The next
successful CI execution reached the validation step and [failed on
`commands.def`](https://github.com/valkey-io/valkey/actions/runs/35109002068/job/104838099246),
resulting in #4709.
- DELEX was merged in #4607 with a stale `commands.def`. A later,
unrelated PR reached the validation step and [failed on
`commands.def`](https://github.com/valkey-io/valkey/actions/runs/35612624270/job/106375287422),
resulting in #4747.

Therefore, the validation was still functioning, but it did not produce
an isolated result on the originating PR before merge.

This change creates a dedicated `validate-commands-def` job that runs
independently and fails directly on the PR introducing stale generated
output.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Backport-Source-PR: 4753
@Baraa-Hasheesh
Baraa-Hasheesh deleted the commands-def branch October 30, 2026 14:38
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.

4 participants