Skip to content

test(cli): update domain tests for IPC transport#30248

Merged
noanflaherty merged 4 commits into
mainfrom
fix/domain-tests-ipc
May 11, 2026
Merged

test(cli): update domain tests for IPC transport#30248
noanflaherty merged 4 commits into
mainfrom
fix/domain-tests-ipc

Conversation

@noanflaherty
Copy link
Copy Markdown
Contributor

@noanflaherty noanflaherty commented May 11, 2026

Summary

  • Rewrite domain-register.test.ts and domain-status.test.ts to mock
    cliIpcCall instead of VellumPlatformClient
  • The domain command was migrated to thin IPC in feat(cli): migrate domain to thin IPC wrapper #30238 but the tests
    still tried to connect to the real daemon socket

Follow-up fix for #30238.


Open in Devin Review

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

noanflaherty and others added 3 commits May 10, 2026 23:03
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@noanflaherty noanflaherty merged commit e2e43c5 into main May 11, 2026
9 of 12 checks passed
@noanflaherty noanflaherty deleted the fix/domain-tests-ipc branch May 11, 2026 03:17
noanflaherty added a commit that referenced this pull request May 11, 2026
After PRs #30238-#30248 landed, four Assistant Checks jobs went red on main:

* Type Check — 27 errors:
  * 26 call sites pass a CliIpcCallResult<T> into exitFromIpcResult, whose
    parameter was typed { ok: false; ... }. TypeScript narrows r.ok inside
    if (!r.ok) but does not re-narrow the object as a whole when passed.
    Widen the parameter to { ok: boolean; ... } — runtime semantics are
    unchanged (the function only inspects error / statusCode).
  * 1 .map() error in oauth/providers.ts — IPC response was typed
    { providers: SerializedProvider[] } (camelCase) but the route returns
    snake_case Record<string, unknown>. Aligned the IPC type to the wire
    shape.

* Lint — 4 auto-fixable simple-import-sort errors in conversations.ts,
  credentials.ts, runtime/routes/index.ts, runtime/routes/platform-routes.ts.
  Applied via bun run lint --fix.

* OpenAPI Spec Check — openapi.yaml was stale per CI. After fixing the
  package-resolution issue locally and regenerating, on-disk yaml is
  byte-identical to generator output (no diff in this commit) — the
  generator + types are now in sync.

* Test — route-policy coverage guard was fixed by #30250. Remaining test
  failures (oauth providers update etc.) will be re-evaluated after this
  fix lands; many were downstream of the type-check failure surfacing as
  import-resolution errors in test files.

No wire-format or public-API changes.

Co-authored-by: credence-the-bot[bot] <277301654+credence-the-bot[bot]@users.noreply.github.com>
Co-authored-by: Noa Flaherty <noa@vellum.ai>
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