-
Notifications
You must be signed in to change notification settings - Fork 78
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
Update make commands to set no-TTY flag #376
Update make commands to set no-TTY flag #376
Conversation
Related issue: |
Triggered a test failure through this PR and verified we see output now! |
The only weird thing about this change is that when you run This doesn't change the functionality but the interaction with the terminal isn't the same. The new output is no longer color coded and formatting might be a little different. This doesn't concern me too much though because we don't really use these |
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.
Great find @earmenda ! 🙌🏽
Nice work finding this - do you have a link to a GH actions change or announcement that confirms they disable TTY mode in runners now? We should preserve TTY mode in local terminals. Can we include this flag only in the |
@PSalant726 I made the changes you suggested. We now only set CI_ARGS when the CI environment variable is set. This is based on this - https://docs.github.com/en/actions/learn-github-actions/environment-variables |
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.
LGTM!
* validates date field ranges are sane * add extra type checking * use datetimes only in the tests
* validates date field ranges are sane * add extra type checking * use datetimes only in the tests
Closes #375
Code Changes
Steps to Confirm
Pre-Merge Checklist
Description Of Changes
Docker Compose version 2.2.2 used to guess whether to set the
no-TTY
flag when running thedocker compose run
command. As of 2.2.3 the flag is never set for you.See the related PR - docker-compose-9035
To understand the flag better, see the following:
https://stackoverflow.com/questions/30137135/confused-about-docker-t-option-to-allocate-a-pseudo-tty
What I think was happening before was that when github actions ran our
docker compose run
command it would set theno-TTY
flag for us, and when running locally it would not.I can't say i 100% understand how this flag works or why we don't see output without it but setting it should be the equivalent of our previous behavior.