Commit 1ddf762
endolinbot
fix(scripts/checks): widen bench-engines-rename exclusion to the runner index and test (#3)
The gate's check.sh excluded only its own subdirectory, but two other
in-tree paths legitimately name the antipattern by example: the
runner index at scripts/checks/README.md (which lists installed gates
including this one) and the smoke test at
tests/checks/test_bench_engines_rename.sh (which has to write a
fixture containing the literal string to verify the gate fires).
Without this widening the gate fires on its own infrastructure on
every run.
The exclusion is targeted: only the runner index and the matching
test file are spared; any other file carrying ".bench-engines" is
still an offender. The narrowness keeps the gate's blast radius
intact.
Followup also adds a fallback grep --exclude for the same paths,
exercised when the script runs outside a git repo.1 parent f82fda0 commit 1ddf762
1 file changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | 36 | | |
29 | | - | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| 42 | + | |
| 43 | + | |
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
| |||
0 commit comments