Skip to content

test: close CI coverage gaps (untested modules, non-blocking checks, no PR image builds) #1557

Closed

Description

@clawgenti

Problem

ci.yaml covers core, the cmd/* binaries, plugin profiles, iptables rules, tests/ (Python) and the shell scripts. Several parts of the repo still have no CI coverage, and some existing checks can't fail. A regression in any of these areas merges without a signal.

Gaps found (audited against main, 2026-10-29)

Tests that exist but never run in CI

  • core/storage/redis: a separate Go module, listed in go.work, with a miniredis-backed test (TestGetSet, …). go-ci-core runs go test ./... inside core/, and that skips nested modules, so no job runs these tests. Only go-tidy-check looks at this module.
  • deploy/sparc-service: 6 pytest files (test_api.py, test_engine.py, test_providers.py, …). The python-test job only runs pytest tests/. build.yaml builds the image on main/tag pushes but doesn't run the tests.
  • deploy/lineage-attach/test/propagation: a propagation harness (run.sh, driver.py, …). No workflow references it.

Code no CI job builds

  • demos/echo, demos/finance-sparc, demos/ibac: Go modules with no build or vet step. Only go mod tidy -diff touches them, so they can break silently against core API changes.
  • Container images: build.yaml triggers only on pushes to main/tags and on workflow_dispatch. A Dockerfile break (authbridge, authbridge-envoy, authbridge-lite, authbridge-cpex, proxy-init, sparc-service) shows up only after merge. A PR-time docker build with no push would catch it earlier.

Checks that can't fail

  • pre-commit runs with continue-on-error: true (TODO: Remove continue-on-error after fixing pre-existing style issues repo-wide), so lint and style findings never block a PR.
  • security-scans.yaml has a continue-on-error: true step too (waiting on Dependency Graph).

Platform and coverage

  • macOS: go-ci-core-macos runs only peerproc and part of tlsbridge. cmd/cortex and cmd/agentop are laptop tools, but nothing builds or tests them on macOS.
  • No coverage reporting or ratchet: tests run with -cover, but no job reports the numbers or enforces a floor. test: CI coverage gate for abctl and authbridge-proxy #958 tracks this, but it names cmd/abctl and cmd/authbridge-proxy, which no longer exist. It should be retargeted to cmd/cortex, cmd/agentop and core.

Proposed approach

  1. Add the cheap wins first: a go test job for core/storage/redis, a pytest job for deploy/sparc-service (skipping or marking the watsonx integration test that needs credentials), and go build/go vet for demos/*.
  2. Add a PR-time docker build matrix (no push), path-filtered the same way go-ci-cpex is.
  3. Fix the pre-existing pre-commit findings, then drop continue-on-error.
  4. Widen the macOS job to build and test cmd/cortex and cmd/agentop.
  5. Retarget test: CI coverage gate for abctl and authbridge-proxy #958 and add coverage reporting on PRs.

A guard would also help: a test that fails when a go.mod or test directory exists that no workflow references. ci.yaml already records that cortex-praxis "was in no workflow at all, which is how it ended up broken". This would stop the next module from drifting the same way.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions