From 87fb2be16f036d610a3860d040b8138c029a81ea Mon Sep 17 00:00:00 2001 From: Julien Carsique Date: Mon, 8 Jun 2026 11:39:19 +0200 Subject: [PATCH] BUILD-11470 Use snake_case keys in cache JSON metrics Update jq field references to match the renamed CacheMetricsRecord fields (cache_hit, restore_key_hit, size_bytes_*, timestamp_*). Co-Authored-By: Claude Sonnet 4.6 --- ci-metrics/job-completed.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci-metrics/job-completed.sh b/ci-metrics/job-completed.sh index 822a80ab..90aa9712 100755 --- a/ci-metrics/job-completed.sh +++ b/ci-metrics/job-completed.sh @@ -404,12 +404,12 @@ if [[ "$cache_json" != "[]" ]] && command -v jq >/dev/null 2>&1; then | .[] | [ (.key // ""), - (if ."cache-hit" == true then "true" else "false" end), - (."restore-key-hit" // ""), + (if .cache_hit == true then "true" else "false" end), + (.restore_key_hit // ""), (.backend // "unknown"), - (if (."size-bytes-restored"|type) == "number" then (."size-bytes-restored"|tostring) else "" end), + (if (.size_bytes_restored|type) == "number" then (.size_bytes_restored|tostring) else "" end), (if .saved == true then "true" elif .saved == false then "false" else "" end), - (if (."size-bytes-at-end"|type) == "number" then (."size-bytes-at-end"|tostring) else "" end) + (if (.size_bytes_at_end|type) == "number" then (.size_bytes_at_end|tostring) else "" end) ] | join("\u001f") ' 2>/dev/null) || cache_rows=""