Skip to content

tests: parse-depth-3356 'memo holds no page alive (#2343)' is GC-timing dependent and failed the v0.0.153 release gate #1483

Closed

Description

@nc9

The release quality gate of the v0.0.153 release run failed once on packages/parser/tests/parse-depth-3356.test.ts:168 ("the memo holds no page alive (#2343) > a memo that outlives its page keeps none of the page's DOM"): expect(received).toBeUndefined() got an HTMLDocument back. The same test passed in the PR's CLI tests job on the identical tree, so it depends on when the garbage collector runs. Same class as #1384.

Acceptance Criteria

  • The test forces collection (or polls with a bounded retry) before asserting that the weak reference is cleared, so it no longer depends on GC timing
  • A control mutation (the memo holding the page strongly) still fails the test
  • The file passes 10 consecutive runs under artificial CPU load
  • The release quality gate step bun test passes on a fresh dispatch without a rerun

Activity

  1. added
    size: XS
    rules
    on Nov 1, 2026
  2. added theissue type on Nov 1, 2026
  3. nc9 commented on Nov 1, 2026

    @nc9
    ContributorAuthor

    Checked against main after v0.0.154. Ticked: criteria 1 and 3. Open: criterion 2, the control test uses a harness memo that holds pages strongly, not a mutation of the real memos in the site-chrome and link-position tests; and criterion 4, a fresh release-gate dispatch passing without a rerun (process check). Leaving this open for those two.

    nik

  4. nc9 commented on Nov 2, 2026

    @nc9
    ContributorAuthor

    Checked against main (v0.0.159). Ticked criteria 2 and 4. Criterion 2: on main I changed both link memos from WeakMap to Map (chrome.ts and links.ts); the real test "a memo that outlives its page keeps none of the page's DOM" fails (6 pass, 1 fail); the change was reverted. Criterion 4: the Release workflow's quality gate (bun test step) passed on attempt 1 in all six release runs from v0.0.154 to v0.0.159. Criterion 3 stands: 10 of 10 passes of the file under 6 busy processes. Closing. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.159

    nik

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

    rulessize: XS

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions