Repository navigation
Let CUJ 2, 7 and 9 accept multi-target provider services - #1910
asteele-db wants to merge 4 commits into
Conversation
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
|
/integration-test |
|
/ug-review |
| selections = response.payload["route_selection"] | ||
| assert len(selections) == 1, selections |
There was a problem hiding this comment.
can we also assert the selection is one of route.payload["route_options"] (and harness is claude), like cuj7 does? now any model the router returns passes, so we lose the old target check.
Suggestion:
| selections = response.payload["route_selection"] | |
| assert len(selections) == 1, selections | |
| selections = response.payload["route_selection"] | |
| assert len(selections) == 1, selections | |
| assert selections[0]["route_option"] in route.payload["route_options"], selections |
| assert_served(recorder, served, served.payload["model"]) | ||
| served_models.add(served.payload["model"]) | ||
| # The parent may run on another provider target; each routed child must run on its pick. | ||
| assert selected_models <= served_models, (selected_models, served_models) |
There was a problem hiding this comment.
UG review recommendationRECOMMENDATION: APPROVE Reasons:
Findings considered: 2 (severities: low: 1, medium: 1); see the inline review comments. Advisory only: this recommendation never approves or merges the pull request. The |
Co-authored-by: Isaac <no-reply@databricks.com>
|
/integration-test |
Polly AI ReviewBlocking issues
Security vulnerabilitiesNone found in the changed code. Non-blocking notes
ApproachMembership and per-target validation fit the outcome. For child correlation, promote the relevant CUJ4 task-matching logic into shared evidence utilities rather than adding another live journey. SummaryDiff size (computed): 5 files; +41 / -25 lines (66 changed text lines); 0 binary files.
Shares use additions + deletions, including generated text and lockfiles. Binary files have no line count. Tests include fixtures/helpers under test paths and colocated test/spec files; categories are path-based, not coverage measurements. ChangesThe change relaxes provider-target assumptions in CUJ2, CUJ7, and CUJ9, updates routing evidence, extends the catalog unit matrix, and documents fixture restrictions. No production code, dependencies, or generated assets change. The size is proportional to the outcome. Parameterizing the existing catalog test avoids duplicate setup; no concrete size reduction is warranted. TestsTest-by-test assessment
Existing plain Claude and Codex inference cases still verify the admin defaults. CUJ7’s Claude native audit permits unknown child-model identity, so it does not close the blocking correlation gap. Synthetic recorder cases can protect that gap without another live journey. Independent LIST FULL/GET mismatch and missing-fixture-target rejection are not established by the changed unit matrix. The PR reports 223 helper tests passing, 29 CUJ cases collected, and successful Ruff checks; these were not independently rerun. Static patch applicability and Python parsing were checked. Live multi-target discovery and inference remain unverified. Request-header checks do not establish downstream usage attribution. To verify the revision, run ScopeAll changes support accepting multi-target provider services; no unrelated changes were found. The documented OpenAI singleton restriction is intentional. CUJ2’s remaining Desktop singleton expectation limits the broader support claim, as noted above. Automated review by Polly · workflow run |
|
Fork integration cancelled on cc5d892: https://github.com/databricks/unity-gateway/actions/runs/45680209937 |
Co-authored-by: Isaac <no-reply@databricks.com>
Summary
_assert_mps_catalog: requires the fixture model to be among each provider service's targets (not the only target), checks the native APIs per target, and compares the LIST FULL targets against the fetched targets.routes:selectresponse, not the fixture default. The plain Claude and Codex inference cases still assert the admin default model.ug_e2e.providers.openai.*to list every live OpenAI target, read from the provider service.tests/e2e_cuj/README.mdnow describes which CUJs accept extra targets.Validation
uv run pytest tests/test_e2e_cuj_helpers.py: 223 passed. The catalog unit test now runs with one and two targets per service.ruff checkandruff format --checkpass on the changed files.This pull request and its description were written by Isaac.