Skip to content

test(ci): run SDK test suites that were never executed#192

Merged
Depo-dev merged 2 commits into
mainfrom
ci/wire-sdk-tests
Jul 3, 2026
Merged

test(ci): run SDK test suites that were never executed#192
Depo-dev merged 2 commits into
mainfrom
ci/wire-sdk-tests

Conversation

@Depo-dev

@Depo-dev Depo-dev commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Part of the repo-wide hardening sweep (item A: false-green tests).

CI only typechecked sdk/typescript and ran no SDK test suite at all. Every SDK's tests were committed but never executed — false green. This wires them in and fixes the rot that surfaced:

  • sdk/typescript: add npm test (vitest). graphql.test.ts imported msw which was never declared — added as devDependency. 29 tests now run.
  • sdk/go: new go test -race ./... job. Passes as-is.
  • sdk/python: new job; added a [dev] extra (pytest, pytest-asyncio) and fixed a test-side mock in test_async_client that made websockets.connect return a coroutine instead of an async context manager. 19 tests now run.
  • sdk/react: new vitest job. 12 tests.

All four verified green locally before wiring.

Depo-dev added 2 commits July 3, 2026 15:43
CI only typechecked sdk/typescript and never ran any SDK test suite, so
these suites were false-green (or silently rotted):

- sdk/typescript: CI ran only `npm run lint` (tsc). Add `npm test`
  (vitest). graphql.test.ts imported msw but msw was never declared —
  add it as a devDependency. (29 tests now run)
- sdk/go: add a job running `go test -race ./...`. (passes)
- sdk/python: add a job; declare a [dev] extra (pytest, pytest-asyncio)
  and fix a test-side mock in test_async_client that made
  websockets.connect return a coroutine instead of an async context
  manager. (19 tests now run)
- sdk/react: add a job running the vitest suite. (12 tests)
- sdk/typescript: regenerate package-lock.json cleanly; the incremental
  msw install left it internally inconsistent (@emnapi version drift) so
  npm ci rejected it on the Linux runner.
- sdk-react: build the TypeScript SDK before installing react. react
  depends on it via file:../typescript, which resolves to its gitignored
  dist/ — absent in a clean checkout, so the import failed only in CI.
@Depo-dev Depo-dev merged commit 60a6674 into main Jul 3, 2026
11 checks passed
@Depo-dev Depo-dev deleted the ci/wire-sdk-tests branch July 3, 2026 17:26
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