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

improvement(fluid-build): Add a spinner with additional info for incremental task checks #23282

Merged
merged 9 commits into from
Jan 15, 2025

Conversation

tylerbutler
Copy link
Member

Adds a CLI spinner to display a little more feedback when loading the build graph and checking incremental tasks. Currently fluid-build just sits there for awhile and looks like it's hung. There is more that we could do, but this is a step in the right direction.

@Copilot Copilot bot review requested due to automatic review settings December 10, 2024 21:01
@github-actions github-actions bot added area: build Build related issues base: main PRs targeted against main branch labels Dec 10, 2024

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated no suggestions.

Files not reviewed (1)
  • build-tools/packages/build-tools/package.json: Language not supported
@tylerbutler tylerbutler requested a review from a team January 10, 2025 22:40
@@ -532,11 +533,14 @@ export class BuildGraph {
return succeeded;
}

public async build(timer?: Timer): Promise<BuildResult> {
public async build(timer?: Timer, spinner?: Spinner): Promise<BuildResult> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it need to be passed as a parameter? In this case the caller starts and finishes its use of it so it seems like it wouldn't cause issues, but in general it feels like this would be better off being its own instance so it doesn't potentially interfere with the one passed in (if that one was still in progress, for example)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I honestly have no idea why I did it that way... fixed in latest.

@tylerbutler tylerbutler enabled auto-merge (squash) January 15, 2025 22:01
@tylerbutler tylerbutler merged commit 03c3491 into microsoft:main Jan 15, 2025
26 checks passed
@tylerbutler tylerbutler deleted the bt-fluid-build-spinner branch January 15, 2025 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Build related issues base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants