ci: add hybrid mode test, document hybrid config#69
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds coverage and documentation for SchemaBot “hybrid mode”, where a single service instance can route to both local (direct DB) and gRPC (remote Tern) clients depending on configuration.
Changes:
- Added an integration test suite that plans/applies against both a locally configured database and a gRPC-routed database in the same run.
- Added config validation/routing-related tests for hybrid configurations (currently under the integration build tag).
- Documented hybrid mode configuration and routing behavior in
docs/configuration.md.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| integration/hybrid_mode_test.go | New integration test coverage for hybrid local+gRPC routing, plus config/routing assertions. |
| docs/configuration.md | Documents how to configure and reason about hybrid mode routing. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Verify that a single SchemaBot instance can route requests to both LocalClient (direct MySQL) and GRPCClient (remote Tern) simultaneously. Both modes can be configured together — databases in the `databases` section use direct connections, everything else routes through `tern_deployments`. Tests cover config validation, deployment resolution, and end-to-end plan/apply through both paths. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
morgo
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verify that SchemaBot supports hybrid mode — both local (direct MySQL) and gRPC (remote Tern) clients from a single instance.
docs/configuration.mdwith example configNo code changes — hybrid mode already works by design. The
TernClient()routing checks thedatabasesconfig first (local client), then falls back totern_deployments(gRPC client).🤖 Generated with Claude Code