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
Implement a method "isTtySupported" for setTty method. #136
Conversation
Would like a cleaner solution than this. Just turn off TTY entirely to be honest. |
I think this is a real problem. Sometimes tty is available but not writeable. I have a similar problem at the moment:
Without -T I will run into this issue: docker/compose#3352 Perpaps it's a docker/docker-compose issue and it will be fixed with docker 1.14. notice perhaps it's a docker-compose issue because this works for me: |
Yeah I'm getting this issue when trying to run it through Jenkins |
Was this fixed anywhere? |
The same issue when running
|
same issue in Gitlab CI |
Can anybody from this thread confirm if #223 fixes the problem? |
@deleugpn |
IMHO it's a docker's issue. If i run: it would seem |
@deleugpn I'll give it a try in a few minutes. |
@matrunchyk let me know. By me it still doesn't work. |
I try run in php file with ssh, but i have this error:
Who knows how to fix? |
As a workaround,
|
this problem occurred "Symfony\Component\Process\Process" following line. To solve this problem, should avoid that. |
@deleugpn Due to some no-idea-reason it doesn't work. |
@matrunchyk Sorry if I sound rude, but it has no way of not working. What makes you think it doesn't work? |
@deleugpn Ahh sorry, I didn't notice you've changed your original commit. Definitely, now it fixes the issue with TTY. |
this problem fixed by #226 https://app.wercker.com/madworks/dusk-on-wercker-example/runs/build/58f627187314290001d91c15?step=58f6279c8380e700019091f9 thanks everyone. |
@deleugpn Thanks :D |
@deleugpn thank you 4 your update. i mean in the new release. |
@giolf When Taylor tags a new release. I suggest you to stick with |
It seems the problem still exists on CentOS 7.2.1511 using gitlabci with dev-master for dusk (and trying with --colors and --debug) Warning: TTY mode requires /dev/tty to be read/writable. The CI does see colors and the tests fail / succeed so not sure if it's something to ignore or not |
@CoolGoose that is just a warning, the fact that the tests are running means the fix worked. Before, CI tools couldn't even run the tests at all. |
I tried dusk with PhantomJS on Wercker. and I have same issue this.
https://laracasts.com/discuss/channels/testing/tty-mode-requires-devtty-to-be-writable
Like that comment "run as script" can be executed.
but Wercker continued build when dusk fails, probably exit code does not return.
This problem will be occored on CircleCI, GitLab CI, cron and more.
I fixed that, change to the same logic Symfony\Component\Process\Process#setTty()
https://github.com/symfony/process/blob/master/Process.php#L1036
and this is execution result.
iTerm2
jenkins on MacOSX