Skip to content

Commit 2f81d28

Browse files
Add extra logging to master commit fetch
1 parent 320e018 commit 2f81d28

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

site/src/github.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -521,12 +521,14 @@ pub async fn post_finished(ctxt: &SiteCtxt) {
521521
conn.queued_commits(),
522522
conn.in_progress_artifacts()
523523
);
524-
let master_commits = if let Ok(mcs) = master_commits {
525-
mcs.into_iter().map(|c| c.sha).collect::<HashSet<_>>()
526-
} else {
527-
// If we can't fetch master commits, return.
528-
// We'll eventually try again later
529-
return;
524+
let master_commits = match master_commits {
525+
Ok(mcs) => mcs.into_iter().map(|c| c.sha).collect::<HashSet<_>>(),
526+
Err(e) => {
527+
log::error!("posting finished did not load master commits: {:?}", e);
528+
// If we can't fetch master commits, return.
529+
// We'll eventually try again later
530+
return;
531+
}
530532
};
531533

532534
for aid in in_progress_artifacts {
@@ -606,7 +608,7 @@ fn master_run_body(direction: Option<Direction>) -> String {
606608

607609
format!(
608610
"
609-
{next_steps}
611+
{next_steps}
610612
611613
@rustbot label: {label}",
612614
next_steps = next_steps,
@@ -637,7 +639,7 @@ Benchmarking this pull request likely means that it is \
637639
perf-sensitive, so we're automatically marking it as not fit \
638640
for rolling up. While you can manually mark this PR as fit \
639641
for rollup, we strongly recommend not doing so since this PR led to changes in \
640-
compiler perf.{next_steps}
642+
compiler perf.{next_steps}
641643
642644
@bors rollup=never
643645
@rustbot label: +S-waiting-on-review -S-waiting-on-perf {label}",

0 commit comments

Comments
 (0)