Skip to content

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

Closed

Description

@nc9

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

  1. added
    bug
    size: S
    rules
    on Nov 22, 2026
  2. added theissue type on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions