Skip to content

Cosmos test improvements for Linux-based emulator#38088

Merged
roji merged 1 commit intomainfrom
roji/cosmos-linux-emulator-tests
Apr 14, 2026
Merged

Cosmos test improvements for Linux-based emulator#38088
roji merged 1 commit intomainfrom
roji/cosmos-linux-emulator-tests

Conversation

@roji
Copy link
Copy Markdown
Member

@roji roji commented Apr 13, 2026

Removed some skips, opened issues and linked to them.

@roji roji requested a review from a team as a code owner April 13, 2026 10:43
Copilot AI review requested due to automatic review settings April 13, 2026 10:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Cosmos functional tests to better reflect current Linux-based Cosmos emulator behavior by unskipping tests that now pass and documenting remaining emulator gaps with linked upstream issues.

Changes:

  • Removed several [CosmosCondition(CosmosCondition.IsNotLinuxEmulator)] skips so tests execute on the Linux emulator where behavior is now compatible.
  • Added targeted Linux-emulator skips back to specific tests, annotated with links to upstream emulator issues explaining the limitation.
  • Added clarifying comments for Linux-emulator-specific feature gaps (e.g., transactional batch limits, full-text search, scripts/triggers).

Reviewed changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/EFCore.Cosmos.FunctionalTests/Update/CosmosBulkWarningTest.cs Adds issue link explaining why specific bulk warning tests remain skipped on Linux emulator.
test/EFCore.Cosmos.FunctionalTests/Update/CosmosBulkExecutionTest.cs Adds issue link explaining transactional batch limit behavior on Linux emulator.
test/EFCore.Cosmos.FunctionalTests/Update/CosmosBulkConcurrencyTest.cs Narrows Linux-emulator skipping to specific concurrency tests and documents upstream issue.
test/EFCore.Cosmos.FunctionalTests/Types/CosmosTemporalTypeTest.cs Documents Linux emulator aggregate/subquery limitation for primitive collection queries.
test/EFCore.Cosmos.FunctionalTests/Types/CosmosNumericTypeTest.cs Documents Linux emulator aggregate/subquery limitation for primitive collection queries.
test/EFCore.Cosmos.FunctionalTests/Types/CosmosMiscellaneousTypeTest.cs Documents Linux emulator aggregate/subquery limitation for primitive collection queries.
test/EFCore.Cosmos.FunctionalTests/Query/Translations/MathTranslationsCosmosTest.cs Removes Linux-emulator skip so truncate/order-by tests run on Linux emulator.
test/EFCore.Cosmos.FunctionalTests/Query/ReadItemPartitionKeyQueryTest.cs Adds targeted Linux-emulator skips w/ issue link for partial hierarchical partition key query behavior.
test/EFCore.Cosmos.FunctionalTests/Query/ReadItemPartitionKeyQueryRootDiscriminatorInIdTest.cs Adds targeted Linux-emulator skips w/ issue link for partial hierarchical partition key query behavior.
test/EFCore.Cosmos.FunctionalTests/Query/ReadItemPartitionKeyQueryNoDiscriminatorInIdTest.cs Adds targeted Linux-emulator skips w/ issue link for partial hierarchical partition key query behavior.
test/EFCore.Cosmos.FunctionalTests/Query/ReadItemPartitionKeyQueryDiscriminatorInIdTest.cs Adds targeted Linux-emulator skips w/ issue link for partial hierarchical partition key query behavior.
test/EFCore.Cosmos.FunctionalTests/Query/QueryLoggingCosmosTestBase.cs Removes Linux-emulator skip so query logging tests run on Linux emulator.
test/EFCore.Cosmos.FunctionalTests/Query/PrimitiveCollectionsQueryCosmosTest.cs Adds targeted Linux-emulator skips w/ issue link for aggregate-over-subquery behavior.
test/EFCore.Cosmos.FunctionalTests/Query/OwnedQueryCosmosTest.cs Removes some Linux-emulator skips; adds targeted skips w/ issue links for ORDER BY expression limitations and aggregate/subquery behavior.
test/EFCore.Cosmos.FunctionalTests/Query/NorthwindSelectQueryCosmosTest.cs Removes Linux-emulator skip so a previously skipped query test runs on Linux emulator; adds targeted issue link for ORDER BY limitation.
test/EFCore.Cosmos.FunctionalTests/Query/NorthwindMiscellaneousQueryCosmosTest.cs Removes multiple Linux-emulator skips and adds targeted issue links for ORDER BY expression limitations and paging behavior.
test/EFCore.Cosmos.FunctionalTests/Query/NorthwindFunctionsQueryCosmosTest.cs Removes Linux-emulator skip so function ordering test runs on Linux emulator.
test/EFCore.Cosmos.FunctionalTests/Query/NorthwindAggregateOperatorsQueryCosmosTest.cs Removes multiple Linux-emulator skips; adds targeted skips w/ issue link for EXISTS/ANY/ALL subquery server errors.
test/EFCore.Cosmos.FunctionalTests/Query/JsonQueryCosmosTest.cs Removes Linux-emulator skips so JSON index predicate tests run on Linux emulator.
test/EFCore.Cosmos.FunctionalTests/Query/ComplexTypeToJsonPropertyQueryCosmosTest.cs Adds targeted Linux-emulator skips w/ issue link for complex-type equality behavior.
test/EFCore.Cosmos.FunctionalTests/Query/ComplexTypeQueryCosmosTest.cs Adds targeted Linux-emulator skips w/ issue link for complex-type equality behavior.
test/EFCore.Cosmos.FunctionalTests/Query/Associations/OwnedNavigations/OwnedNavigationsPrimitiveCollectionCosmosTest.cs Adds targeted Linux-emulator skip w/ issue link for aggregate/subquery behavior.
test/EFCore.Cosmos.FunctionalTests/Query/Associations/OwnedNavigations/OwnedNavigationsCollectionCosmosTest.cs Removes Linux-emulator skips for some cases; adds targeted skips w/ issue link for aggregate/subquery behavior.
test/EFCore.Cosmos.FunctionalTests/Query/Associations/ComplexProperties/ComplexPropertiesStructuralEqualityCosmosTest.cs Removes class-level Linux-emulator skip and replaces with targeted method-level skips w/ issue link for complex-type equality.
test/EFCore.Cosmos.FunctionalTests/Query/Associations/ComplexProperties/ComplexPropertiesPrimitiveCollectionCosmosTest.cs Adds targeted Linux-emulator skip w/ issue link for aggregate/subquery behavior.
test/EFCore.Cosmos.FunctionalTests/Query/Associations/ComplexProperties/ComplexPropertiesCollectionCosmosTest.cs Removes Linux-emulator skips for some cases; adds targeted skips w/ issue link for aggregate/subquery behavior.
test/EFCore.Cosmos.FunctionalTests/Query/AdHocComplexTypeQueryCosmosTest.cs Adds targeted Linux-emulator skip w/ issue link for complex-type equality behavior.
test/EFCore.Cosmos.FunctionalTests/EndToEndCosmosTest.cs Adds issue link explaining why end-to-end transactional batch variant is skipped on Linux emulator.
test/EFCore.Cosmos.FunctionalTests/EmbeddedDocumentsTest.cs Removes a Linux-emulator skip for embedded collection manipulation; adds targeted skip w/ issue link for complex-type equality behavior.
test/EFCore.Cosmos.FunctionalTests/CosmosTriggersTest.cs Adds comment clarifying that triggers/server-side scripts aren’t supported on Linux emulator.
test/EFCore.Cosmos.FunctionalTests/CosmosTransactionalBatchTest.cs Adds class-level comment linking upstream issue for transactional batch limits on Linux emulator.
test/EFCore.Cosmos.FunctionalTests/CosmosSessionTokensTest.cs Adds issue link documenting Linux emulator session token tracking limitation (class and nested test class).
test/EFCore.Cosmos.FunctionalTests/ConfigPatternsCosmosTest.cs Adds comment clarifying Linux emulator limitation around ConnectionMode.Direct.
test/EFCore.Cosmos.FunctionalTests/AddHocFullTextSearchCosmosTest.cs Adds issue links explaining lack of full-text search support on Linux emulator.

Removed some skips, opened issues and linked to them.
@roji roji force-pushed the roji/cosmos-linux-emulator-tests branch from 1342730 to 754f90a Compare April 13, 2026 12:54
@roji roji merged commit 74754da into main Apr 14, 2026
15 checks passed
@roji roji deleted the roji/cosmos-linux-emulator-tests branch April 14, 2026 08:49
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