Menu

1 / 2

I ran the system tests of 10 open-source apps without Chrome. Here's what broke.

DEV Community: ruby·Navid·1 day ago
#uJuVuxP0
#devtoruby#devto#dev#lightpanda#capybara
Long article (1232 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.