[object Object]

← back to Pattern Vault

daily_run: count only real-id uploads (dry-run id:null no longer reports phantom uploads) — contrarian fix

0c248af451fcc5b0ccaf4ff5cd40b2f7e70488d0 · 2026-07-09 16:27:43 -0700 · Steve

Files touched

Diff

commit 0c248af451fcc5b0ccaf4ff5cd40b2f7e70488d0
Author: Steve <steve@designerwallcoverings.com>
Date:   Thu Jul 9 16:27:43 2026 -0700

    daily_run: count only real-id uploads (dry-run id:null no longer reports phantom uploads) — contrarian fix
---
 whimsical-compare/daily/scripts/daily_run.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/whimsical-compare/daily/scripts/daily_run.sh b/whimsical-compare/daily/scripts/daily_run.sh
index d5fa783..b5b306b 100755
--- a/whimsical-compare/daily/scripts/daily_run.sh
+++ b/whimsical-compare/daily/scripts/daily_run.sh
@@ -74,8 +74,9 @@ node "$HERE/report.js" "$MANIFEST" "$UPRESULT" || echo "report send failed"
 COUNT=$(python3 -c "import json;print(json.load(open('$MANIFEST'))['count'])")
 COST=$(python3 -c "import json;print(json.load(open('$MANIFEST'))['est_cost_usd'])")
 ARMED_STATE=$([ -f "$DAILY/ARMED" ] && echo true || echo false)
-# real success signal = number of designs that got a REAL Spoonflower id (upload.json .uploaded[])
-UPLOADED=$(python3 -c "import json;print(len(json.load(open('$UPRESULT')).get('uploaded',[])))" 2>/dev/null || echo 0)
+# real success signal = designs with a REAL Spoonflower id (dry-run entries have id:null → NOT counted,
+# so a dry run never reports phantom "uploaded" designs — contrarian catch 2026-07-09)
+UPLOADED=$(python3 -c "import json;print(len([u for u in json.load(open('$UPRESULT')).get('uploaded',[]) if u.get('id')]))" 2>/dev/null || echo 0)
 FAILED=$(python3 -c "import json;print(len(json.load(open('$UPRESULT')).get('failed',[])))" 2>/dev/null || echo 0)
 
 # false-green guard: an ARMED run that landed ZERO real uploads is a FAILURE — do NOT mark the

← 5542bd8 wpb-uploaders: disarmed per-platform framework (etsy/CM/redb  ·  back to Pattern Vault  ·  auto-save: 2026-07-09T18:11:36 (2 files) — whimsical-compare 45745d8 →