Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix(scripts): broaden Windows Mintlify noise filter to EBUSY (#1427) (#1474)

Aldrin Joseph34fe19601c40
diff --git a/docs_check.py b/docs_check.py
index 43ec33dc..7f0ede1f 100644
--- a/docs_check.py
+++ b/docs_check.py
@@ -246,9 +246,12 @@ def _() -> list[str]:
combined = (result.stdout or "") + (result.stderr or "")
if result.returncode != 0:
- # On Windows, npm cleanup raises EPERM on temp dirs — not a real
- # export failure. Treat as a skip rather than a hard failure.
- if sys.platform == "win32" and "EPERM" in combined and \
+ # On Windows, npm post-command cleanup can fail with EPERM/EBUSY on
+ # temp dirs — not a real export failure. Treat as a skip rather
+ # than a hard failure, unless a real Mintlify error signature is
+ # present.
+ if sys.platform == "win32" and \
+ ("EPERM" in combined or "EBUSY" in combined) and \
"could not be generated" not in combined:
return [] # Windows temp-cleanup noise; real CI runs on Linux