Skip to content

Regenerate commands.def for the path hash command tips - #4709

Merged
sarthakaggarwal97 merged 1 commit into
valkey-io:unstablefrom
madolson:fix-commands-def-pathhash-tips
Sep 16, 2026
Merged

sarthakaggarwal97 merged 1 commit into
valkey-io:unstablefrom
madolson:fix-commands-def-pathhash-tips

Conversation

@madolson

@madolson madolson commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

PHLONGEST, PHPREFIXES and PHSCAN declare NONDETERMINISTIC_OUTPUT_ORDER in their json, but the commands.def committed in a84b2f5 (#4506) has their tips as NULL, so those three commands report no tips in COMMAND INFO and COMMAND DOCS. This is the output of make commands.def with nothing else changed. The validate commands.def up to date step is currently failing on unstable because of it.

AI generated details

src/commands/phlongest.json:11, phprefixes.json:11 and phscan.json:11 all carry:

"command_tips": ["NONDETERMINISTIC_OUTPUT_ORDER"],

while src/commands.def:5449 and the other two sites have:

/* PHLONGEST tips */
#define PHLONGEST_Tips NULL

and pass a tip count of 0 in the command table entry. The other pathhash commands declare no tips and are unaffected.

The a84b2f5 CI run was cancelled by the next push, so this landed unnoticed. It surfaced on the following run: https://github.com/valkey-io/valkey/actions/runs/35109002068/job/104838099246

X test-ubuntu-latest
  X validate commands.def up to date

Testing

The CI check on stock unstable, which is what this diff is:

$ touch src/commands/ping.json && make commands.def && git diff --numstat
12	6	src/commands.def

This was generated by AI but verified, with love, by a human.

PHLONGEST, PHPREFIXES and PHSCAN declare NONDETERMINISTIC_OUTPUT_ORDER in their
json but the commands.def committed in a84b2f5 has their tips as NULL, so
COMMAND INFO and COMMAND DOCS report no tips for them.

Output of `make commands.def`; the CI check for this is failing on unstable.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview 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: 4db7d715-74b6-49f6-a1ed-09a0e844a320

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 72049a3 and 4ae67fa.

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

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


πŸ“ Walkthrough

Walkthrough

The command metadata now marks PHLONGEST, PHPREFIXES, and PHSCAN with the nondeterministic_output_order tip. Their command-table entries now reference one tip each.

Changes

Command tip metadata

Layer / File(s) Summary
Declare and register output-order tips
src/commands.def
The three commands now define one-entry tips arrays containing nondeterministic_output_order. Their command-table entries now use a tip count of 1.

Priority: ⬇️ Low

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

Suggested reviewers: enjoy-binbin

Merge Risk: βšͺ Minimal Β· up to 4ae67

This change only exposes the intended output-order guidance for three commands and presents no remaining merge-blocking risk.

πŸš₯ 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 describes regenerating commands.def to update path hash command tips, which matches the main change.
Description check βœ… Passed The description accurately explains the missing tips, affected commands, generated-file update, and CI validation failure.

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 16, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 80.62%. Comparing base (72049a3) to head (4ae67fa).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #4709      +/-   ##
============================================
- Coverage     80.63%   80.62%   -0.01%     
============================================
  Files           192      192              
  Lines        100803   100803              
============================================
- Hits          81284    81276       -8     
- Misses        19519    19527       +8     
Files with missing lines Coverage Ξ”
src/commands.def 100.00% <ΓΈ> (ΓΈ)

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

Nice! Looks safe and good to me!

@sarthakaggarwal97
sarthakaggarwal97 merged commit bf80312 into valkey-io:unstable Sep 16, 2026
65 checks passed
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
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.

2 participants