-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Parallelize artifact downloads. Update progress bar styling. #3952
Parallelize artifact downloads. Update progress bar styling. #3952
Conversation
2476ee3
to
4bb54ae
Compare
23daab2
to
9a5ce60
Compare
This comment was marked as outdated.
This comment was marked as outdated.
d1da835
to
b6a94e7
Compare
54f6963
to
77e3b6a
Compare
|
||
errors = Any[] | ||
# first try downloading from Pkg server | ||
# TODO: only do this if Pkg server knows about this package |
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.
Lines 918 to 931 in a717900
# Check if the current package is available in one of the registries being tracked by the pkg server | |
# In that case, download from the package server | |
if server_registry_info !== nothing | |
server, registry_info = server_registry_info | |
for reg in ctx.registries | |
if reg.uuid in keys(registry_info) | |
if haskey(reg, pkg.uuid) | |
url = "$server/package/$(pkg.uuid)/$(pkg.tree_hash)" | |
push!(archive_urls, url => true) | |
break | |
end | |
end | |
end | |
end |
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.
Sounds good, but we'd have to feed the pkg info into this point. I'm unsure of the relationship between packages and artifacts and the pkgserver. Probably best as another PR.
download_states = Dict{String, Tuple{Bool,MiniProgressBar}}() | ||
errors = Channel{Any}() | ||
is_done = false | ||
ansi_moveup(n::Int) = string("\e[", n, "A") |
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.
Ideally this ANSI stuff could be moved to the progress bar code where there is something like:
struct MultiProgressBar
progress_bars::Vector{MiniProgressBar}
end
which takes care of the printing?
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.
Yeah. Will handle this in a follow-on. Added a TODO
I think the number of significant figures in Edit: JuliaLang/julia#55495 |
fd0e9f6
to
2160523
Compare
I updated / modernized the progress bar styling a bit. It now looks like: Screencast.from.08-15-2024.12.19.04.PM.webm |
This comment was marked as resolved.
This comment was marked as resolved.
Lets give this a go. @KristofferC and I have both been testing it out. |
This PR
Master
Screen.Recording.2024-08-15.at.12.49.12.AM.mov
Todo