Repository navigation
Description
What
Three workspaces contain real, passing bun:test suites that nothing executes — the same failure class as #138 (script/) and #141 (services/changelog, services/update), one level deeper in the workspace tree (packages/console/*, packages/stats/* are workspaces via the root package.json globs):
| Workspace | Test files | Tests (run manually this run) |
|---|---|---|
@opencode/console-app (packages/console/app) |
5 — script/salesforce-cli-response.test.ts, src/lib/console-signup.test.ts, src/lib/salesforce.test.ts, test/consoleMarketing.test.ts, test/serverAction.test.ts |
50 pass / 0 fail |
@opencode/stats-app (packages/stats/app) |
4 — src/routes/model-catalog.test.ts, test/agent-formats.test.ts, test/compare-radar.test.ts, test/model-catalog.test.ts |
16 pass / 0 fail |
@opencode/stats-core (packages/stats/core) |
5 — src/domain/catalog-identity.test.ts, src/domain/home.test.ts, src/domain/inference.test.ts, src/domain/stat.test.ts, src/r2-sql.test.ts |
44 pass / 0 fail |
Evidence (verified on main this run)
- None of the three
package.jsonfiles has atestscript (grep '"test"' packages/console/app/package.json packages/stats/app/package.json packages/stats/core/package.json→ no matches; onlynamelines). turbo.jsondefines explicit per-workspace#testtasks for 27 workspaces; none of@opencode/console-app,@opencode/stats-app,@opencode/stats-coreis among them, sobun turbo testin.github/workflows/test.ymlnever picks them up (and turbo cannot run a script that does not exist anyway).- No workflow runs them directly either: the only
bun testinvocations in.github/workflows/aredeploy-changelog.yml(services/changelog only) and test.yml's special case forscript/mcpx-cleanup.test.ts(test(script): mcpx-cleanup.test.ts is run by nothing — no CI job, turbo task, or package script executes it #138).stats.ymlis the unrelated upstream download-stats cron. - Running them by hand today:
bun testin each directory → 50 + 16 + 44 = 110 pass, 0 fail. They are live tests, not dead files — they just have no runner, so a future regression in console signup/Salesforce handling or the stats catalog/domain logic lands silently.
Why it matters
These suites cover user-facing behavior (console signup, Salesforce lead handling, stats model catalog and inference domain logic). Unrun tests rot: the first sign of breakage would be a production bug, exactly what #138/#141 were filed to prevent for their workspaces.
Acceptance criteria
- Each of the three workspaces gains a
testscript (bun test, matching services/changelog) and a matching per-workspace#testtask inturbo.json, following the exact shape test(services): changelog and update service tests are run by nothing — no turbo #test task for either workspace #141/PR test(services): run changelog and update tests via turbo #142 uses for the services workspaces. -
bun turbo test(as invoked by test.yml) executes all three suites; the 110 existing tests pass under it. -
@opencode/console-function,@opencode/console-resource,@opencode/stats-serverchecked: they currently have no test files, so no task is needed — note that in the PR rather than adding empty tasks.
Single-repo: the console/stats workspaces exist only in developing-today/opencode.
Metadata
Metadata
Assignees
Labels
No labels
Activity
docs: record the #143, #160 and #179 completions in ROADMAP Done (#182)