Skip to content

Commit 4ceac91

Browse files
committed
chore: sort graphs
1 parent 7f44ebd commit 4ceac91

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/xtask/src/main.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ impl Xtasks {
13991399
bail!("Failed to list testbeds: {:?}", testbeds);
14001400
}
14011401

1402-
let testbeds = parse_list_of_dicts(testbeds.stdout)
1402+
let mut testbeds = parse_list_of_dicts(testbeds.stdout)
14031403
.with_context(|| "reading testbeds")?
14041404
.into_iter()
14051405
.map(|p| {
@@ -1409,6 +1409,7 @@ impl Xtasks {
14091409
})
14101410
.filter(|(name, _)| name.contains("gha"))
14111411
.collect::<Vec<_>>();
1412+
testbeds.sort();
14121413

14131414
let group_to_benchmark_map: HashMap<_, Vec<_>> =
14141415
benchmarks
@@ -1422,7 +1423,7 @@ impl Xtasks {
14221423
// create plot using
14231424
// bencher plot create --x-axis date_time --branches main --testbeds <uuids> --benchmarks <uuids> --measures latency
14241425

1425-
for (group, uuids) in group_to_benchmark_map {
1426+
for (group, uuids) in group_to_benchmark_map.iter().sorted() {
14261427
for (testbed_name, testbed_uuid) in testbeds.iter() {
14271428
let without_gha = testbed_name.replace("-gha", "");
14281429
let plot_name = format!("{without_gha} {group}");
@@ -1442,7 +1443,7 @@ impl Xtasks {
14421443
.args(["--measures", LATENCY_MEASURE_UUID])
14431444
.args(["--token", &token.clone().unwrap_or_default()]);
14441445

1445-
for benchmark_uuid in &uuids {
1446+
for benchmark_uuid in uuids {
14461447
bencher_cmd.arg("--benchmarks").arg(benchmark_uuid);
14471448
}
14481449

0 commit comments

Comments
 (0)