Increase attempts and timeout in publish script (#5084)

The 2.0.0 publication failed due to the index not being updated, so do
more attempts and wait longer to try to get things working.
This commit is contained in:
Alex Crichton
2022-10-20 23:13:19 -05:00
committed by GitHub
parent 7669a96179
commit 204d4c332c

View File

@@ -156,7 +156,7 @@ fn main() {
// publish in a loop and we remove crates once they're successfully
// published. Failed-to-publish crates get enqueued for another try
// later on.
for _ in 0..5 {
for _ in 0..10 {
crates.retain(|krate| !publish(krate));
if crates.is_empty() {
@@ -167,7 +167,7 @@ fn main() {
"{} crates failed to publish, waiting for a bit to retry",
crates.len(),
);
thread::sleep(Duration::from_secs(20));
thread::sleep(Duration::from_secs(40));
}
assert!(crates.is_empty(), "failed to publish all crates");