From 3fae717912cd48a6434a0ca70dda8d92fbf53264 Mon Sep 17 00:00:00 2001 From: boris Date: Sat, 4 Jul 2026 09:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E5=9B=9E=E6=B5=8B=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E8=B7=AF=E5=BE=84=E4=BD=BF=E7=94=A8JSON=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=AB=AF=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/verify-no-legacy-data-source.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/verify-no-legacy-data-source.sh b/scripts/verify-no-legacy-data-source.sh index d4beaba..0477096 100755 --- a/scripts/verify-no-legacy-data-source.sh +++ b/scripts/verify-no-legacy-data-source.sh @@ -60,6 +60,25 @@ if [[ -n "$local_only_hits" ]]; then fail "legacy or local-only data source references are not allowed in fidc-backtest-engine runtime" "$local_only_hits" fi +json_query_hits="$( + rg -n \ + --glob '!**/.git/**' \ + --glob '!**/target/**' \ + --glob '!**/docs/**' \ + --glob '!**/*.md' \ + --glob '!**/tests/**' \ + --glob '!**/*test*.rs' \ + --glob '!crates/fidc-core/src/strategy_ai.rs' \ + --glob '!scripts/verify-no-legacy-data-source.sh' \ + '/v1/query/(source-rows|daily-execution-prices|minute-execution-prices|instruments|corporate-actions)\.json' \ + crates Cargo.toml \ + 2>/dev/null || true +)" + +if [[ -n "$json_query_hits" ]]; then + fail "JSON Source Lake high-throughput endpoints are not allowed in fidc-backtest-engine runtime; use Arrow endpoints" "$json_query_hits" +fi + fused_hits="$( rg -n \ --glob '!**/.git/**' \