Page MenuHomePhabricator

Add Chrome flags for K8s runners to wdio-mediawiki
Closed, ResolvedPublic

Description

In wdio-defaults.conf.js, the three Chrome flags --no-sandbox, --disable-gpu, and --disable-dev-shm-usage are only added when /.dockerenv exists. That file is in Docker containers but not in Kubernetes pods, so Catalyst selenium runs (which use K8s) don't get the flags and Chrome fails to start on Node 24.

I confirmed this by adding the flags directly in WikiLambda's wdio.conf.mjs (see gerrit patch added below). Catalyst CI (for node 24 upgrade in gitlab) passed after that.
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/1287507

This ticket is to add the flags by default, or detect K8s too. Then WikiLambda can drop this workaround and other extensions won't need to do the workaround either.

Also for full context, here's the original Node 24 upgrade ticket T425968

Details

Related Changes in Gerrit:

Event Timeline

Change #1288391 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[mediawiki/core@master] selenium: Fix for run tests in K8

https://gerrit.wikimedia.org/r/1288391

Change #1288391 merged by jenkins-bot:

[mediawiki/core@master] selenium: Fix for run tests in K8

https://gerrit.wikimedia.org/r/1288391