Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(ci): mark the new lane scripts executable, and let the contract see them

Martin Vogel64bd272cb23b
diff --git a/scripts/ci/lint-mem.sh b/scripts/ci/lint-mem.sh
old mode 100644
new mode 100755
diff --git a/scripts/ci/msan-lane.sh b/scripts/ci/msan-lane.sh
old mode 100644
new mode 100755
diff --git a/scripts/lint-mem-gate.py b/scripts/lint-mem-gate.py
old mode 100644
new mode 100755
diff --git a/tests/test_script_exec_bit_contract.sh b/tests/test_script_exec_bit_contract.sh
index 2a450e610..66e6a8be9 100644
--- a/tests/test_script_exec_bit_contract.sh
+++ b/tests/test_script_exec_bit_contract.sh
@@ -26,6 +26,7 @@ cd "$ROOT"
python3 - "$ROOT" <<'PY'
import pathlib
+import os
import re
import subprocess
import sys
@@ -43,6 +44,16 @@ for line in git("ls-files", "-s", "*.sh").splitlines():
if mode == "100644":
non_exec.add(path)
+# ...and NOT-YET-TRACKED ones, by their filesystem mode. A brand-new script is
+# invisible to `ls-files` until it is committed, so without this the contract
+# passes on the very run where the defect is introduced and only starts failing
+# after the commit that ships it -- which is how scripts/ci/lint-mem.sh reached
+# CI at mode 100644 and died with "Permission denied" (exit 126). The window
+# where the check is most useful is exactly the window it could not see.
+for path in git("ls-files", "--others", "--exclude-standard", "*.sh").splitlines():
+ if path and not os.access(root / path, os.X_OK):
+ non_exec.add(path)
+
# Places that actually execute things.
search_roots = [root / ".github" / "workflows", root / "scripts",
root / "test-infrastructure"]