Skip to content

Skip Cosmos add conflict session token test on Linux emulator - #39776

Merged
AndriySvyryd merged 1 commit into
mainfrom
copilot/skip-cosmos-add-conflict-linux
Nov 24, 2026
Merged

AndriySvyryd merged 1 commit into
mainfrom
copilot/skip-cosmos-add-conflict-linux

Conversation

@AndriySvyryd

@AndriySvyryd AndriySvyryd commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Skip Add_conflict_updates_session_token on the Linux Cosmos emulator, which no longer returns the expected session token after a conflict. The test remains enabled elsewhere.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@AndriySvyryd
AndriySvyryd requested a review from a team as a code owner November 23, 2026 23:36
Copilot AI balanced review requested due to automatic review settings November 23, 2026 23:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the Linux-emulator-specific conflict session-token test skip.

No open issues 🎉

What changed in this PR

This PR skips the Cosmos conflict session-token test on the Linux emulator, where conflicts no longer return the expected session token, while keeping it enabled elsewhere.

Changes:

  • Replaces Theory with ConditionalTheory, guarded by CosmosTestEnvironment.IsNotLinuxEmulator.
  • Preserves both transaction-behavior cases and the existing test body.
File Description
test/​EFCore.Cosmos.FunctionalTests/​CosmosSessionTokensTest.cs Adds the Linux-emulator skip condition to Add_conflict_updates_session_token.

Review effort: Balanced

@AndriySvyryd
AndriySvyryd enabled auto-merge (squash) November 24, 2026 00:07
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: C#

C# / code-coverage

main a60d27c copilot/skip-cosmos-... 79c7137 +/-
76% 76% 0%
View coverage of the 10 most impacted files.
File main a60d27c copilot/skip-cosmos-... 79c7137 +/-
src/EFCore.Abst...erExtensions.cs 100% 100% 0%
src/EFCore.Anal...icSuppressor.cs 96% 96% 0%
src/EFCore.Desi...onExtensions.cs 100% 100% 0%
src/EFCore.Desi...CSharpHelper.cs 96% 96% 0%
src/EFCore.Desi...seOperations.cs 98% 98% 0%
src/EFCore.Desi...odeGenerator.cs 98% 98% 0%
src/EFCore.Desi...nsScaffolder.cs 68% 68% 0%
src/EFCore.Desi...odeGenerator.cs 92% 92% 0%
src/Shared/NonC...yInitializer.cs 11% 12% +1%
src/Microsoft.D...qliteCommand.cs 93% 95% +2%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@AndriySvyryd
AndriySvyryd merged commit 28de081 into main Nov 24, 2026
25 checks passed
@AndriySvyryd
AndriySvyryd deleted the copilot/skip-cosmos-add-conflict-linux branch November 24, 2026 17:00
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 25, 2026
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.

3 participants