Skip to content

Move EnableVectorSetPreview option over from main#1680

Merged
kevin-montrose merged 2 commits into
devfrom
users/kmontrose/vectorSetPreviewOptions
Apr 8, 2026
Merged

Move EnableVectorSetPreview option over from main#1680
kevin-montrose merged 2 commits into
devfrom
users/kmontrose/vectorSetPreviewOptions

Conversation

@kevin-montrose

@kevin-montrose kevin-montrose commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Got missed in the initial lift-and-shift of Vector Set functionality.

Pulls over --enable-vector-set-preview / EnableVectorSetPreview and tests around the same.

Copilot AI review requested due to automatic review settings April 8, 2026 19:23

Copilot AI 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.

Pull request overview

This PR reintroduces the EnableVectorSetPreview configuration option (and related validation) into the host configuration layer, along with tests to ensure the CLI/JSON wiring and minimum page-size constraint behave as expected.

Changes:

  • Add --enable-vector-set-preview / EnableVectorSetPreview to host options and map it into GarnetServerOptions.
  • Add a new RequiresMinimumMemory validation attribute to enforce a minimum PageSize when the preview feature is enabled.
  • Add defaults.conf entry and NUnit coverage for parsing + validation scenarios.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
test/Garnet.test/GarnetServerConfigTests.cs Adds tests for EnableVectorSetPreview parsing and minimum page size enforcement.
libs/host/defaults.conf Adds default EnableVectorSetPreview: false entry.
libs/host/Configuration/OptionsValidators.cs Introduces RequiresMinimumMemory validator for dependent-size constraints.
libs/host/Configuration/Options.cs Adds the option definition and maps it into GarnetServerOptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread libs/host/Configuration/OptionsValidators.cs
Comment thread libs/host/Configuration/OptionsValidators.cs Outdated
Comment thread libs/host/Configuration/Options.cs
@kevin-montrose kevin-montrose merged commit f0cf816 into dev Apr 8, 2026
22 of 23 checks passed
@kevin-montrose kevin-montrose deleted the users/kmontrose/vectorSetPreviewOptions branch April 8, 2026 20:41
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants