Repository navigation
Regenerate commands.def for DELEX - #4747
Conversation
Signed-off-by: Bara' Hasheesh <bara.hasheesh@gmail.com>
|
Understand this PRβs impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: π Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. π WalkthroughWalkthroughThe ChangesDELEX command metadata
Priority: β¬οΈ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: π₯ Pre-merge checks | β 5β Passed checks (5 passed)
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. Comment |
Codecov Reportβ
All modified and coverable lines are covered by tests. 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
π New features to boost your workflow:
|
|
@sarthakaggarwal97 How did this happen twice recently? Isn't there like a build step that prevents us from missing this. |
|
Fair point, let me check on this |
|
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? |
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
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
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>
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
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
Fix failures when validating
commands.defcommands.defis out of sync after #4607 which causes a failures whencommands.defstate is validated