-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZEE-1710 change selenium version #203
EZEE-1710 change selenium version #203
Conversation
Sounds like a plan for now! But please keep an eye out on Mink Selenium 3.5 support so that we can update to that later, end result should be that we run some tests with chrome (default) and some with firefox (by setting custom SELENIUM_IMAGE on job matrix). For wider browser testing we have Saucelabs as intended to be used used by UI repos. |
One failure on last job:
Restarting just in case, but seems like a legit failure right? |
Yes, it's something I'm looking at right now. There is also something else: the job kept running even after the tests have finished (I had to cancel it manually, because it went for 15 minutes and looked like it would keep running). We'll see what happens this time. Note: the failing tests passes on my local env, but I haven't run it in docker (simple local Selenium Server + Chrome), I'll keep digging. |
@mnocon I guess it is because of the docker-compose logs output which is triggered on failure, in this case it way to verbose for this and hence it keeps on generating output for along time. |
Ok, that's plausible (and also unwanted?). I imagine in case of test failure the build would take a lot of time. I'm not sure why the Chrome driver would output that much more than the previous one. |
never said that, I think it's this particular job that has long log. I added this log output on failures just some months back to help debug failures. Disregard this, it can be tuned or we can disabled debug or reduce verbosity level, it's not a blocker for this change, so rather focus on the failure instead :) EDIT: Hopefully fixed the logs freezing travis here: b3c722e |
Solution suggested here: ezsystems/PlatformUIBundle#895 |
Yesterday I've tried maximise the browser windows in tests with ChromeOptions (this would make ezsystems/PlatformUIBundle#895 unnecessary), but I've stumbled on another issue that I'll describe here. All my tries were failing with error: What happened: I've changed the Docker image to standalone-chrome-debug (it includes an additional VNC server). Right now there is another issue with stability: tests start and fail randomly with It seems to be a Docker specific issue: elgalu/docker-selenium#20 and one comment suggest possible solutions. I'm a begginer in the Docker world, so a question for you @andrerom: do any of these seem reasonable/possible for us to use? I'll try them locally to see if it helps. |
Option 2 would be the cleanest, volumes is not an option always and then depends on host shm. |
Thanks! Added shm_size and the build is green (twice in a row). I've squashed my commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides my comment on shm size, I am all good
But please note that these changes will have no effect on ezrobot on ci, as ezrobot atm uses https://github.com/ezsystems/ezpublish-docker
@@ -13,6 +13,8 @@ services: | |||
- SCREEN_DEPTH=24 | |||
networks: | |||
- backend | |||
# Because of: https://github.com/elgalu/docker-selenium/issues/20 | |||
shm_size: 1g |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is 1g really needed?
Fortunately, 1g is then not reserved immediately, but there will be an issue on ci if 5 of such containers run concurrently and they all actually use 1g of shm each....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
64m is default value in docker... Maybe 128m would do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, I guess tomorrow I'll iterate possible values (let's say 128mb, 256mb, 512mb and 1gb) and we'll se at which point the tests become stable.
Description
The Firefox version used together with Selenium Server 2.53.1 is no longer able to login to Studio admin panel, so there is a need for upgrade to keep Behat tests running.
My solution is to change the Selenium version to 3.4.0 and the driver to Chrome.
My reasoning is as follows:
I think it's best when the same driver is used cross the whole project (that's why this PR is to ezplatform and not ezplatform-ee). So far I've tested it locally and the tests look pretty stable to me.
Any suggestions are welcome.
I'm marking it as WIP until the Travis build passes.