-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(core): show progress on ci if graph construction takes longer than expected #29392
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Your CI Pipeline Execution ↗ for commit 0df7ef5 is in progress ⏳
☁️ Nx Cloud last updated this comment at |
|
||
/** | ||
* Constructs a new {@link DelayedSpinner} instance. | ||
* | ||
* @param message The message to display in the spinner | ||
* @param ms The number of milliseconds to wait before creating the spinner | ||
*/ | ||
constructor(message: string, ms: number = 500) { | ||
constructor(message: string, ms?: number); |
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.
Is this used? If not, let's get rid of this signature.
@@ -62,4 +98,4 @@ export class DelayedSpinner { | |||
} | |||
} | |||
|
|||
export const SHOULD_SHOW_SPINNERS = process.stdout.isTTY; | |||
export const SHOULD_SHOW_SPINNERS = process.stdout.isTTY && !isCI(); |
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.
This doesn't need to be exported anymore right?
@@ -64,7 +64,7 @@ export class DelayedSpinner { | |||
if (this.spinner && SHOULD_SHOW_SPINNERS) { | |||
this.spinner.text = message; | |||
} else if (this.lastMessage && this.lastMessage !== message) { | |||
console.log(message); | |||
console.error(message); |
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.
A warning is probably better?
ed64efb
to
0df7ef5
Compare
Progress spinners currently only show up when the terminal is a tty. This updates it to show static text on CI, but at a longer duration