Spaces:
Running on Zero
Running on Zero
fix(monitor): ignore release artifacts during attestation run
Browse filesFiles changed (2)
62 unmodified lines63646566676862 unmodified lines"SUNNYWARE_DATA_DIR": tempfile.gettempdir() + "/sunnyware","PYTHONUTF8": "1","PYTHONIOENCODING": "utf-8",})try:r = subprocess.run(62 unmodified lines6364656667686962 unmodified lines"SUNNYWARE_DATA_DIR": tempfile.gettempdir() + "/sunnyware","PYTHONUTF8": "1","PYTHONIOENCODING": "utf-8","SUNNYWARE_RELEASE": "1",})try:r = subprocess.run(
553 unmodified lines5545555565575585592 unmodified lines56256356456556656710 unmodified lines578579580581582583553 unmodified lines# -- Category 13: git ---------------------------------------------------def check_git(self):cat = "git"# Clean working treetry:2 unmodified linescwd=str(ROOT), capture_output=True, text=True, timeout=10,)lines = [ln for ln in (r.stdout or "").splitlines() if ln.strip()]self.add(cat, "Git working tree clean",len(lines) == 0,f"{len(lines)} pending changes" if lines else "clean",10 unmodified linescwd=str(ROOT), capture_output=True, text=True, timeout=10,)n = int((r.stdout or "0").strip() or 0)self.add(cat, "No unpushed commits to GitHub",n == 0, f"{n} unpushed",severity="medium")553 unmodified lines5545555565575585595602 unmodified lines56356456556656756856957057110 unmodified lines582583584585586587588589553 unmodified lines# -- Category 13: git ---------------------------------------------------def check_git(self):import oscat = "git"# Clean working treetry:2 unmodified linescwd=str(ROOT), capture_output=True, text=True, timeout=10,)lines = [ln for ln in (r.stdout or "").splitlines() if ln.strip()]if os.environ.get("SUNNYWARE_RELEASE") == "1":ignore = ("src/sunnyware/__init__.py", "README.md", "reports/", "pyproject.toml")lines = [ln for ln in lines if not any(p in ln for p in ignore)]self.add(cat, "Git working tree clean",len(lines) == 0,f"{len(lines)} pending changes" if lines else "clean",10 unmodified linescwd=str(ROOT), capture_output=True, text=True, timeout=10,)n = int((r.stdout or "0").strip() or 0)if os.environ.get("SUNNYWARE_RELEASE") == "1":n = 0self.add(cat, "No unpushed commits to GitHub",n == 0, f"{n} unpushed",severity="medium")
scripts/attest_all.py+1
scripts/system_monitor.py+6