Skip to content

Commit 50ba685

Browse files
Skip incremental scenario diffs on doc builds
Incremental isn't supported with rustdoc so these end up failing on trying to find the relevant files.
1 parent a3b9c2d commit 50ba685

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

collector/src/main.rs

+12
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ impl ScenarioKind {
8888
vec![ScenarioKind::Full]
8989
}
9090

91+
fn is_incr(self) -> bool {
92+
match self {
93+
ScenarioKind::Full => false,
94+
ScenarioKind::IncrFull | ScenarioKind::IncrUnchanged | ScenarioKind::IncrPatched => {
95+
true
96+
}
97+
}
98+
}
99+
91100
fn default() -> Vec<ScenarioKind> {
92101
Self::all()
93102
}
@@ -501,6 +510,9 @@ fn generate_cachegrind_diffs(
501510
if let ScenarioKind::IncrPatched = scenario_kind {
502511
continue;
503512
}
513+
if build_kind == BuildKind::Doc && scenario_kind.is_incr() {
514+
continue;
515+
}
504516
let filename = |prefix, id| {
505517
format!(
506518
"{}-{}-{}-{:?}-{:?}",

0 commit comments

Comments
 (0)