Skip to content

Commit 3dae534

Browse files
committed
Print a message when no metrics.json is found
1 parent 273055f commit 3dae534

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
@@ -225,6 +225,8 @@ jobs:
225225
./build/citool/debug/citool postprocess-metrics build/metrics.json ${GITHUB_STEP_SUMMARY}
226226
elif [ -f obj/build/metrics.json ]; then
227227
./build/citool/debug/citool postprocess-metrics obj/build/metrics.json ${GITHUB_STEP_SUMMARY}
228+
else
229+
echo "No metrics.json found"
228230
fi
229231
230232
# 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)