A Chrome worker in CI costs about 280 MB. The same Rails system tests on Lightpanda cost about 17 MB. I spent the last months finding out what you lose in exchange.
The short answer: on the system specs of ten open-source apps, 706 of 712 examples pass. This post is about the six that don't, and about what it took to get there.
Why Chrome hurts in CI
System tests are the most expensive tests in a Rails suite, and most of the cost is the browser. Each parallel worker starts its own Chrome, and each Chrome takes about 280 MB before your app has rendered anything. On a small CI runner, memory decides how many workers you can run, not CPU.
Then there is the upkeep: a Chrome to install on every runner, and a chromedriver that has to match it.
What Lightpanda is
Lightpanda is a headless browser written in Zig on top of V8. It was built for automation, not for people.…