From 329aa36566dbfda0046c91d7b48d2d6dadbbb323 Mon Sep 17 00:00:00 2001 From: WenyXu Date: Wed, 21 Oct 2026 14:28:29 +0000 Subject: [PATCH] ci: recognize audited cache capacity defaults in benchmark images Signed-off-by: WenyXu --- .github/benchmark-patches/agent.patch | 11 ++++++++--- .github/benchmark-patches/traces.patch | 11 ++++++++--- .github/benchmark-patches/vmbench.patch | 11 ++++++++--- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.github/benchmark-patches/agent.patch b/.github/benchmark-patches/agent.patch index ca84ca91ce1..cd65f290aad 100644 --- a/.github/benchmark-patches/agent.patch +++ b/.github/benchmark-patches/agent.patch @@ -20,7 +20,7 @@ greptimedb) version=$(sed -n 's/^version: //p' "$dir/version.txt") ;; --- /dev/null +++ b/scripts/cache_capacity_evidence.py -@@ -0,0 +1,182 @@ +@@ -0,0 +1,187 @@ +#!/usr/bin/env python3 +# Copyright 2023 Greptime Team +# Licensed under the Apache License, Version 2.0. @@ -41,11 +41,16 @@ +# Audited source: Serialize omits content_cache_size iff its value is 512 MiB. +# Unknown revisions must provide an explicit value; schema shape alone is not proof. +OMISSION_RULES = { -+ 'c7d970da0bb0aa2420cefef5c2cd72d6e6bb6972': { ++ revision: { + 'config_git_blob': '94428174f16c79cc0dcf41715501d707272a1dc8', + 'path': 'src/mito2/src/config.rs', + 'rule': 'ParquetPageConfig::is_default_content_cache_size == ReadableSize::mb(512)', -+ }, ++ } ++ for revision in ( ++ 'c7d970da0bb0aa2420cefef5c2cd72d6e6bb6972', ++ '0fdd79f19607b520aae48e8cce856a5486cea2f1', ++ '3887dcfcd84b6c02e54ce31691b65c46c6782b35', ++ ) +} + + diff --git a/.github/benchmark-patches/traces.patch b/.github/benchmark-patches/traces.patch index 4b6fa16d2b4..f8ceb67af9e 100644 --- a/.github/benchmark-patches/traces.patch +++ b/.github/benchmark-patches/traces.patch @@ -38,7 +38,7 @@ (output / 'tempo-effective.yaml').write_text(effective) --- /dev/null +++ b/scripts/cache_capacity_evidence.py -@@ -0,0 +1,182 @@ +@@ -0,0 +1,187 @@ +#!/usr/bin/env python3 +# Copyright 2023 Greptime Team +# Licensed under the Apache License, Version 2.0. @@ -59,11 +59,16 @@ +# Audited source: Serialize omits content_cache_size iff its value is 512 MiB. +# Unknown revisions must provide an explicit value; schema shape alone is not proof. +OMISSION_RULES = { -+ 'c7d970da0bb0aa2420cefef5c2cd72d6e6bb6972': { ++ revision: { + 'config_git_blob': '94428174f16c79cc0dcf41715501d707272a1dc8', + 'path': 'src/mito2/src/config.rs', + 'rule': 'ParquetPageConfig::is_default_content_cache_size == ReadableSize::mb(512)', -+ }, ++ } ++ for revision in ( ++ 'c7d970da0bb0aa2420cefef5c2cd72d6e6bb6972', ++ '0fdd79f19607b520aae48e8cce856a5486cea2f1', ++ '3887dcfcd84b6c02e54ce31691b65c46c6782b35', ++ ) +} + + diff --git a/.github/benchmark-patches/vmbench.patch b/.github/benchmark-patches/vmbench.patch index e4ae4ffbe7b..19e454ee2d0 100644 --- a/.github/benchmark-patches/vmbench.patch +++ b/.github/benchmark-patches/vmbench.patch @@ -25,7 +25,7 @@ plan, target, target_root, name --- /dev/null +++ b/scripts/cache_capacity_evidence.py -@@ -0,0 +1,182 @@ +@@ -0,0 +1,187 @@ +#!/usr/bin/env python3 +# Copyright 2023 Greptime Team +# Licensed under the Apache License, Version 2.0. @@ -46,11 +46,16 @@ +# Audited source: Serialize omits content_cache_size iff its value is 512 MiB. +# Unknown revisions must provide an explicit value; schema shape alone is not proof. +OMISSION_RULES = { -+ 'c7d970da0bb0aa2420cefef5c2cd72d6e6bb6972': { ++ revision: { + 'config_git_blob': '94428174f16c79cc0dcf41715501d707272a1dc8', + 'path': 'src/mito2/src/config.rs', + 'rule': 'ParquetPageConfig::is_default_content_cache_size == ReadableSize::mb(512)', -+ }, ++ } ++ for revision in ( ++ 'c7d970da0bb0aa2420cefef5c2cd72d6e6bb6972', ++ '0fdd79f19607b520aae48e8cce856a5486cea2f1', ++ '3887dcfcd84b6c02e54ce31691b65c46c6782b35', ++ ) +} + +