docker-selenium icon indicating copy to clipboard operation
docker-selenium copied to clipboard

[🐛 Bug]: PHPUnit unable to establish session with latest version of docker-selenium

Open bkline opened this issue 1 year ago • 5 comments

What happened?

I see that docker-seleniarm has been merged into this project, but it appears that the issues have not been carried over. A little over a year ago I filed a bug report that a regression in the latest version of the images prevented a phpunit FunctionalJavascript test against a Drupal site from connecting to the chromium container on an M1 Mac ("regression" because the older version from April 2022 still works). @jamesmortensen (the maintainer of docker-seleniarm) closed that ticket and told me to reopen it when I was able to provide a small enough repro case for him to be able to reproduce the problem. However, there was no mechanism available to reopen the ticket, so a few months ago I filed a second ticket providing the requested repro case. James never responded to that ticket, and now it's been archived, blocking me from adding any further comments, so I'm filing this ticket with the repro case.

Command used to start Selenium Grid with Docker (or Kubernetes)

# Start the older version of the Docker image.
docker run --rm -it -p 4444:4444 -e "SE_SESSION_REQUEST_TIMEOUT=5" \
  seleniarm/standalone-chromium:4.1.4-20220429
# From a separate terminal window, request a session. Output is shown in the
# attached session-test-success.out, with HTTP code 200, and a response
# which includes a valid session ID.
php session-test.php
# Stop the container (control+C) in the first terminal window, and start a fresh
# container with the current version of the image.
docker run --rm -it -p 4444:4444 -e "SE_SESSION_REQUEST_TIMEOUT=5" \
  selenium/standalone-chromium:latest
# Back to the second terminal window, running the same PHP scriot.
# This time a 500 error will be returned (see attached sessison-test-failure.out).
php session-test.php

Relevant log output

See attached output.

Operating System

Mac M1 Pro Sonoma 14.5

Docker Selenium version (image tag)

4.22.0-20240621

Selenium Grid chart version (chart version)

N/A

bkline avatar Jun 27 '24 14:06 bkline