Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory tests on Chrome 124 #1436

Merged
merged 7 commits into from
Jun 4, 2024
Merged

Fix memory tests on Chrome 124 #1436

merged 7 commits into from
Jun 4, 2024

Conversation

peaBerberian
Copy link
Collaborator

Our memory tests (which check for memory leaks) are failing since Chrome 124.

It seems that the issue is not memory leaks on our part but changes in the way Chrome performs its garbage collection, especially after the gc global function (it exposes it only if the --js-flags="--expose-gc" chrome flag is used when running) is called to manually trigger it.

Awaiting several seconds after that call seems to improve measures by a lot (tens of MB being collected), though not every tests seems to pass yet, so that may not be the only change we'll need to do.

@peaBerberian peaBerberian force-pushed the fix/memory-tests branch 4 times, most recently from 69dca56 to 3f5a22e Compare May 7, 2024 09:47
Our memory tests (which checks for memory leaks) are failing since Chrome 124.

It seems that the issue is not memory leaks on our part but changes in
the way Chrome performs its garbage collection, especially after the
`gc` global function (it exposes it only if the `--js-flags="--expose-gc"`
chrome flag is used when running) call.

Awaiting several seconds after that call seems to improve measures by a
lot (tens of MB being collected), though not every tests seems to pass
yet, so that may not be the only change we'll need to do.
@peaBerberian peaBerberian merged commit d6eea9c into dev Jun 4, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant