Skip to content

Refactor for tests associated with Create Collection#2512

Open
amorton wants to merge 9 commits into
mainfrom
ajm/create-collection-test-refactor
Open

Refactor for tests associated with Create Collection#2512
amorton wants to merge 9 commits into
mainfrom
ajm/create-collection-test-refactor

Conversation

@amorton

@amorton amorton commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Touches the tests for CreateCollectionCommandResolver and CreateCollectionOperation.

Refactor to improve test layout and coverage, without changing any of the classes under tests. So we are confident any issues are with the tests.

This PR will follow #2499 which laid the groundwork for improvements in CreateCollectionOperation. After merging this we can update the actual CreateCollectionOperation code to use the new SuprerShreddingBuilder for making statements and tests will be ready to be extended.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

SchemaHolder<CollectionLexicalDef> lexicalDef,
SchemaHolder<CollectionRerankDef> rerankDef)
implements Operation<CollectionSchemaObject> {
public class CreateCollectionOperation implements Operation<KeyspaceSchemaObject> {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved from record to class, because it should never have been a record.

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📉 Integration Test Coverage Delta vs Main Branch (dse69-it)

Metric Value
Main Branch 72.50%
This PR 72.48%
Delta 🔴 -0.02%
⚠️ Coverage decreased

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Integration Test Coverage Report (dse69-it)

Overall Project 72.48% -0.02% 🍏
Files changed 67.19% 🍏

File Coverage
CreateCollectionCommandResolver.java 96.9% 🍏
FindEmbeddingProvidersOperation.java 95.27% 🍏
CreateCollectionOperation.java 73.83% -1.85% 🍏

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📉 Integration Test Coverage Delta vs Main Branch (hcd-it)

Metric Value
Main Branch 73.84%
This PR 73.83%
Delta 🔴 -0.02%
⚠️ Coverage decreased

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Integration Test Coverage Report (hcd-it)

Overall Project 73.83% -0.02% 🍏
Files changed 67.19% 🍏

File Coverage
CreateCollectionCommandResolver.java 96.9% 🍏
FindEmbeddingProvidersOperation.java 95.27% 🍏
CreateCollectionOperation.java 76.83% -1.85% 🍏

amorton added 4 commits June 17, 2026 16:17
for the resolver and the operation

getting it ready for changes to
CreateCollectionOperation
 @testprofile(NoGlobalResourcesTestProfile.Impl.class)
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📈 Unit Test Coverage Delta vs Main Branch

Metric Value
Main Branch 52.50%
This PR 52.62%
Delta 🟢 +0.12%
✅ Coverage improved!

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Unit Test Coverage Report

Overall Project 52.62% 🍏
Files changed 100% 🍏

File Coverage
CreateCollectionOperation.java 70.04% 🍏
CreateCollectionCommandResolver.java 0% 🍏
FindEmbeddingProvidersOperation.java 0% 🍏

@amorton amorton marked this pull request as ready for review June 18, 2026 02:14
@amorton amorton requested a review from a team as a code owner June 18, 2026 02:14
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.

1 participant