Repository navigation
Conversation
…ing tests assert growth, not wall clock #1483 Signed-off-by: Nik Cubrilovic <[email protected]>
Merged
Contributor
Author
|
Landed in v0.0.154 as nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1483.
parse-depth-3356.test.tsfailed the v0.0.153 release gate on "a memo that outlives its page keeps none of the page's DOM": it forced a collection at most 10 times with no sleep, and whether the earlier pages are gone depends on when the collector runs and on JSC's conservative stack scan still seeing a stale slot.settle(): up to 100 rounds of a scrubbed stack (a 400-frame recursion with dead locals, so a stale slot is overwritten),Bun.gc(true)and a short sleep (0 ms for the first 10 rounds, then 10 ms; about a second at most), stopping as soon as the pages are gone. The assertions are unchanged.WeakMaps turned intoMaps (the memo holding the page strongly) the memo test still fails (checked on both extractors). A new control test passes pages through a memo that holds its documents strongly and asserts they are still alive after the same poll, so the poll can never be proving nothing.Test-only, no source change, so no CHANGELOG or docs. Skill: no change needed.
nik