Skip to content

Tests: Fix chromedriver crashes#1060

Draft
n7studios wants to merge 8 commits intomainfrom
tests-fix-chromedriver-crash
Draft

Tests: Fix chromedriver crashes#1060
n7studios wants to merge 8 commits intomainfrom
tests-fix-chromedriver-crash

Conversation

@n7studios
Copy link
Copy Markdown
Contributor

@n7studios n7studios commented Mar 28, 2026

Summary

Fixes backward compat. tests from failing due to chromedriver crashing:
Screenshot 2026-03-28 at 14 25 44

--disable-renderer-backgrounding: prevents Chrome from throttling or suspending renderer processes for tabs it considers "backgrounded." In headless test environments, Chrome can sometimes mistakenly treat the active tab as backgrounded, causing it to deprioritise the renderer and eventually time out.
--disable-backgrounding-occluded-windows: similar to above but specifically for windows Chrome considers "occluded" (hidden behind other windows).
--js-flags=--max-old-space-size=512: sets the V8 JavaScript engine's maximum old-generation heap size to 512MB. This forces more aggressive garbage collection rather than letting V8 grow its heap unbounded.

Testing

Existing tests pass.

Checklist

@n7studios n7studios self-assigned this Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant