test(ci): harden scheduling and allocation gates
All checks were successful
CI / linux-portable (push) Successful in 3m30s
CI / windows-gate (push) Successful in 6m15s
CI / release (push) Successful in 2m11s

This commit is contained in:
Erik 2026-08-27 19:28:10 +02:00
parent c4608b1127
commit d123c4b67c
11 changed files with 101 additions and 87 deletions

View file

@ -383,12 +383,10 @@ public sealed class RenderPackAutoRuntimeTests
for (int i = 0; i < 128; i++)
fixture.Observe(1, stable: true);
long before = GC.GetAllocatedBytesForCurrentThread();
for (int i = 0; i < 128; i++)
fixture.Observe(1, stable: true);
long after = GC.GetAllocatedBytesForCurrentThread();
Assert.Equal(0, after - before);
ZeroAllocationProbe.AssertAllocatesNothing(
"RenderPackAutoRuntime stable observation",
() => fixture.Observe(1, stable: true),
batchSize: 128);
}
private sealed class Fixture : IDisposable