Skip to content

Commit cecf167

Browse files
committed
Add a note about the test dashboard to the post-merge report
1 parent 08cb187 commit cecf167

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/ci/citool/src/main.rs

+15-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::github::JobInfoResolver;
2424
use crate::jobs::RunType;
2525
use crate::metrics::{JobMetrics, download_auto_job_metrics, download_job_metrics, load_metrics};
2626
use crate::test_dashboard::generate_test_dashboard;
27-
use crate::utils::load_env_var;
27+
use crate::utils::{load_env_var, output_details};
2828

2929
const CI_DIRECTORY: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/..");
3030
const DOCKER_DIRECTORY: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/../docker");
@@ -188,6 +188,20 @@ fn post_merge_report(db: JobDatabase, current: String, parent: String) -> anyhow
188188

189189
let mut job_info_resolver = JobInfoResolver::new();
190190
output_test_diffs(&metrics, &mut job_info_resolver);
191+
192+
output_details("Test dashboard", || {
193+
println!(
194+
r#"\nRun
195+
196+
```bash
197+
cargo run --manifest-path src/ci/citool/Cargo.toml -- \
198+
test-dashboard {current} --output-dir test-dashboard
199+
```
200+
And then open `test-dashboard/index.html` in your browser to see an overview of all executed tests.
201+
"#
202+
);
203+
});
204+
191205
output_largest_duration_changes(&metrics, &mut job_info_resolver);
192206

193207
Ok(())

0 commit comments

Comments
 (0)