Commit 682a2a0
perf(hypatia-scan): cache built scanner keyed on Hypatia HEAD + shallow clone
The reusable rebuilds Hypatia from source on every run; the full clone and
`mix escript.build` dominate wall-clock, so even a trivial Dependabot bump
triggers a full neurosymbolic build. Resolve Hypatia's HEAD SHA and key a
build cache on it, so a fresh clone+build happens only when Hypatia actually
changes; otherwise the prebuilt escript is restored and the existing
[ ! -d ]/[ ! -f ] guards short-circuit. Also cache Hex/Mix and shallow-clone.
No change to scan behaviour: correctness is preserved by the exact-SHA
build-cache key (no restore-keys, which could leave a stale scanner in place
and analyse with old rules).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 426368b commit 682a2a0
1 file changed
Lines changed: 34 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
114 | 147 | | |
115 | 148 | | |
116 | 149 | | |
117 | | - | |
| 150 | + | |
118 | 151 | | |
119 | 152 | | |
120 | 153 | | |
| |||
0 commit comments