Read the export test's heap only after pools drop their caches (closes #511) #513

Merged
clawbot merged 1 commits from issue-511-heap-pool-caches into next 2026-10-06 10:56:50 +02:00
1 Commits
Author SHA1 Message Date
clawbot 3a0495a787 Read the export test's heap only after pools drop their caches (closes #511)
check / check (push) Successful in 9m19s
TestArchiveExport_Streams read the heap after one collection. GORM's
table naming (through regexp) and encoding/json cache buffers in a
sync.Pool, which keeps them through one collection, so each reading
counted however many happened to be cached, and that swung between runs
by about the test's whole limit. It now collects twice before each
reading, the starting one included, so a reading is what the export
holds. No other test runs during the measurement: Go holds the parallel
tests until the sequential ones have finished.

Model: opus-5-5
2026-10-06 07:26:55 +00:00