[Koha-bugs] [Bug 27055] Update Firefox version used in Selenium GUI tests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 1 16:17:29 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27055

--- Comment #10 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
>     Fix: remove usage of click_when_visible() because it doesn't work with
>    elements not in the top of the page. Because they are off screen.

click_when_visible() uses wait_for_element_visible() which now use the current
viewport for it's definition of visibility.
Thus with elements out of the screen - lower in the page -
wait_for_element_visible() waits forever.

> We are certainly going to reintroduce some random issues we tried to fix during the last cycle.

Before, the implicit_wait_timeout was 0, now it's 5sec, hopefully that should
catch the the bulk of flaky tests. The whole suite was stable during more than
150 runs locally.

> fallocate failed to set shm size: No space left on device

This is due to a small /dev/shm and multiple Firefox staying open. Which
shouldn't happen as close() is called at the end of each file. And in the
error_handler.

Remaining Firefox instances can be checked with:
docker exec -it koha_selenium_1 bash
df -h
top

Did you interrupt (ctrl-c) the runs several times? Or was it on a freshly
started env on the first runs of the tests? That's only way I know for now
about how to hit this issue with the new selenium container.

-------


Good news, it's possible to change size of /dev/shm :D

docker-compose.yml
     selenium:
         image: selenium/standalone-firefox
+        shm_size: 1gb

This seems to be a recurring problem for running browsers in docker. As the
default is only 64MiB. Testing shows that it doesn't increase the RAM usage, it
might work like tmpfs thus only using more RAM as it's filled up.

References for the size change:
https://stackoverflow.com/questions/58952478/changing-shared-memory-size-in-docker-compose
https://docs.docker.com/compose/compose-file/#shm_size

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list