From cb1eb255b95c3a8b5259ac9c885d8f34e4a2d51c Mon Sep 17 00:00:00 2001 From: Everett Pompeii Date: Fri, 8 Dec 2023 19:01:14 -0500 Subject: [PATCH] Future proof Bencher Client --- ci-bench-runner/Cargo.lock | 6 +++--- ci-bench-runner/Cargo.toml | 2 +- ci-bench-runner/src/bencher_dev.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ci-bench-runner/Cargo.lock b/ci-bench-runner/Cargo.lock index 563c3df..a1e89be 100644 --- a/ci-bench-runner/Cargo.lock +++ b/ci-bench-runner/Cargo.lock @@ -243,7 +243,7 @@ checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "bencher_client" version = "0.3.21" -source = "git+https://github.com/bencherdev/bencher?rev=3a9945f#3a9945fcbcc01e8c0b5632be71828d1481b0422e" +source = "git+https://github.com/bencherdev/bencher?rev=e4b22ed#e4b22ed050d3d82a23bdf93944167123de344046" dependencies = [ "bencher_json", "chrono", @@ -263,7 +263,7 @@ dependencies = [ [[package]] name = "bencher_json" version = "0.3.21" -source = "git+https://github.com/bencherdev/bencher?rev=3a9945f#3a9945fcbcc01e8c0b5632be71828d1481b0422e" +source = "git+https://github.com/bencherdev/bencher?rev=e4b22ed#e4b22ed050d3d82a23bdf93944167123de344046" dependencies = [ "bencher_valid", "chrono", @@ -284,7 +284,7 @@ dependencies = [ [[package]] name = "bencher_valid" version = "0.3.21" -source = "git+https://github.com/bencherdev/bencher?rev=3a9945f#3a9945fcbcc01e8c0b5632be71828d1481b0422e" +source = "git+https://github.com/bencherdev/bencher?rev=e4b22ed#e4b22ed050d3d82a23bdf93944167123de344046" dependencies = [ "base64 0.21.5", "chrono", diff --git a/ci-bench-runner/Cargo.toml b/ci-bench-runner/Cargo.toml index 2786d5f..a3c40c3 100644 --- a/ci-bench-runner/Cargo.toml +++ b/ci-bench-runner/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" anyhow = "1.0.75" askama = { version = "0.12.1", default-features = false } axum = "0.6.20" -bencher_client = { git = "https://github.com/bencherdev/bencher", rev = "3a9945f" } +bencher_client = { git = "https://github.com/bencherdev/bencher", rev = "e4b22ed" } hex = "0.4.3" hmac = "0.12.1" hyper = { version = "0.14.27", default-features = false } diff --git a/ci-bench-runner/src/bencher_dev.rs b/ci-bench-runner/src/bencher_dev.rs index 1eaf9df..9b313fd 100644 --- a/ci-bench-runner/src/bencher_dev.rs +++ b/ci-bench-runner/src/bencher_dev.rs @@ -4,7 +4,7 @@ use std::sync::Arc; use bencher_client::json::project::measure::{INSTRUCTIONS_SLUG_STR, LATENCY_SLUG_STR}; use bencher_client::{ - json::{DateTime, JsonMetric, JsonMetricsMap, JsonReport, JsonResultsMap, Measure}, + json::{DateTime, JsonMetric, JsonMetricsMap, JsonCreated, JsonResultsMap, Measure}, types::{Adapter, JsonNewReport, JsonReportSettings}, BencherClient, }; @@ -63,7 +63,7 @@ impl BencherDev { let project_id = self.config.project_id.clone(); let project_id = &project_id; let report = &report; - let _: JsonReport = self + let _: JsonCreated = self .client .send_with( |client| async move {