-
Notifications
You must be signed in to change notification settings - Fork 87
feat: Add support for repodata patching in rattler-index, fix silent failures #1129
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
Conversation
)) | ||
}) | ||
.collect::<Vec<_>>(); | ||
try_join_all(tasks).await?; |
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 was silently failing before because it only checked whether the join handles were okay but not whether the actual return values of the tasks were
pb.abandon_with_message(format!( | ||
"{} {}", | ||
console::style("Failed to index").red(), | ||
console::style(subdir.as_str()).dim() | ||
)); |
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 is not perfect as the progress bar can get overwritten by other tasks that are still executed after this failure. haven't seen a nice way to avoid this behavior
i think we can keep it for now like this since the error messages are printed anyway and i expect this script to be executed in non-interactive environments anyway most of the time
@@ -32,13 +32,18 @@ struct Cli { | |||
|
|||
/// The maximum number of packages to process in-memory simultaneously. | |||
/// This is necessary to limit memory usage when indexing large channels. | |||
#[arg(long, default_value = "128", global = true)] | |||
#[arg(long, default_value = "32", global = true)] |
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.
when testing it out with 128 on aws s3, i regularly got errors that weren't there when limiting ourselves to 32 maximum concurrent downloads
the failing JS tests don't look related, right? |
@wolfv @baszalmstra this is ready for review |
Just FYI, a PatchInstructions v2 file will be landing soon: conda/ceps#108 |
Will keep this in mind when implementing sharding in rattler-index 👍🏻 |
Description
xref #1096