From 801e32bda6115485e4d74a88c270878f5882f4ff Mon Sep 17 00:00:00 2001 From: Ulysse Mavrocordatos Date: Thu, 15 Oct 2026 10:37:03 +0200 Subject: [PATCH] fix(cicd): adopt Delivery Performance rename from Rust client datadog-api-client-rust renamed the DORA Metrics API section to Delivery Performance (DataDog/datadog-api-client-rust@511bdbd106). Any pin after that commit fails to build cicd.rs, which blocks every client bump, including generated PRs. - Bump the client pin to 008f178b (0.38.0) - Use api_delivery_performance::DeliveryPerformanceAPI in cicd.rs - Drop the stale "0.33.0 tag" note from the pin comment Co-Authored-By: Claude Opus 5.5 --- Cargo.lock | 4 ++-- Cargo.toml | 4 ++-- src/commands/cicd.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9bebbe20..526078bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1068,8 +1068,8 @@ checksum = "a4ae5f15dda3c708c0ade84bfee31ccab44a3da4f88015ed22f63732abe300c8" [[package]] name = "datadog-api-client" -version = "0.37.0" -source = "git+https://github.com/DataDog/datadog-api-client-rust?rev=9c0ff3bccf8c75142f42ac95fc83011d73a34f8c#9c0ff3bccf8c75142f42ac95fc83011d73a34f8c" +version = "0.38.0" +source = "git+https://github.com/DataDog/datadog-api-client-rust?rev=008f178b20563bd3b708756cf50cc9e18084709e#008f178b20563bd3b708756cf50cc9e18084709e" dependencies = [ "async-stream", "chrono", diff --git a/Cargo.toml b/Cargo.toml index ac9ab465..56c63a84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -134,9 +134,9 @@ flate2 = { version = "1", optional = true } tar = { version = "0.4", optional = true } zip = { version = "8", default-features = false, features = ["deflate"], optional = true } -# Datadog API client — pinned to 0.33.0 tag +# Datadog API client — pinned to a git rev # Use default-features = false; feature sets are activated per-target via features above -datadog-api-client = { git = "https://github.com/DataDog/datadog-api-client-rust", rev = "9c0ff3bccf8c75142f42ac95fc83011d73a34f8c", optional = true, default-features = false } +datadog-api-client = { git = "https://github.com/DataDog/datadog-api-client-rust", rev = "008f178b20563bd3b708756cf50cc9e18084709e", optional = true, default-features = false } # HTTP middleware (version-matched to DD client; compiles on all targets) reqwest-middleware = "0.5" diff --git a/src/commands/cicd.rs b/src/commands/cicd.rs index a91fcb22..9ea14c1e 100644 --- a/src/commands/cicd.rs +++ b/src/commands/cicd.rs @@ -5,7 +5,7 @@ use datadog_api_client::datadogV2::api_ci_visibility_pipelines::{ use datadog_api_client::datadogV2::api_ci_visibility_tests::{ CIVisibilityTestsAPI, ListCIAppTestEventsOptionalParams, SearchCIAppTestEventsOptionalParams, }; -use datadog_api_client::datadogV2::api_dora_metrics::DORAMetricsAPI; +use datadog_api_client::datadogV2::api_delivery_performance::DeliveryPerformanceAPI; use datadog_api_client::datadogV2::api_test_optimization::{ SearchFlakyTestsOptionalParams, TestOptimizationAPI, }; @@ -263,7 +263,7 @@ pub async fn pipelines_get(cfg: &Config, pipeline_id: &str) -> Result<()> { // ---- DORA Metrics ---- pub async fn dora_patch_deployment(cfg: &Config, deployment_id: &str, file: &str) -> Result<()> { - let api = crate::make_api!(DORAMetricsAPI, cfg); + let api = crate::make_api!(DeliveryPerformanceAPI, cfg); let body: DORADeploymentPatchRequest = crate::util::read_json_file(file)?; api.patch_dora_deployment(deployment_id.to_string(), body) .await