Skip to content

Commit 43e6c13

Browse files
committed
Print a message when no metrics.json is found
1 parent b371c4b commit 43e6c13

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
@@ -245,6 +245,8 @@ jobs:
245245
./build/citool/debug/citool postprocess-metrics build/metrics.json ${GITHUB_STEP_SUMMARY}
246246
elif [ -f obj/build/metrics.json ]; then
247247
./build/citool/debug/citool postprocess-metrics obj/build/metrics.json ${GITHUB_STEP_SUMMARY}
248+
else
249+
echo "No metrics.json found"
248250
fi
249251
250252
- name: upload job metrics to DataDog

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)