test: guard release path doctrine
Some checks failed
CI / test (pull_request) Failing after 3m49s
CI / release-exercise (pull_request) Successful in 26s
CI / self-guards (pull_request) Successful in 21s
CI / action-exercise (pull_request) Successful in 20s
CI / docs-sync-exercise (pull_request) Successful in 20s
Refs guard / refs-not-closing (pull_request) Successful in 20s
labels / labels (pull_request) Successful in 22s

This commit is contained in:
codex-bot-andresmgsl 2026-08-25 07:31:39 +00:00
parent 6dc8bf6558
commit 17b99183ca

View file

@ -97,6 +97,17 @@ path_check() {
[ -z "$missing" ] && [ -z "$extra" ]
}
readme_has_no_path_enumeration() {
local token found=no
for token in bin/ lib/version.sh lib/decide.sh lib/facts.sh lib/changelog.sh; do
if grep -qF "$token" "$ROOT/drills/README.md"; then
printf 'drill doctrine enumerates release path: %s\n' "$token" >&2
found=yes
fi
done
[ "$found" = no ]
}
fixture() {
local name="$1" tree
tree="$TMP/$name"
@ -125,6 +136,8 @@ check "manifest prints the specified ordered release path" 0 \
bash "$PATH_SCRIPT"
check "real workflow and transitive dependencies match the manifest" 0 "" \
path_check "$ROOT"
check "drill doctrine does not duplicate the executable release path" 0 "" \
readme_has_no_path_enumeration
# A door growing a dependency must name the missing path (#237 D7).
tree="$(fixture missing)"