From 08f2c696b0c663c8a668586448e3986d47c41f04 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 9 Dec 2024 09:35:51 +0100 Subject: [PATCH] Allow xtask bench to proceed without a commit message --- crates/xtask/src/bench/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/xtask/src/bench/mod.rs b/crates/xtask/src/bench/mod.rs index 891742528..deec120fa 100644 --- a/crates/xtask/src/bench/mod.rs +++ b/crates/xtask/src/bench/mod.rs @@ -139,7 +139,7 @@ pub fn run(args: BenchDeriveArgs) -> anyhow::Result<()> { rt.block_on(async { dashboard_client.send_machine_info(&env).await?; - let commit_message = build_info.commit_msg.context("missing commit message")?.split('\n').next().unwrap(); + let commit_message = build_info.commit_msg.unwrap_or_default().split('\n').next().unwrap(); let max_workloads = args.workload_file.len(); let reason: Option<&str> = args.reason.as_deref(); let invocation_uuid = dashboard_client.create_invocation(build_info.clone(), commit_message, env, max_workloads, reason).await?;