Skip to content

Commit e4e84ac

Browse files
committed
Print a message when no metrics.json is found
1 parent 7313eac commit e4e84ac

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ jobs:
226226
./build/citool/debug/citool postprocess-metrics build/metrics.json ${GITHUB_STEP_SUMMARY}
227227
elif [ -f obj/build/metrics.json ]; then
228228
./build/citool/debug/citool postprocess-metrics obj/build/metrics.json ${GITHUB_STEP_SUMMARY}
229+
else
230+
echo "No metrics.json found"
229231
fi
230232
231233
# This job isused to tell bors the final status of the build, as there is no practical way to detect

src/ci/citool/src/metrics.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub fn postprocess_metrics(metrics_path: &Path, summary_path: &Path) -> anyhow::
1010
let suites = get_test_suites(&metrics);
1111

1212
if suites.is_empty() {
13+
eprintln!("No test suites found in {}", metrics_path.display());
1314
return Ok(());
1415
}
1516

@@ -24,6 +25,8 @@ pub fn postprocess_metrics(metrics_path: &Path, summary_path: &Path) -> anyhow::
2425
writeln!(file, "\n# Test results\n")?;
2526
writeln!(file, "{table}")?;
2627

28+
eprintln!("Written test suite summary into {}", summary_path.display());
29+
2730
Ok(())
2831
}
2932

0 commit comments

Comments
 (0)