-
Notifications
You must be signed in to change notification settings - Fork 66
Add Linux workflow for testing with Cosmos DB emulator docker container (current and vnext) #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: philnach <19275540+philnach@users.noreply.github.com>
…nectivity checks Co-authored-by: philnach <19275540+philnach@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot , where do the tests target the emulator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good and verified works by running the action.
|
@copilot, the vnext Cosmos DB emulator is in preview see: https://learn.microsoft.com/en-us/azure/cosmos-db/emulator-linux. Can you update the PR to also run against the vnet emulator, but don't fail if the tests don't past? |
The tests target the emulator through environment variables:
This follows the same pattern as the existing Windows workflow (
Updated the workflow to test against both emulator versions using a matrix strategy:
The vnext tests use Commit: 1718e27 |
Co-authored-by: philnach <19275540+philnach@users.noreply.github.com>
This PR implements a new GitHub Actions workflow to run Cosmos DB unit tests on Linux using the official Cosmos DB emulator docker containers, enabling Linux developers to perform local testing and development with both current and preview emulator versions.
Changes Made
New Workflow:
.github/workflows/linux-cosmos-emulator-test.ymlKey Features:
ubuntu-latestmcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latestmcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-previewCosmos_EndpointandCosmos_Keyenvironment variablesWorkflow Triggers:
workflow_dispatchExtensions/Cosmos/**)Test Execution:
./Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension.UnitTests/Benefits
Testing
The workflow complements the existing
cosmos_db_emulator.yml(Windows) workflow and provides the same testing capabilities for Linux environments with additional coverage for preview emulator versions.Fixes #196.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.