Increase shared memory in kubernetes runner

Created on 31 January 2024, 10 months ago
Updated 19 February 2024, 10 months ago

Follow up from https://drupal.slack.com/archives/CGKLP028K/p1706542040023569

Problem/Motivation

The browsers we currently test on are very old due to php-webdriver being jsonwire based, which is now deprecated. This has been upgraded in this MR https://git.drupalcode.org/project/drupal/-/merge_requests/5803 using a temporary chromedriver image with an updated browser https://hub.docker.com/repository/docker/justafish/chromedriver (this also includes some changes to fetch the correct chromedriver version as the drupalci image pulls in an incompatible driver). It would be nice to use selenium images for chrome (and eventually firefox) so we don't have to maintain our own https://github.com/SeleniumHQ/docker-selenium - it's recommended to set a shared memory size of 2g for these images by passing --shm-size="2g" to docker. I'm also seeing failures with the justafish/chromedriver image that I suspect may also be due to memory exhaustion.

Proposed resolution

Increase the shared memory available to the kubernetes runners

[[runners.kubernetes.volumes.empty_dir]]
  name = "shm"
  mount_path = "/dev/shm"
  medium = "Memory"

(this is a workaround that will set it to 64gb - setting a specific size limit is currently behind a feature gate https://github.com/kubernetes/kubernetes/pull/94444)

📌 Task
Status

Fixed

Component

GitLab

Created by

🇬🇧United Kingdom justafish London, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024