Skip to content

Run commands.def validation in an independent CI job - #4753

Merged
sarthakaggarwal97 merged 1 commit into
valkey-io:unstablefrom
sarthakaggarwal97:ci-validate-commands-def
Sep 23, 2026
Merged

sarthakaggarwal97 merged 1 commit into
valkey-io:unstablefrom
sarthakaggarwal97:ci-validate-commands-def

Conversation

@sarthakaggarwal97

@sarthakaggarwal97 sarthakaggarwal97 commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

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.

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>
@coderabbitai

coderabbitai Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack β†’

Navigate logical layers of code changes, visualize relationships, and explore their 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: 629e84f9-d298-41a7-b04f-6e4a714b09fb

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 15aa872 and e58bef0.

πŸ“’ Files selected for processing (1)
  • .github/workflows/ci.yml

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


πŸ“ Walkthrough

Walkthrough

The CI workflow adds a dedicated job that regenerates src/commands.def and checks for differences. It removes the equivalent validation step from test-ubuntu-latest.

Changes

Command definition validation

Layer / File(s) Summary
Dedicated commands definition validation
.github/workflows/ci.yml
The workflow adds validate-commands-def, verifies that src/commands.def is tracked, regenerates it, and fails when the tracked file changes. The previous validation step is removed from test-ubuntu-latest.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

πŸš₯ 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 and concisely describes the main change: moving commands.def validation into an independent CI job.
Description check βœ… Passed The description explains the motivation, prior failure cases, and the new independent validate-commands-def job. It is directly related to the changeset.

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.

@sarthakaggarwal97
sarthakaggarwal97 marked this pull request as ready for review September 21, 2026 23:41
@codecov

codecov Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 80.68%. Comparing base (15aa872) to head (e58bef0).
⚠️ Report is 1 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #4753      +/-   ##
============================================
+ Coverage     80.60%   80.68%   +0.07%     
============================================
  Files           192      192              
  Lines        100870   100870              
============================================
+ Hits          81308    81383      +75     
+ Misses        19562    19487      -75     

see 23 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 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.

Makes sense

@sarthakaggarwal97
sarthakaggarwal97 merged commit dcc66ef into valkey-io:unstable Sep 23, 2026
67 checks passed
@github-project-automation github-project-automation Bot moved this to To be backported in Valkey 9.2 Sep 23, 2026
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

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants