Extract walk_catalog_schemas scaffold in databricks.py - #574
Open
xsh310 wants to merge 3 commits into
Open
Conversation
xsh310
added this pull request to stack #576
September 11, 2026 21:08
xsh310
commented
Sep 11, 2026
xsh310
commented
Sep 11, 2026
xsh310
commented
Sep 11, 2026
xsh310
marked this pull request as ready for review
September 12, 2026 07:13
xsh310
force-pushed
the
skills-picker-walk
branch
from
September 12, 2026 07:16
d96da01 to
5d4e8cb
Compare
Factor the catalogs -> schemas -> parallel-per-schema-probe walk out of list_all_mcp_services into a generic walk_catalog_schemas(probe, collect), and rewrite list_all_mcp_services on top of it. The scaffold owns catalog/schema enumeration, worker pools, and the wall-clock deadline drain; the caller owns the probe, accumulation, dedup, progress, and streaming. No behavior change; the upcoming skills walk (download picker) becomes the second caller. Co-authored-by: Isaac <no-reply@databricks.com>
Rewrite the docstring around the high-level behavior and spell out the probe/collect callable shapes; revert the incidental schema_name -> name rename. Co-authored-by: Isaac <no-reply@databricks.com>
Rename _UC_FUNCTION_PROBE_WORKERS -> _SCHEMA_PROBE_WORKERS (a generic per-schema concurrency cap, not UC-function-specific) and expose it as the max_workers param, mirroring skip_catalogs. Co-authored-by: Isaac <no-reply@databricks.com>
xsh310
force-pushed
the
skills-picker-walk
branch
from
September 14, 2026 03:08
5d4e8cb to
0e30a65
Compare
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.
What changed, and why?
Change: Extract the catalogs → schemas → parallel-per-schema-probe walk out of
list_all_mcp_servicesinto a genericwalk_catalog_schemas[T](*, deadline, probe, collect, skip_catalogs=…)indatabricks.py, and rewritelist_all_mcp_serviceson top of it. The scaffold owns catalog/schema enumeration, the worker pools, and the wall-clock deadline drain; the caller supplies theprobe(list_mcp_services) and acollectthat owns accumulation, dedup, progress, and streaming.Why: Pure refactor (PR B in the
ug skill addinteractive-picker stack). Extracting the walk lets PR D's skills discovery reuse it as a second caller.list_all_mcp_services's signature and every return value are unchanged.Note: the design doc's PR B also mentioned rewriting
list_uc_functions_catalog_schemas, but that function does not exist in this repo — there is a single walk today, so the scaffold has one caller now and the skills walk becomes the second in PR D.How do you know it works?
Testing:
ruff checkandruff formatclean; fulluv run pytestgreen except the two pre-existing e2e failures (test_e2e_user_agent,test_claude_smart_routing_v2) that also fail onmain. AddedTestWalkCatalogSchemas(skips skip-catalogs +information_schema, probes each user schema, reports progress, returns the right phase-1 reason); the existingTestListAllMcpServicestests stay green unchanged.This pull request and its description were written by Isaac.