diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9f92d5a3..9ba13531 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -75,15 +75,20 @@ jobs: tests/AcDream.Launcher.Core.Tests \ tests/AcDream.UI.Abstractions.Tests ; do echo "::group::$p" - # MaxParallelThreads is capped because this runner is a small - # container. Under full-assembly parallel load - # FakeAceTransportTests.PausedSelector_SeededDroppedServerReady_ - # RecoversOnIdleSweep took 37 s and missed its 2 s real-time wait, - # while passing 5/5 in ~350 ms in isolation. Timing-sensitive, not - # broken: starve it less rather than edit Campaign N transport code. + # Core.Net drives real network sessions on background threads. On + # this small container, full-assembly parallelism starves them: + # measured on the runner itself, the assembly FAILS in 40 s with + # default parallelism and PASSES in 10 s with one thread — serial is + # both correct AND faster here. Windows (18 cores) is unaffected and + # keeps default parallelism; serializing it there previously caused + # a regression, so this stays scoped to Linux. + extra=() + case "$p" in + *Core.Net.Tests) extra=(-- xUnit.MaxParallelThreads=1) ;; + esac dotnet test "$p" -c Release --nologo \ --filter 'Lane!=InstalledDat&Lane!=PreparedPackage&Lane!=Live&Lane!=Manual&Lane!=Windows&Lane!=SystemFont&Purpose!=Diagnostic&Status!=KnownFailure' \ - -- xUnit.MaxParallelThreads=2 + "${extra[@]}" echo "::endgroup::" done