Three Cosmos structural-equality tests flaky on Cosmos DB Emulator for Windows
I maintainer di solito rispondono entro 2 giorni
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- csharp, github-actions
- Ambito
- databases, testing-qa
Direzione di ricerca
Start in CosmosTestEnvironment, where SkipOnLinuxEmulator exists but has no Windows counterpart, and locate the three failing tests: OwnedComplexPropertiesStructuralEqualityCosmosTest and ComplexPropertiesStructuralEqualityCosmosTest, both Contains_with_operators_composed_on_the_collection, plus Contains_with_nested_and_composed_operators. Reproduce against Cosmos emulator 2.14.29 on Windows if possible. Done means either a Windows-emulator skip with an upstream link, or a minimal reproduction of the EXISTS object-equality regression.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Note: this is flaky on the Windows emulator. It is likely not due to version upgrade.
Three Cosmos structural-equality tests started failing in the Cosmos (windows-2025) CI lane when the GitHub Windows runner image upgraded the Azure Cosmos DB Emulator from 2.14.28.0 to 2.14.29.0. Each query now returns 0 rows where 1 is expected. The same tests still pass in the Cosmos (ubuntu-24.04) lane, which uses the Linux (vnext) emulator.
Failing tests
OwnedComplexPropertiesStructuralEqualityCosmosTest.Contains_with_operators_composed_on_the_collectionComplexPropertiesStructuralEqualityCosmosTest.Contains_with_operators_composed_on_the_collectionComplexPropertiesStructuralEqualityCosmosTest.Contains_with_nested_and_composed_operators
Assert.Equal() Failure: Values differ
Expected: 1
Actual: 0
All three compare a whole JSON object with a parameter inside an EXISTS subquery that also has another predicate:
SELECT VALUE c
FROM root c
WHERE EXISTS (
SELECT 1
FROM n IN c["RequiredAssociate"]["NestedCollection"]
WHERE ((n["Int"] > @get_Item_Int) AND (n = @entity_equality_get_Item)))
where @entity_equality_get_Item is a JSON object, e.g. {"Id":3003,"Int":108,"Ints":[8,9,109],"Name":"Root3_RequiredAssociate_NestedCollection_2","String":"foo104"}.
Evidence it's the emulator update
Runner image (windows-2025-vs2026) |
Cosmos emulator | Windows Cosmos lane |
|---|---|---|
20261116.315.1 |
2.14.28.0 | Passed in every run checked on 2026-11-25 (~20 PR runs plus main) |
20261123.321.1 |
2.14.29.0 | Failed with exactly these three tests in both runs so far |
- The emulator versions come from the images' software manifests (20261116.315, 20261123.321).
- Both failing runs are on #39593, which changes no Cosmos code. That PR's Windows Cosmos lane passed on two earlier commits that ran on the old image, and then failed on the next two, which ran on the new image. Between those commits only relational code and tests changed, and the Cosmos tests don't reference them.
- Failing runs: job 139311521654, job 139316736432.
- Not yet reproduced locally against emulator 2.14.29.
As the new image rolls out, this will fail every PR that lands on it, so re-running doesn't help.
Possible actions
- Skip these three tests on the Windows emulator for now.
CosmosTestEnvironmenthasSkipOnLinuxEmulatorbut no Windows equivalent, so one would need adding. Then link an upstream report. - Check whether 2.14.29 changed object or document equality semantics inside
EXISTSsubqueries, and report it to the Cosmos emulator team if it's a regression.
- Lingua principale
- C#
- Stelle
- 14.8k
- Fork
- 3.5k
- Merge medio
- 3g 7h
- PR unite (30g)
- 182
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dotnet/efcore
-
customer-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
GroupBy element `OrderBy(...).First()`/`MaxBy` over an owned type mapped to its own table fails to translateForse già presa @cincuranet l’ha presa oggi. Apertaarea-groupby area-query
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
dotnet/efcore#39833 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
SQLite: Polygon.Length translates to GLength, which returns 0Forse già presa @cincuranet l’ha presa oggi. Apertaarea-query area-sqlite
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
dotnet/efcore#39826 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Migration lock with LockReleaseBehavior.Transaction doesn't prevent concurrent migrations since per-migration transactionsForse già presa @AndriySvyryd l’ha presa 1 giorno fa. Apertaarea-migrations
dotnet/efcore#39824 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Querying a TPC base type with a JSON complex property throwsForse già presa @cincuranet l’ha presa 1 giorno fa. Apertaarea-query
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
dotnet/efcore#39814 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di dotnet/efcore
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
SubtitleEdit/subtitleedit#17247 ·
I maintainer di solito rispondono entro 1 giorno
-
Restore test cleanup fails on Windows when restored files are read-onlyForse già presa @JamBalaya56562 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
duplicati/duplicati#8046 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Bundles Documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pyrevitlabs/pyRevit#4285 ·
I maintainer di solito rispondono entro 1 giorno