← Commit history

Update 1 file(s)

Colby Knox ·5659768a2f ·11d ago ·parent 585ba88
1 file changed +17−1
tools/release.sh+17−1
@@ -408,7 +408,23 @@ if [ "${RELEASE_SKIP_PKG:-0}" = "1" ]; then   echo "  SKIPPED (RELEASE_SKIP_PKG=1): run 'adom-wiki pkg publish --org adom' from this folder when approved" else   PUB=$(adom-wiki pkg publish --org adom --json 2>/dev/null || true)-  echo "$PUB" | ok_check || die "pkg publish FAILED (status != ok) — output: ${PUB:0:400}"+  if ! echo "$PUB" | ok_check; then+    # the registry's LBR_VALIDATE lint (2026-10-31) fails on rust/lbr/tests/ fixtures that are+    # broken on purpose; when those are the ONLY lint errors, publish with lint as warnings+    ONLY_FIXTURES=$(echo "$PUB" | python3 -c '+import json,sys+t=sys.stdin.read(); i=t.find("{")+try: r=json.loads(t[i:])+except Exception: print("no"); sys.exit()+errs=[h for h in (r.get("hints") or []) if h.get("level")=="error"]+ok=errs and all("LBR_VALIDATE_FAILED" in h.get("message","") and "/tests/" in h.get("message","").split(" fails ")[0] for h in errs)+print("yes" if ok else "no")' 2>/dev/null)+    if [ "$ONLY_FIXTURES" = "yes" ]; then+      echo "  lint: only the deliberately broken .lbr test fixtures fail adom-lbr validate; publishing with --skip-lint"+      PUB=$(adom-wiki pkg publish --org adom --json --skip-lint 2>/dev/null || true)+    fi+    echo "$PUB" | ok_check || die "pkg publish FAILED (status != ok) — output: ${PUB:0:400}"+  fi   echo "  published $REPO @ package $VERSION" fi