Skip to content

feat(cli): disable progress bar in CI environment #1040

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

Merged
merged 6 commits into from
Jul 30, 2025
Merged

Conversation

matejchalk
Copy link
Collaborator

The immediate motivation for this change is to avoid --no-progress argument being used in CI, which is part of an effort to avoid extra CLI arguments which restrict cache reuse in Nx monorepos.

In the future, we'd like to get rid of the progress bar completely and replace it with a spinner. Either way, it would make sense to only show these UI elements when not in running in CI. The --progress argument may be removed in the future though, we'll see. The future improvements are part of a larger effort, see:

I've created some general purpose utility functions for correctly parsing boolean environment variables, so it now supports conventions like true/false, 1/0, yes/no, on/off, etc. I've reused those for the CP_VERBOSE variable as well.

@github-actions github-actions bot added 📖 Project documentation improvements or additions to the project documentation 🔬 testing writing tests 🧩 cli 🧩 utils 🧩 ci labels Jul 29, 2025
@matejchalk matejchalk merged commit b0ed2fa into main Jul 30, 2025
15 of 17 checks passed
@matejchalk matejchalk deleted the progress-off-in-ci branch July 30, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧩 ci 🧩 cli 📖 Project documentation improvements or additions to the project documentation 🔬 testing writing tests 🧩 utils
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants