Skip to content

Commit b4ac987

Browse files
authored
Merge pull request #1957 from Kobzol/fix-site-queue-error
Do not return empty commit list when a parent commit is missing
2 parents 533f2dd + 73e7a7a commit b4ac987

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

site/src/load.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,12 @@ fn sort_queue(
455455
mr.parent_sha().map_or(true, |parent| done.contains(parent))
456456
});
457457

458+
// No commit is ready for benchmarking. This can happen e.g. when a try parent commit
459+
// was forcefully removed from the master branch of rust-lang/rust. In this case, just
460+
// let the commits be benchmarked in the current order that we have, these benchmark runs
461+
// just won't have a parent result available.
458462
if level_len == 0 {
459-
return vec![];
463+
return unordered_queue;
460464
}
461465

462466
let level = &mut unordered_queue[finished..][..level_len];

0 commit comments

Comments
 (0)