Skip to content

sync: add missing test files - #2134

Open
unsupo wants to merge 2 commits into
developmentfrom
sync/missing-tests
Open

unsupo wants to merge 2 commits into
developmentfrom
sync/missing-tests

Conversation

@unsupo

@unsupo unsupo commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add ~325 test files from internal repo that are missing in the public repo.

What is included

  • tests/unit/kernel/ — capabilities, xray/scip import boundary
  • tests/unit/seams/ — CLI invoker, clone, content, git, scip, workspace, xray seam resolution
  • tests/unit/server/startup/ — all backend wiring tests, leader gate, golden mount guard, lifespan wiring
  • tests/unit/server/services/ — ~60 tests for activated services, backend plugins, backfill engines, content seam, delegated refusal, golden repo lifecycle, index services, FTS, metadata outbox, semantic backfill
  • tests/unit/server/repositories/ — ~25 tests for activated repos, golden repo manager, background jobs, index store
  • tests/unit/server/routers/ — ~15 tests for admin routes, golden repo, FTS regex, metadata outbox
  • tests/unit/server/mcp/ — ~15 tests for delegated handlers, catalog, git seam, alias fallbacks
  • tests/unit/server/features/ — feature loader, runtime, capabilities, removability tests
  • tests/unit/server/storage/ — postgres/sqlite backend tests, shared backend tests
  • tests/unit/global_repos/ — ~30 tests for refresh, delegation, content seam, trigram, write mode
  • tests/unit/indexing/ — content prefetcher, fetch planner, manifest, file finder, FTS
  • tests/unit/services/ — ~20 tests for chunk coverage, delegated, git seam, multimodal, smart indexer
  • tests/unit/utils/ — git invoker, git runner, index store, sandbox mcp client, worker budget
  • tests/unit/xray/ — ~10 tests for feature lifecycle, wiring, execution seam, content
  • tests/unit/ci/ — catalog guard, import contracts, CI plugin suites
  • Test utilities — fakes, fixtures, control plane metadata fixtures, live pg helper
  • Contracts — workspace-mcp pact JSON
  • E2E — enabled features JSON, siem delivery helpers

Review notes

All files are NEW additions. Ticket refs (EVO-NNNNN) in test names are expected — they reference the internal ticket each test was written for.


Merge-order dependencies

Prerequisite What it supplies
PR #2122 cidx_sdk, cidx_testkit
PR #2123 + #2127 Feature packages + entry-point loading
PR #2125 + #2129 Import contracts script + .importlinter
PR #2130 Kernel/utils modules
PR #2131 FTS/backfill modules
PR #2132 Global-clone/route-table modules

Review findings

# Severity Status Summary
1 BLOCKING Fixed Tracker keys in ~40 filenames + ~100 files content
2 BLOCKING Fixed Company hostname in gateway fixtures → example.com
3 BLOCKING Fixed Internal service name as pact provider/dir → neutralized
4 BLOCKING Fixed Internal product name as repo alias → neutralized
5-11 HIGH Merge-order Missing modules from other PRs
12-17 MED/LOW Noted Code quality (non-blocking)

Jonathan Arndt added 2 commits November 6, 2026 09:29
Add 325 test files from internal repo covering: kernel, seams,
startup, services, storage, repositories, routers, MCP handlers,
global repos, indexing, utils, features, xray, and test utilities.
- Rename ~40 test files containing internal tracker keys in filenames
- Scrub tracker key references from ~100 files content
- Replace company hostname with gateway.example.com in gateway fixtures
- Neutralize internal service names in pact contract directories
- Replace internal product names used as repo aliases in test data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant