Skip to content
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

Use quiet-ci Logger In Non-Interactive Environments #942

Merged
merged 4 commits into from
Oct 27, 2023
Merged

Use quiet-ci Logger In Non-Interactive Environments #942

merged 4 commits into from
Oct 27, 2023

Conversation

ObliviousHarmony
Copy link
Contributor

We have a repository that uses PNPM and makes heavy use of the --filter syntax for running scripts concurrently across different projects. Each of these scripts are ran non-interactively and so the progress spinner and line writeover result in useless output. We can remedy this by checking for process.stdout.isTTY in addition to process.env.CI when deciding what the default logger should be.

Like with CI, running wireit in a non-TTY environment does not
properly support the spinner and overwriting lines. We should
use the QuietCiLogger in this case to present better output.
README.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@augustjk augustjk requested a review from rictic October 25, 2023 20:45
ObliviousHarmony and others added 2 commits October 25, 2023 13:53
Co-authored-by: Augustine Kim <[email protected]>
Copy link
Member

@rictic rictic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like an improvement.

As an aside, running multiple wireit scripts in parallel from another runner (like pnpm --filter) is supported but will be suboptimal, because it will invoke wireit repeatedly, run cross-package dependencies multiple times, re-check caches, schedule too much simultaneous work, etc

It will generally be more optimal to use a single runner.

@rictic rictic enabled auto-merge (squash) October 27, 2023 00:20
@rictic rictic merged commit b32d93c into google:main Oct 27, 2023
11 checks passed
@ObliviousHarmony
Copy link
Contributor Author

I know @rictic, I opened #944 to propose a way Wireit could be used with another runner without the performance penalty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants