Skip to content

Commit 2be04a9

Browse files
committed
make sure all graphs get re-updated on bencher dev
1 parent 9a8ed63 commit 2be04a9

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

crates/xtask/src/main.rs

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,7 @@ impl Xtasks {
14171417
.stdout(std::process::Stdio::piped())
14181418
.stderr(std::process::Stdio::inherit())
14191419
.args(["plot", "list", "bms"])
1420+
.args(["--per-page", "255"])
14201421
.args(["--token", &token.clone().unwrap_or_default()])
14211422
.output()
14221423
.with_context(|| "Could not list plots")?;
@@ -1448,31 +1449,18 @@ impl Xtasks {
14481449
bail!("Failed to delete plot: {:?}", bencher_cmd);
14491450
}
14501451
}
1451-
let testbeds = Command::new("bencher")
1452-
.arg("testbed")
1453-
.args(["list", "bms"])
1454-
.args(["--token", &token.clone().unwrap_or_default()])
1455-
.output()
1456-
.with_context(|| "Could not list testbeds")?;
14571452

14581453
const MAIN_BRANCH_UUID: &str = "1d70a4e3-d416-43fc-91bd-4b1c8f9e9580";
14591454
const LATENCY_MEASURE_UUID: &str = "6820b034-5163-4cdd-95f5-5640dd0ff298";
1460-
1461-
if !testbeds.status.success() {
1462-
bail!("Failed to list testbeds: {:?}", testbeds);
1463-
}
1464-
1465-
let mut testbeds = parse_list_of_dicts(testbeds.stdout)
1466-
.with_context(|| "reading testbeds")?
1467-
.into_iter()
1468-
.map(|p| {
1469-
let name = p.get("name").expect("no name in testbed");
1470-
let uuid = p.get("uuid").expect("no uuid in testbed");
1471-
(name.clone(), uuid.clone())
1472-
})
1473-
.filter(|(name, _)| name.contains("gha"))
1474-
.collect::<Vec<_>>();
1475-
testbeds.sort();
1455+
const LINUX_GHA_TESTBED: &str = "467e8580-a67a-435e-a602-b167541f332c";
1456+
const MACOS_GHA_TESTBAD: &str = "f8aab940-27d2-4b52-93df-4518fe68abfb";
1457+
const WINDOWS_GHA_TESTBED: &str = "be8ff546-31d3-40c4-aacc-763e5e8a09c4";
1458+
1459+
let testbeds = [
1460+
("linux-gha", LINUX_GHA_TESTBED),
1461+
("macos-gha", MACOS_GHA_TESTBAD),
1462+
("windows-gha", WINDOWS_GHA_TESTBED),
1463+
];
14761464

14771465
let group_to_benchmark_map: HashMap<_, Vec<_>> =
14781466
benchmarks

0 commit comments

Comments
 (0)