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

Homogenize the progress bar in Pkg and base package precompilation #55588

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

KristofferC
Copy link
Member

  • Fix a missing check to always_reprint that has been fixed in Pkg
  • The header was in light_green while in Pkg it was green.
  • The progress bar for downloading packages and artifacts was in green while compiling package was in blue.
  • The progress bar is now attached to the "Precompiling packages" header like for artifact and package downloads.

- The header was in `light_green` while in Pkg it was `green`.
- The progress bar for downloading packages and artifacts was in green while compiling package was in blue.
- The progress bar is now attached to the "Precompiling packages" header like for artifact and package downloads.
end
t = Timer(0; interval=1/10)
anim_chars = ["◐","◓","◑","◒"]
i = 1
last_length = 0
bar = MiniProgressBar(; indent=2, header = "Progress", color = Base.info_color(), percentage=false, always_reprint=true)
bar = MiniProgressBar(; indent=0, header = "Precompiling packages ", color = :green, percentage=false, always_reprint=true)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
bar = MiniProgressBar(; indent=0, header = "Precompiling packages ", color = :green, percentage=false, always_reprint=true)
bar = MiniProgressBar(; indent=0, header = "Precompiling packages", color = :green, percentage=false, always_reprint=true)

Otherwise there's an extra space before the bar
Screenshot 2024-08-29 at 1 15 34 PM

Copy link
Member

@IanButterworth IanButterworth Aug 29, 2024

Choose a reason for hiding this comment

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

Which we don't do for artifacts
Screenshot 2024-08-29 at 1 19 44 PM

But we do have double space for registry downloads, which needs fixing in Pkg
Screenshot 2024-08-29 at 1 21 42 PM

Copy link
Member Author

Choose a reason for hiding this comment

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

It was to line up the start of the artifact and download bar with the precompile bar.

Copy link
Member

Choose a reason for hiding this comment

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

I think they're never all side by side so the inconsistent spacing seems odder than not being aligned?

Copy link
Member

Choose a reason for hiding this comment

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

Either way seems an improvement so let's go with it and see how it looks

@IanButterworth IanButterworth merged commit 1e21727 into master Aug 30, 2024
5 of 7 checks passed
@IanButterworth IanButterworth deleted the kc/prog_bar_precompile branch August 30, 2024 13:37
KristofferC added a commit that referenced this pull request Sep 12, 2024
…55588)

- Fix a missing check to `always_reprint` that has been fixed in Pkg
- The header was in `light_green` while in Pkg it was `green`.
- The progress bar for downloading packages and artifacts was in green
while compiling package was in blue.
- The progress bar is now attached to the "Precompiling packages" header
like for artifact and package downloads.

Co-authored-by: KristofferC <kristoffer.carlsson@juliacomputing.com>
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