Skip to content

Phase 1: add durable service registry schema and store#326

Merged
kacy merged 3 commits intomainfrom
phase1-service-registry-schema
Mar 26, 2026
Merged

Phase 1: add durable service registry schema and store#326
kacy merged 3 commits intomainfrom
phase1-service-registry-schema

Conversation

@kacy
Copy link
Copy Markdown
Owner

@kacy kacy commented Mar 26, 2026

Summary

  • add durable services and service_endpoints tables plus supporting indexes
  • add service registry store records and CRUD/query APIs while keeping VIP allocation as a later slice
  • wire the new tables into backup schema validation and the raft SQL allowlist

Commits

  • 6ca13f8 Add durable service registry schema and store APIs
  • ccabd18 Wire service registry tables into backup and sql guard

Verification

  • env YOQ_SKIP_SLOW_TESTS=1 ZIG_GLOBAL_CACHE_DIR=.zig-global-cache ZIG_LOCAL_CACHE_DIR=.zig-local-cache timeout 30 zig build test -- --test-filter "init creates services table|init creates service_endpoints table|createService and getService round-trip|listServices returns services ordered by name|upsertServiceEndpoint updates an existing endpoint|service endpoint queries support service and node cleanup flows|isAllowedStatement accepts valid service registry operations|validateBackupSchema rejects incomplete database" timed out after 30s with no emitted failures

Follow-up

  • VIP allocation remains a separate Phase 1 slice
  • runtime callers still use the legacy service discovery path until the registry/reconciler layers are introduced

@kacy kacy merged commit 44d615c into main Mar 26, 2026
6 of 7 checks passed
@kacy kacy deleted the phase1-service-registry-schema branch March 26, 2026 19:47
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