.NET: Improve Cosmos DB Emulator startup reliability - #3932
Merged
westey (westey-m) merged 5 commits intoAug 31, 2026
Conversation
Theo van Kraay (TheovanKraay)
had a problem deploying
to
integration
February 13, 2026 19:46 — with
GitHub Actions
Error
Theo van Kraay (TheovanKraay)
temporarily deployed
to
integration
February 13, 2026 19:46 — with
GitHub Actions
Inactive
Copilot started reviewing on behalf of
Theo van Kraay (TheovanKraay)
February 13, 2026 19:46
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the reliability of Cosmos DB Emulator startup in GitHub Actions CI/CD workflows by implementing retry logic, extended timeouts, and better diagnostics. The changes address intermittent failures when starting the emulator during automated testing.
Changes:
- Added comprehensive retry logic with up to 3 attempts and cleanup between retries
- Increased timeout from 4 minutes to 10 minutes per attempt
- Added detailed status monitoring and diagnostic logging
- Included a trivial comment change to the C# file to trigger CosmosDB emulator testing
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| dotnet/src/Microsoft.Agents.AI.CosmosNoSql/CosmosChatHistoryProvider.cs | Added comment to trigger CI/CD CosmosDB emulator testing |
| .github/workflows/dotnet-build-and-test.yml | Enhanced Cosmos DB Emulator startup with retry logic, extended timeout, cleanup procedures, and diagnostic logging |
Theo van Kraay (TheovanKraay)
temporarily deployed
to
integration
February 13, 2026 19:56 — with
GitHub Actions
Inactive
Theo van Kraay (TheovanKraay)
temporarily deployed
to
integration
February 13, 2026 19:56 — with
GitHub Actions
Inactive
- Updated workflow structure to match new dotnet-build/dotnet-test split - Integrated enhanced emulator startup with 600s timeout and 3 retries - Updated environment variable to COSMOSDB_EMULATOR_AVAILABLE - Preserved all reliability improvements from original PR
# Conflicts: # .github/workflows/dotnet-build-and-test.yml
Theo van Kraay (TheovanKraay)
temporarily deployed
to
integration
June 11, 2026 20:12 — with
GitHub Actions
Inactive
Theo van Kraay (TheovanKraay)
temporarily deployed
to
integration
June 11, 2026 20:12 — with
GitHub Actions
Inactive
westey (westey-m)
temporarily deployed
to
github-app-auth
August 31, 2026 14:15 — with
GitHub Actions
Inactive
westey (westey-m)
temporarily deployed
to
integration
August 31, 2026 14:16 — with
GitHub Actions
Inactive
westey (westey-m)
temporarily deployed
to
integration
August 31, 2026 14:16 — with
GitHub Actions
Inactive
westey (westey-m)
approved these changes
Aug 31, 2026
This was referenced Sep 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation and Context
Description
Contribution Checklist