Review 13.4 Merged

92553[TASK] Disable shared memory usage for chrome testing images

Benjamin Franzke CR +2 V +2 Easy +7 −4 updated 01/28/26, 14:42

Commit message

Selenium suggests [1] to use a container shared memory size of 2GB
(to be passed via `--shm-size 2g` to docker) because chrome needs
more shared memory than provided by default in docker or podman.

It seems that the `tmpfs` mount on `/dev/shm` has been applied in #93575
(which "to deal with changed exceptions and behaviour"), for the same
reason.

runTests.sh executions with current docker versions (instead of our
default podman environment) revealed that the tmpfs mount leads
chrome into crashing from time to time.

Our testing infrastructure does not allow to specify `--shm-size 2g`
because our test runners do not run in host IPC namespace, but there
is another, better solution nowadays.

In the meantime chrome added support for disabling /dev/shm usage and
the developer suggested to use that:
https://issues.chromium.org/issues/40527382#comment77

For that reason we disable the tmpfs workaround and use the officially
supported cmdline flag instead.

[1] https://hub.docker.com/r/selenium/standalone-chrome
> When executing docker run for an image that contains a browser please
> use the flag --shm-size=2g to use the host's shared memory.

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 2

Files 2

Review log 34

  1. Benjamin Franzke uploaded patch set 1 01/28/26, 14:25

  2. core-ci voted on patch set 1 V +1 01/28/26, 14:35 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/94503

  3. Benjamin Franzke commented on patch set 1 CR +2 V +2 01/28/26, 14:42

    This change is ready for review.
  4. Benjamin Franzke merged patch set 2 01/28/26, 14:42