Skip to content

Comments

integration tests: vnext cosmosdb emulator#4170

Open
geoberle wants to merge 2 commits intomainfrom
cosmos-emulator-vnext
Open

integration tests: vnext cosmosdb emulator#4170
geoberle wants to merge 2 commits intomainfrom
cosmos-emulator-vnext

Conversation

@geoberle
Copy link
Collaborator

@geoberle geoberle commented Feb 20, 2026

What

the next generation of cosmosdb is supposed to be more efficient as the current one. local tests with this generation showed lower CPU usage and also does not require partition configuration.

what vnext can't do: query it's own containers, so we rely on the conflict error to notice if container creation failed because it exists already

in testing: CI will tell us if this helps our intermittent issues :(

Why

Special notes for your reviewer

the next generation of cosmosdb is supposed to be more efficient as the current one.
local tests with this generation showed lower CPU usage and also does not require
partition configuration.

Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
@openshift-ci openshift-ci bot requested review from janboll and raelga February 20, 2026 19:56
@openshift-ci
Copy link

openshift-ci bot commented Feb 20, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: geoberle

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
@geoberle geoberle force-pushed the cosmos-emulator-vnext branch from 9ad6aa4 to 926b275 Compare February 21, 2026 08:15
}

allContainers := sets.NewString()
allContainersQuery := cosmosDatabaseClient.NewQueryContainersPager("select * from containers c", nil)
Copy link
Collaborator Author

@geoberle geoberle Feb 21, 2026

Choose a reason for hiding this comment

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

NewQueryContainersPager is not supported in vnext
we can rely on cosmosDatabaseClient.CreateContainer to give us a StatusConflict in case the container exists already

@geoberle
Copy link
Collaborator Author

/test integration

19 similar comments
@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

@geoberle
Copy link
Collaborator Author

/test integration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant