ci: recognize audited cache capacity defaults in benchmark images

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
WenyXu
2026-10-21 14:28:29 +00:00
parent 0b0eab9a92
commit 329aa36566
3 changed files with 24 additions and 9 deletions
+8 -3
View File
@@ -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',
+ )
+}
+
+
+8 -3
View File
@@ -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',
+ )
+}
+
+
+8 -3
View File
@@ -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',
+ )
+}
+
+