Skip to content

fix(graphstore): make ladybug stub errors actionable#90

Merged
qiansheng91 merged 1 commit into
alibaba:mainfrom
Chloride233:fix/graphstore-startup-diagnostics
Jun 24, 2026
Merged

fix(graphstore): make ladybug stub errors actionable#90
qiansheng91 merged 1 commit into
alibaba:mainfrom
Chloride233:fix/graphstore-startup-diagnostics

Conversation

@Chloride233

Copy link
Copy Markdown
Contributor

Summary

Running the Go entrypoints without -tags ladybug currently fails with:

local.ladybug provider is disabled in this build

The error is accurate, but it does not tell a new contributor what to do next.

This PR keeps local.ladybug as the default provider and only improves the stub guidance. When the stub provider is active, its health message and provider-unavailable errors now point to both supported paths:

build with -tags ladybug to enable local.ladybug,
or run with --graphstore file.memory for local development

What stays unchanged

  • DefaultProviderType is still local.ladybug
  • file.memory is not the default
  • No REST, CLI, MCP schema, SDK, Query Service, Web UI, or runtime storage behavior changes
  • The real Ladybug provider is unaffected

Test plan

  • go test ./internal/graphstore/provider/ladybug
  • go test ./cmd/umodel-mcp
  • go test ./cmd/umodel-server
  • go test ./tests/contract
  • git diff --check

@Chloride233

Copy link
Copy Markdown
Contributor Author

Small bit of context: I hit this while trying the default startup path from a fresh checkout. The error told me local.ladybug was disabled, but it did not tell me whether I was missing a build tag, a service, or some local config.

I left the default provider alone here. This just makes the stub error say what I needed at that point: build with -tags ladybug, or use --graphstore file.memory if you only want the local dev backend.

@Chloride233
Chloride233 force-pushed the fix/graphstore-startup-diagnostics branch from 2acee54 to 9c90a4e Compare June 24, 2026 00:20
@qiansheng91
qiansheng91 self-requested a review June 24, 2026 02:47
@qiansheng91
qiansheng91 merged commit c257055 into alibaba:main Jun 24, 2026
3 checks passed
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.

2 participants