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

feat(hydro_deploy): improve progress UX by collapsing nested groups #1411

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

shadaj
Copy link
Member

@shadaj shadaj commented Aug 22, 2024

Now, when a group only has a single active task, we skip printing a line for the group itself and instead collapse its information into the line for the inner task (recursively as necessary). This allows us to show more fine grained progress without overflowing the console.

Copy link

cloudflare-workers-and-pages bot commented Aug 22, 2024

Deploying hydroflow with  Cloudflare Pages  Cloudflare Pages

Latest commit: fb24258
Status: ✅  Deploy successful!
Preview URL: https://91e9e1be.hydroflow.pages.dev
Branch Preview URL: https://pr1411.hydroflow.pages.dev

View logs

@shadaj
Copy link
Member Author

shadaj commented Aug 22, 2024

Output example:

Screenshot 2024-08-21 at 11 11 47 PM

@shadaj shadaj force-pushed the pr1411 branch 2 times, most recently from 7e187fe to 9494ead Compare August 22, 2024 06:30
@shadaj shadaj requested a review from MingweiSamuel August 22, 2024 06:34
Now, when a group only has a single active task, we skip printing a line for the group itself and instead collapse its information into the line for the inner task (recursively as necessary). This allows us to show more fine grained progress without overflowing the console.
@MingweiSamuel
Copy link
Member

Amazing I was thinking to do this

Copy link
Member

@MingweiSamuel MingweiSamuel left a comment

Choose a reason for hiding this comment

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

Nicely self-contained

Comment on lines +84 to +91
format!(
" ({}/{}/{})",
finished_count,
started_count,
queued_count + finished_count + started_count
)
}
None => format!(" ({}/{}/?)", finished_count, started_count),
Copy link
Member

Choose a reason for hiding this comment

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

Hmm maybe a format like {}+{}/{} would be more understandable? bikeshed

@shadaj shadaj merged commit fedd3ef into main Aug 22, 2024
14 checks passed
@shadaj shadaj deleted the pr1411 branch August 22, 2024 18:35
shadaj added a commit that referenced this pull request Mar 11, 2025
…1411)

Now, when a group only has a single active task, we skip printing a line
for the group itself and instead collapse its information into the line
for the inner task (recursively as necessary). This allows us to show
more fine grained progress without overflowing the console.
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.

2 participants