You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky: heap-fingerprint test 'a collected signal field does not keep its page' fails under CI memory pressure #2242
The rules-suite test "a collected signal field does not keep its page > fingerprint: the copy keeps close to the parse-only heap, the uncopied field keeps clearly more" failed once in the CI controller on public main 55e9a89 (run 163, the v0.0.190 bump merge, 3.5 s). It passed on the rerun and on the identical PR head c07a8f9. The test measures heap after parsing and copying, so it depends on GC timing and on memory pressure from other suites in the same sandbox.
Acceptance Criteria
The test no longer depends on GC timing or shared-sandbox memory pressure. For example: force Bun.gc(true) before each measurement, take the median of N samples, compare against a ratio with a documented margin rather than a tight bound, or run it in its own process. The change is explained in the test.
It passes 20 consecutive runs in the CI controller's rules-suite part (or the equivalent bun test invocation, looped 20 times in a sandbox), with the command recorded in the PR.
It still fails if the regression it guards returns: shown by temporarily keeping a reference to the page in the collected field.
Activity
style(rules): oxfmt the heap retention test #2242
test(rules): median of 3 heap readings in retention test #2242 (#2245)