-
Notifications
You must be signed in to change notification settings - Fork 397
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
Increase Robo Executor Time Out or Make it configurable #1840
Comments
I had similar problems with the Travis behat tests, but this turned out to be a symptom for me, and the timeout threshold was not the culprit. I had opened #1757 for this issue, but maybe it's still an issue for you if that's what's happening behind the scenes. The steps I took to figure out this error were not really that easy, but I'll attempt to explain...
TLDR; - I don't think your problem is the timeout. The "runserver" command is actually really fast and I cant imagine why it would take 15+ seconds. I'm guessing there is something else going on with your build on Travis, because this same thing happened to me when upgrading to 8.9.0 a few different times (for different reasons). |
Hi David, thanks for your thought. That's an interesting idea. Honestly, I have not done any testing to check how long it takes for Regards the debug mode in Travis I also find it is frustrating when an error happens (exit code 1) Travis server closes the connection immediately and all the history of that connection is gone. I have following script
This should be a better way to do that. |
Thank @grasmash :) |
Ugh, I think this is happening to me and it's rather frustrating. |
My system information:
When I run this command via .travis.yml in Travic-CI:
I get the following output:
Recently, we are trying to upgrade BLT from 8.6.3. The second attempt failed when we tried to upgrade to 8.8.2 due to some strange behat error reported in issue 1566. In this week we are trying to do this again and target to upgrade BLT to the latest 8.9.0. After we struggle a couple of days and solved some dramas, the upgrade works.
One of the issues is we keep seeing time out errors when command
tests:behat
tries to launch the web server in Travis. We have checked it is caused by the short time out inAcquia\Blt\Robo\Common\Exectuor
. The maximum time out in Robo executor defaults to 15s which is too short. When the time runs out, it will throw an error immediately, which caused this issue.As this part works when we use BLT 8.6.3 with phing framework, so we dig the code and try to figure out what's the difference.
As you can see the original "tests:run-server" task does not return "timeoutproperty" which means if it times out after 10s no error will be raised. As the php internal server is a subprocess, it still runs after time out and will be up soon after a couple of seconds. So everything works OK.
Solution
Increase time out or make it configurable via yml.
Workaround
As a temporary fix we add the following line to increase time out to 60s in the travis.
The text was updated successfully, but these errors were encountered: