[object Object]

← back to Dw Vendor Microsites

build phillip_jeffries (Phillip Jeffries) -> BUILT, port 10004, 4377 skus, img 0.0

43e0a6826b441b276c0654d8dd849da0810580da · 2026-06-30 13:01:12 -0700 · Steve

Files touched

Diff

commit 43e0a6826b441b276c0654d8dd849da0810580da
Author: Steve <steve@designerwallcoverings.com>
Date:   Tue Jun 30 13:01:12 2026 -0700

    build phillip_jeffries (Phillip Jeffries) -> BUILT, port 10004, 4377 skus, img 0.0
---
 lib/image-health.sh | 10 +++++++++-
 manifest.json       |  8 ++++----
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/lib/image-health.sh b/lib/image-health.sh
index 350b788..cd007ff 100755
--- a/lib/image-health.sh
+++ b/lib/image-health.sh
@@ -65,12 +65,20 @@ FLAT = re.compile(r'/flatshots/([^/]+)-main/([^/_]+)_m\.jpg', re.I)
 relinked = 0
 # (relink is only meaningful for the cowtan CDN family; harmless elsewhere)
 
-health = round(live / max(1, len(probe)), 3)
+# live-fraction among PROBED (rows that HAD a url)
+live_frac = round(live / max(1, len(probe)), 3)
+# COVERAGE = fraction of ALL rows that even have an image_url. A catalog where
+# most rows lack a url is image-starved even if the few it has are live (the
+# phillip_jeffries 1/4377 case). Combined health = coverage * live_frac.
+coverage = round(len(with_img) / max(1, total), 3)
+health = round(coverage * live_frac, 3)
+# NEEDS_RESCRAPE if combined health < 0.5 (low coverage OR many dead). Flag, don't block.
 status = "HEALTHY" if health >= 0.5 else "NEEDS_RESCRAPE"
 
 print(json.dumps({
     "sampled": len(probe), "live": live, "dead": dead, "missing": missing,
     "total": total, "with_image": len(with_img),
+    "coverage": coverage, "live_frac": live_frac,
     "image_health": health, "relinked": relinked, "status": status
 }))
 PY
diff --git a/manifest.json b/manifest.json
index e04ab66..8c18e06 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1139,13 +1139,13 @@
       "table_count": 4377,
       "samples_only": true,
       "status": "OK",
-      "build_status": "BUILT",
+      "build_status": "BUILT_NEEDS_RESCRAPE",
       "deploy_status": "PENDING",
       "wave": 1,
       "port": 10004,
       "sku_count": 4377,
-      "image_health": 1.0,
-      "image_status": "HEALTHY"
+      "image_health": 0.0,
+      "image_status": "NEEDS_RESCRAPE"
     },
     "relativity_textiles": {
       "vendor_code": "relativity_textiles",
@@ -1843,7 +1843,7 @@
       "wave": 16
     }
   },
-  "updated_at": "2026-06-30T13:00:51.980183",
+  "updated_at": "2026-06-30T13:01:12.292654",
   "stats": {
     "total_vendors": 118,
     "buildable": 117,

← c239706 build phillip_jeffries (Phillip Jeffries) -> BUILT, port 100  ·  back to Dw Vendor Microsites  ·  build kravet (Kravet) -> BUILT, port 10005, 13420 skus, img c9ed116 →