Skip to content

Commit 92415e1

Browse files
committed
Improve the support bundle report on a step-by-step basis
1 parent 015f2e9 commit 92415e1

File tree

4 files changed

+186
-83
lines changed

4 files changed

+186
-83
lines changed

dev-tools/omdb/src/bin/omdb/nexus.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ use std::fs::OpenOptions;
9898
use std::os::unix::fs::PermissionsExt;
9999
use std::str::FromStr;
100100
use std::sync::Arc;
101+
use std::time::Duration;
101102
use support_bundle_viewer::LocalFileAccess;
102103
use support_bundle_viewer::SupportBundleAccessor;
103104
use tabled::Tabled;
@@ -2612,6 +2613,7 @@ fn print_task_support_bundle_collector(details: &serde_json::Value) {
26122613
listed_in_service_sleds,
26132614
listed_sps,
26142615
activated_in_db_ok,
2616+
mut steps,
26152617
ereports,
26162618
}) = collection_report
26172619
{
@@ -2623,6 +2625,19 @@ fn print_task_support_bundle_collector(details: &serde_json::Value) {
26232625
println!(
26242626
" Bundle was able to list service processors: {listed_sps}"
26252627
);
2628+
2629+
steps.sort_unstable_by_key(|s| s.start);
2630+
for step in steps {
2631+
let duration = (step.end - step.start)
2632+
.to_std()
2633+
.unwrap_or(Duration::from_millis(0));
2634+
println!(
2635+
" Step {} ({}ms): {}",
2636+
step.name,
2637+
duration.as_millis(),
2638+
step.status
2639+
);
2640+
}
26262641
println!(
26272642
" Bundle was activated in the database: {activated_in_db_ok}"
26282643
);

0 commit comments

Comments
 (0)