-
Notifications
You must be signed in to change notification settings - Fork 37
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
With Travis - Behat fails, selenium not running. #70
Comments
Also moving to plugin-ci 2.x. And disabling behat tests: - They don't work with sudo: false - They work with sudo: required but that adds inestability to results in general. Multiple random failures installing stuff. So disabling seems to be the best option for now, the problem is being traced @ open-lms-open-source/moodle-plugin-ci#70
As commented @ 4f97e21, I've tried with So, particularly, I'm back to Just sharing, not really sure which the selenium / java problem is. Annoying. Ciao :-) |
Hi @stronk7 I am also getting inconsistent problems updating packages and such. I disable while developing, but when merging I still want the peace of mind of behat tests passing Please let us know if you find a workaround, Eloy ... Thanks |
I'm seeing the same issues with my plugins. Behat's important to me, so I'm setting |
Also moving to plugin-ci 2.x. And disabling behat tests: - They don't work with sudo: false - They work with sudo: required but that adds inestability to results in general. Multiple random failures installing stuff. So disabling seems to be the best option for now, the problem is being traced @ open-lms-open-source/moodle-plugin-ci#70
Also moving to plugin-ci 2.x. And disabling behat tests: - They don't work with sudo: false - They work with sudo: required but that adds inestability to results in general. Multiple random failures installing stuff. So disabling seems to be the best option for now, the problem is being traced @ open-lms-open-source/moodle-plugin-ci#70
Also moving to plugin-ci 2.x. And disabling behat tests: - They don't work with sudo: false - They work with sudo: required but that adds inestability to results in general. Multiple random failures installing stuff. So disabling seems to be the best option for now, the problem is being traced @ open-lms-open-source/moodle-plugin-ci#70
Do you guys have more example of build failures? Eloy's failure has nothing to do with Behat, it's failing to install Java8 ( |
hi @mrmark .. I have more examples but that's exactly the same problem. We currently have a custom docker image to run moodle-plugin-ci to be used in our GitLab, but it has a lot of custom code. If we make it more flexible do you think it would be a approach to running it Travis? Hopefully would speedup part of initialisation (it would only pull changes in Moodle since the image was built, composer init, npms, etc) and less prone to Travis infrastructure changes. The initialisation process would still run as phpunit/behat init is required after the plugin is added. If I went ahead, would you be interested in that or do you think its a dead end? |
@mrmark Sure. This is for the https://github.com/LafColITS/moodle-tool_hidecourses plugin:
|
@mackensen @mrmark here is my working example w/ HTH, |
Hi, just note that only In fact it was working ok for my plugin, but because of a little restriction with checkboxes I needed to add the Just to explain/clarify why tests seem to work to some people without problem. It's not magic or luck. Only |
OT: just came to my brain... could it be some problem with IPv4/IPv6 ? I've had a flash that some time ago I had to force IPv4 in some places ( As said... just a blind shot! |
That was proposed in #57 to use Thanks everyone for all the examples, feedback! |
TNX @stronk7! |
Having lots of troubling figuring out the problem. Have a build I'm debugging here: https://travis-ci.org/moodlerooms/moodle-plugin-ci/jobs/334948327
Anyone know what's going on? Any guesses? |
Hi @mrmark , as you said PHP server (behat site) looks fine. I'd investigate towards the selenium server, I am guessing a driver/selenium problem from "UnsupportedCommandException" at https://travis-ci.org/moodlerooms/moodle-plugin-ci/jobs/334948327#L1278 -- maybe a mismatch of firefox version and selenium driver? |
@mrmark @roperto HTH, |
Thanks @scara, that might be the problem, I commented in travis-ci/travis-ci#8711 There is
If it is indeed a problem with |
Great @mrmark! For the record see another example using HTH, |
Thanks for the continued feedback, but doesn't appear to work unfortunately, https://travis-ci.org/moodlerooms/moodle-plugin-ci/builds/335718087 |
Hi @mrmark,
After more digging the web I found SeleniumHQ/selenium-google-code-issue-archive#3280 and SeleniumHQ/selenium@1ada6dd: it looks like there's no need to force IPv4 but IIUC to force the hosts preference to HTH, |
FYI yesterday I've also filed travis-ci/travis-ci#9167 which could solve our issue here if the Bad Request is actually due to the archived issue I've found. At the moment I'm not sure if we'd need some IPv4 tuning after that fix: will see. |
Thanks @scara for your help, I think I'll wait for the Travis issue to get some traction before I try anything else on this. |
With travis-ci/travis-ci#9167 fixed, still doesn't work :( Re-ran my master branch with no luck and same for the debugging one.
|
Hi @mrmark, |
As explained in open-lms-open-source/moodle-plugin-ci#70, selenium server is not running due to some issue when "sudo: false" and, therefore, @javascript behat tests are not working.
As explained in open-lms-open-source/moodle-plugin-ci#70, selenium server is not running due to some issue when "sudo: false" and, therefore, @javascript behat tests are not working.
Minor update: First, as of 2.3.0, recommending Second, think I sort of verified that the problem in the container build system is with
From what I can tell, |
Thanks @mrmark for the update. I am affected by this too (e.g. https://travis-ci.org/mudrd8mz/moodle-block_course_contents/jobs/336000695). |
It seems like a Java problem (surprise surprise)
Workaround: add
sudo: required
to .travis.ymlThe text was updated successfully, but these errors were encountered: