I'm happy to report the new Playwright-based test ...
# javascript
c
I'm happy to report the new Playwright-based test system has massively reduced flakiness in our pipelines
nice spin 2
👀 2
kodee happy 4
o
Using TestBalloon?
c
Yes, but the flakiness was not related to TestBalloon, it was Chrome crashing/failing to start
o
Any idea what made a difference?
c
I guess Playwright has some config/tweaks for CI runners, but no ideas beyond that
o
I've never seen unexpected flakiness with browser tests, either via the old Karma/Mocha regime nor via Playwright. Maybe the elimination of Mocha (a TestBalloon feature) contributes to what you're seeing. If you want to know more, you can try CI runs after removing
withTestBalloon
invocations in your build configuration. That way, TestBalloon would still use Playwright (if configured) but integrate with Mocha.
c
What I was seeing was even before that, Karma failed to connect to the Chrome instance at all, as if it hadn't started
o
That would be before any code on the browser could start, so entirely under Karma's and KGP's control. I don't remember seeing something like this.
c
On the KtMongo repo I've had a 50+% error rate for months now 😓
My best guess was that Chrome was being OOM'd, but for some reason it doesn't happen with Playwright
o
That's gross! I usually see OOMs in builds, when I test against a wide range of Kotlin versions which can make the Gradle daemons grow excessively. But yes, a browser instance is not that lightweight, so it can add to the bill on a resource-constrained CI runner.