Commit 34db85d
ci: wire the coco-dev-versions and import-specifiers drift checks into CI (#9649)
Two checks in package.json's `test:ci` had no GitHub Actions job running
them, so the two could silently diverge with zero CI signal:
- `coco-dev-versions:check` keeps k8s/coco-dev/versions.json and the KBS
kustomization in lockstep; its only test exercises the pure core against
fabricated inputs and never reads the two real files.
- `import-specifiers:check` (#9221) scans src/scripts/test and every
packages/* workspace; #9240 and #9249 are two separate drifts that landed
after it shipped, precisely because nothing enforced it in CI.
- ci.yml: the `changes` job gains a `cocoDev` path filter (k8s/coco-dev/**,
scripts/check-coco-dev-versions*.ts) and two named validate-code steps --
`coco-dev-versions:check` gated on cocoDev + the push clause, and
`import-specifiers:check` gated on push || backend || mcp || engine ||
miner || discoveryIndex (every filter covering a scanned root).
- check-import-specifiers-script.test.ts: a real-tree regression test that
calls findImportSpecifierViolations() with no injected fs and asserts [],
matching the real-tree guards on validate-no-hand-written-js and
coverage-bolt-on-filenames -- the enforcement path that was missing.
actionlint and lint:composite-actions pass on the edited workflow.
Closes #9649
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a013ff5 commit 34db85d
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| |||
406 | 412 | | |
407 | 413 | | |
408 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
409 | 427 | | |
410 | 428 | | |
411 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
134 | 140 | | |
0 commit comments