You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: wire the two dead cockpit spec files into targets CI actually runs
`cockpit/deep-agents/footprint.spec.ts` and
`libs/cockpit-docs/src/lib/docs-bundle.spec.ts` were executed by nothing: no
vitest project included the first, and `cockpit-docs` had no `test` target at
all. Both are wired in here, following #916 (give the orphan a target) and
#918 (glob out-of-project cockpit specs into `nx test cockpit`).
Wiring surfaced three further gaps, all fixed:
- `cockpit-docs` and `cockpit-registry` were both unreachable. `nx test` does
not walk `^test`, and the `library` job runs a hardcoded LIBS list that
excludes them, so cockpit-registry's three specs had never run either. The
cockpit job now uses `nx run-many` over all three projects.
- The footprint specs resolved paths from `process.cwd()`, which under
`nx test cockpit` is `apps/cockpit`. Left as-is they would have asserted
against `apps/cockpit/cockpit/...` and passed vacuously. They now resolve
from `import.meta.url`.
- `cockpit/<product>/*.spec.ts` sits outside every project root, so
`nx affected` attributes it to the untagged `root` project and a PR touching
only those specs skipped the job that runs them. ci-scope now maps them onto
the cockpit scope by path.
The website `.mdx` assertions in all three footprint specs asserted the
five-segment docs shape #918 deleted — the one docs-links.ts records as having
"produced a URL that 404s for every product". They are removed, not weakened:
that coupling is a table checked against the website's real content tree by
apps/cockpit/src/lib/docs-links.spec.ts.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments