-
Notifications
You must be signed in to change notification settings - Fork 12k
Don't print progress in a non-TTY context #8148
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
Comments
I agree that we should use the API to determine the system default. Would be really helpful. |
The default value is changed from `true` to `progress.stdout.isTTY`. It still has lower priority than value specified by command line flag or in the .angular-cli.json config. Fixes angular#8148
The default value is changed from `true` to `progress.stdout.isTTY`. It still has lower priority than value specified by command line flag or in the .angular-cli.json config. Fixes angular#8148
The default value is changed from `true` to `progress.stdout.isTTY`. It still has lower priority than value specified by command line flag or in the .angular-cli.json config. Fixes angular#8148
The default value is changed from `true` to `progress.stdout.isTTY`. It still has lower priority than value specified by command line flag or in the .angular-cli.json config. Fixes #8148
Something still doesn't work here. In Karma tests run via WebStorm |
@mgol I don't use GitLab CI, so don't know why it does not work there. Regarding WebStorm: my PR only changes the default for the |
@devoto13 OK, thanks, I know what's happening now. In GitLab CI
That's a Webpack thing, not CLI one, though so here what's needed is mostly the Karma modification. I'll see what I can do. |
…de TTY Fixes a shortcoming of angular#8501. Apply same logic for setting --progress flat when running Karma directly (as opposed to running it using `ng test` command). Fixes angular#8148
…de TTY Fixes a shortcoming of angular#8501. Apply same logic for setting --progress flag when running Karma directly (as opposed to running it using `ng test` command). Fixes angular#8148
The default value is changed from `true` to `progress.stdout.isTTY`. It still has lower priority than value specified by command line flag or in the .angular-cli.json config. Fixes angular#8148
…de TTY Fixes a shortcoming of angular#8501. Apply same logic for setting --progress flag when running Karma directly (as opposed to running it using `ng test` command). Fixes angular#8148
This has regressed in CLI 6, see a new bug report: #11195. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
Run
ng build --prod --aot
in a CI environment like Travis CI or GitLab CI. You'll see something like:This can be alleviated by passing the
--no-progress
flag tong build
but it introduces a mental burden to add that to every command invoked on CI. If you have many such commands or if they're deeply nested in npm scripts this may require duplicating a lot of code.The log given by the failure.
N/A
Desired functionality.
Angular CLI should not print progress when run in a non-TTY environment. Optionally it could switch its reporter to something like
dots
that only appends a dot when something happens and doesn't try to rewrite the output, printing a lot of noise.Mention any other details that might be useful.
Node.js has an API for this exact purpose:
process.stdout.isTTY
, see https://nodejs.org/api/tty.htmlThe text was updated successfully, but these errors were encountered: