fix(cold-start): classify missing momo source as product data gate
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 38s
CD Pipeline / build-and-deploy (push) Successful in 4m40s
CD Pipeline / post-deploy-checks (push) Successful in 1m45s

This commit is contained in:
Your Name
2026-07-01 23:02:17 +08:00
parent 22c6898d12
commit ef89d0e0dc
4 changed files with 33 additions and 3 deletions

View File

@@ -813,7 +813,8 @@ printf "%s\n" "$momo_drive_source_probe"
ok "188 momo daily sales data fresh enough"
elif awk '/MOMO_DAILY_FRESHNESS / {split($2,a,"|"); exit !(a[1] ~ /^[0-9]+$/ && a[1] >= 3)}' <<<"$out"; then
if [ "$momo_source_stale_only" = "1" ]; then
warn "188 momo daily sales stale but Drive has no newer source candidate"
ok "188 momo daily sales source gate has no newer Drive candidate"
echo "INFO 188 momo daily sales data remains stale; product data freshness is pending source arrival"
elif [ -x "$MOMO_SOURCE_PREFLIGHT_SCRIPT" ]; then
if [ -z "$momo_source_preflight_summary" ]; then
momo_source_preflight_output="$(

View File

@@ -59,6 +59,8 @@ def test_cold_start_momo_current_month_handles_no_new_source_without_false_warn(
assert "momo_source_stale_only" in text
assert "MOMO_SOURCE_ABSENT_WITHOUT_NEWER_DRIVE" in text
assert "Drive has no newer source than last clean import" in text
assert "momo daily sales source gate has no newer Drive candidate" in text
assert "product data freshness is pending source arrival" in text
assert "a[1] == 0 && a[2] == 0" in text