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
Commit 93b5833
Browse filesBrowse the repository at this point in the historyBrowse files
test(server): count leaked PR cache caller data without WeakRefs
The PR cache retention test failed about 1 in 10 runs with "expected 1 (or
2) to equal 0". A heap snapshot of a failing run shows the surviving sweep
data held only by V8's keep-during-job list: `new WeakRef(target)` keeps the
target alive until the current job ends, and `Effect.yieldNow` does not
reliably cross that boundary. The cache itself was not retaining anything.
Count live instances of a per-test marker class with `v8.queryObjects`,
which runs a full GC first and creates no WeakRef, instead of
WeakRef + yieldNow + gc().
AI-assisted; verified with the tests and tools listed above.
0 commit comments