Skip to content

test(api): fix flaky performance tests - #446

Merged
alanw707 merged 1 commit into
mainfrom
test/flaky-api
Oct 9, 2026
Merged

alanw707 merged 1 commit into
mainfrom
test/flaky-api

Conversation

@alanw707

@alanw707 alanw707 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Root cause: performance tests measured process-wide GC heap deltas while other xUnit collections ran in parallel, and GC.GetTotalMemory deltas can shrink when a GC fires mid-operation, so the memory-reduction target failed only in full runs. Fix: CollectionDefinition(DisableParallelization=true) for all 5 performance collections + GC.GetTotalAllocatedBytes(precise) measurement. PerformanceIsolationTests enforces it (failed before). Other historical failures (report path, OpenAI timeout bound, flag-off, concurrent create) already fixed on main; concurrent-create 15/15. Full dotnet test 3 consecutive runs: 1337 passed, 0 failed.

…monotonically (flaky memory-target failures)
@alanw707
alanw707 merged commit 4f8e87d into main Oct 9, 2026
3 checks passed
@alanw707
alanw707 deleted the test/flaky-api branch October 9, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant