Skip to content
This repository was archived by the owner on Oct 9, 2026. It is now read-only.

ChromaDotNet.Testcontainers 0.1.7 in the tests, and auto-generated keys only for GUIDs - #16

Merged
Laurianti merged 2 commits into
mainfrom
testcontainers-0.1.7
Oct 8, 2026
Merged

Laurianti merged 2 commits into
mainfrom
testcontainers-0.1.7

Conversation

@Laurianti

Copy link
Copy Markdown
Member

Two changes, one commit each:

  • Tests: the conformance tests start Chroma with ChromaDotNet.Testcontainers 0.1.7, from 0.1.3.
  • Keys: auto-generation of keys is supported only for GUIDs, as in Chroma: add the MEVD provider CommunityToolkit/AI#58: a string key with IsAutoGenerated throws a NotSupportedException when the collection is built. The source of the provider stays the same as in that pull request, but for the namespace.

No change of version: main is 0.4.3.

Tested: unit tests, conformance tests against Chroma 1.5.0, 1.5.9 and the latest release, and the NativeAOT application published and run against Chroma 1.5.9.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 07:51
@Laurianti
Laurianti requested a review from a team as a code owner October 8, 2026 07:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new key-validation behavior lacks the required unit regression test.

1 open finding
What changed in this PR

Restricts automatic key generation to Guid keys and updates the Chroma test-container dependency.

Changes:

  • Rejects auto-generated non-Guid keys during model construction.
  • Updates ChromaDotNet.Testcontainers from 0.1.3 to 0.1.7.
File Description
src/​ChromaDB.VectorData/​ChromaModelBuilder.cs Adds key-generation validation.
Directory.Packages.props Updates the test-container dependency.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

}

// String and Guid keys are supported by the Chroma provider, but we support auto-generation of keys only for GUIDs
if (keyProperty.IsAutoGenerated && keyProperty.Type != typeof(Guid))
@Laurianti
Laurianti merged commit ca47700 into main Oct 8, 2026
12 checks passed
@Laurianti
Laurianti deleted the testcontainers-0.1.7 branch October 8, 2026 08:06
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