Skip to content

test(rules): median of 3 heap readings in retention test #2242 - #2245

Merged
nc9 merged 2 commits into
mainfrom
boat/heap-fingerprint-flaky-2242
Nov 22, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/heap-fingerprint-flaky-2242

Conversation

@nc9

@nc9 nc9 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Closes #2242

The retention test took one heap reading per figure, so GC timing or neighbour memory pressure could flip it. Each figure (parse-only, copy, uncopied) is now the median of 3 independent readings, explained in the test. Test-only, no changelog entry, no docs or skill change.

Acceptance:

  • Median of 3 readings with forced GC: done.
  • 20 consecutive runs: 2 x 10 of bun test tests/collected-signals-retention-1565.test.ts --timeout 30000 in packages/rules, 7 pass 0 fail each.
  • Regression still fails: with detachFingerprint returning the raw fingerprint, the fingerprint case fails (copy 24.2 MB vs uncopied 31.4 MB); reverted.

Gates: oxfmt check ok, oxlint ok, changelog check ok, bun run scripts/test-suites.ts --run rules: 12637 pass, 0 fail.

@nc9
nc9 marked this pull request as ready for review November 22, 2026 10:43
@nc9
nc9 merged commit c13e782 into main Nov 22, 2026
10 checks passed
@nc9
nc9 deleted the boat/heap-fingerprint-flaky-2242 branch November 22, 2026 11:40
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.

Flaky: heap-fingerprint test 'a collected signal field does not keep its page' fails under CI memory pressure

1 participant