Repository navigation
feat(docker): run datahub-ai-service in quickstart and datahub-dev - #21352
Conversation
PR SummaryOverview Gradle / quickstart generation treats CI extends the image bake resolver and tests so Plain Reviewed by Cursor Bugbot for commit 35b4511. Bugbot is set up for automated code reviews on this repo. Configure here. |
Smart test selectionpytest smoke testsMode: shadow. The selection below is computed but not applied; this PR still runs the default matrix (
Medium confidence: a wrong tag means tests are skipped, so check the tags above against what this PR touches. Selected scopes (6 files or classes, 54 tests)
Add the commit |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
1542892 to
73dbb4b
Compare
2b8bcd6 to
78cc2b3
Compare
|
@nwadams Build all images is failing here (and on #21353), looks like the second uv pip install in the ai-service Dockerfile is missing the netrc secret mount, so with chainguard-ci it can't fetch setuptools ("Missing credentials"). adding the same --mount=type=secret,id=netrc line as the lock install step should fix it |
CI's package check compares find_packages with find_namespace_packages, and the gql directory had no __init__.py. Make it a package and declare its .gql files as its own package data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Installing metadata-ingestion and the two packages from source resolves their build requirements from the configured index. In CI that index needs the netrc secret, which only the lock install step mounted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FastMCP 4.2.5 serves subscriptions/listen, and on the 2026-07-28 protocol the SDK advertises listChanged whenever that handler is registered, overriding the notification options. Drop the handler: the server never sends change notifications, and an in-process bus can't reach clients on another replica. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
master now adds its own placeholder right after __SYSTEM_CLIENT_SECRET__. Keeping ours one line further down lets both changes merge without a conflict. The replacements are independent, so their order doesn't matter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stack. This is one PR in a series that adds a built-in MCP server to DataHub Core. It is based on
na--ai-service-image-ci(the previous PR in the stack); review only its own commit. This PR changes GMS, the frontend, Docker or CI, not only the new Python packages. Everything user-facing is behind a GMS feature flag,MCP_SERVER_ENABLED, off by default (added in #21349).Stack so far:
What this does
Quickstart profiles now start datahub-ai-service, and the frontend proxies
http://localhost:9002/mcp to it, so an MCP client needs only the URL (no
token while GMS auth is off).
The plain
quickstartprofile leaves it out for now:datahub docker quickstartruns that profile with the latest release's images, and norelease has published datahub-ai-service yet, so pulling it would stop the
whole stack from starting. It joins that profile once a release ships the
image. The other quickstart profiles (smoke tests, run-quickstart.sh) and
the debug profiles run it.
host's loopback only; remote clients go through the frontend. No
depends_on (it answers 503 until GMS is up) and no compose healthcheck
(the image has one). It trusts X-Forwarded-Host only from the frontend.
datahub-core-mcp-tools sources over the installed packages, so a restart picks
up changes; the image builds with the other Python services.
DATAHUB_AI_MCP_ENABLED and DATAHUB_AI_IMAGE overrides, and the
quickstart compose check fails if any user override is lost.
the other images) and every quickstart config whose compose profile runs
it. CI's image plan builds it when packages/datahub-ai-service,
packages/datahub-core-mcp-tools, docker/datahub-ai-service, metadata-ingestion
or the shared uv/SSL snippets change, and otherwise reuses the quickstart
tag. The security scan covers it like the other images.
remote tunnels); changes under either package rebuild only
datahub-ai-service (
rebuild ai). AGENTS.md maps both packages to thecontainer.
Tested with datahub-dev on a local OSS instance (GMS auth off): the service
comes up healthy from the compose file, and through the frontend legacy
and modern MCP clients call get_me with no token as the system user; a
foreign Host/Origin gets 403, ?token= 400 and OPTIONS 405.
Testing
datahub-dev start brought the service up healthy from compose on the OSS instance; through :14002/mcp legacy + modern clients called get_me with no token; 403 / 400 / 405 checks; datahub-dev unit tests (26); resolver scenario tests (58); quickstart compose check.
Checklist
🤖 Generated with Claude Code