[Cosmos] run cosmos emulator tests during PRs #2207
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds some logic to the
azure_data_cosmos
CI pipeline to run tests against the Cosmos emulator. This is largely based on similar logic in the Go SDK.To implement this, I added an
AdditionalStages
parameter toarchetype-sdk-client.yml
, again mirroring what I saw in the Go SDK, which places the steps after the default pack/test/analyzer steps but BEFORE any release steps.We install the Windows emulator primarily because that's the logic that already exists in
eng/common
. There is a Linux emulator, that runs as a Docker image, but I wanted to be consistent here.In addition, I tweaked
recording::start
to activate tracing even when test proxy wasn't in use. This allows us to useRUST_LOG
to turn tracing on for live tests.