Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Flaky: KeyedNotInParallelCrossPhaseTests kills its test process after 30 s on Windows CI (reflection mode)

Chiusa
#7,166 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
testing

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

bug

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

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di thomhurst/TUnit

Tutte le issue di thomhurst/TUnit

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.