Commit 785ad09
committed
fix(ci): make infra .py-count drift check robust to build artifacts
test_canonical_facts_infrastructure_python_count_matches_tree counted on-disk
infrastructure/**/*.py via rglob against the live repo, so a build- or
test-generated .py (e.g. a version stub written during `uv sync` on ubuntu CI)
inflated the count 483->484 and flapped the gate per-environment (green on
macOS, red on ubuntu). Count git-tracked source files instead — that is what the
factsheet documents as 'drift', and it is immune to transient on-disk artifacts.1 parent 1eebc87 commit 785ad09
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
148 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
149 | 161 | | |
150 | | - | |
| 162 | + | |
151 | 163 | | |
152 | 164 | | |
153 | 165 | | |
| |||
191 | 203 | | |
192 | 204 | | |
193 | 205 | | |
194 | | - | |
195 | | - | |
196 | 206 | | |
197 | 207 | | |
198 | 208 | | |
| |||
0 commit comments