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
tests: parse-depth-3356 'memo holds no page alive (#2343)' is GC-timing dependent and failed the v0.0.153 release gate #1483
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
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.
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
Activity
test(parser): the memo test polls a scrubbed GC bounded, and the nest…
nc9 commentedon Nov 1, 2026
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
nc9 commentedon Nov 2, 2026
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 teststep) 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.159nik