Flaky: KeyedNotInParallelCrossPhaseTests kills its test process after 30 s on Windows CI (reflection mode)
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
- #7177 di @thomhurst — integrata
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with tests/TUnit.Engine.Tests/Scheduling/KeyedNotInParallelCrossPhaseTests.cs and inspect the 30-second cancellation setup, then review the linked pull request #7177 for work already in progress. Reproduce the reflection-mode run on Windows CI if possible; done means the regression tests detect serialization while allowing slow process startup and discovery.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened
In run 39337171332 (PR #7150, modularpipeline (windows-latest)), both tests in tests/TUnit.Engine.Tests/Scheduling/KeyedNotInParallelCrossPhaseTests.cs failed in reflection mode with:
Command execution canceled. Underlying process (TUnit.TestProject.exe#13616) was forcefully terminated.
Command Input: ...TUnit.TestProject.exe --treenode-filter /*/*/Repro5700/* ... --reflection
The tests took 30.3 s, so the 30 s CancellationTokenSource in each test (WithForcefulCancellationToken) killed the child process. No test assertion failed. The same commit passed on ubuntu, and the tests pass locally in both modes in about 3.5 s. The PR does not touch scheduling.
Why
The 30 s budget covers starting a whole TUnit.TestProject process, plus reflection discovery of the full assembly. On a loaded Windows runner, that takes longer than 30 s, even though the filtered class itself runs in milliseconds.
Expected
These regression tests should fail only when the keyed NotInParallel scheduling actually serialises (the #5700 regression), not when process start-up and discovery are slow. Options:
- raise the budget (for example to 2 min). A real deadlock still hangs well past that.
- or measure the overlap inside the test classes (timestamps) instead of using wall-clock process time.
Reproduce
Not reliably reproducible locally. Seen once on Windows CI so far.
- Lingua principale
- C#
- Stelle
- 4k
- Fork
- 139
- Merge medio
- 8h 7m
- PR unite (30g)
- 278
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 thomhurst/TUnit
-
Flaky: RpcTests Discovery_ReturnsFullTestCatalogue times out waiting for TCP connection on macOS CIApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
bug github_actions
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
thomhurst/TUnit#7229 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
thomhurst/TUnit#7194 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di thomhurst/TUnit
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Nimblesite/SharpLsp#468 ·
I maintainer di solito rispondono entro 1 giorno
-
alerts bug effort:S P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
nightscout/nocturne#2511 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
feature-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
stripe/stripe-dotnet#3484 ·
I maintainer di solito rispondono entro 2 giorni
-
bug mcp misleading small
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno