Skip to content

[AIGTWY-4977] Stub managed integration tests from JSON fixtures - #1032

Merged
david-siqi-liu merged 1 commit into
mainfrom
david/managed-config-json-stubs
Oct 7, 2026
Merged

david-siqi-liu merged 1 commit into
mainfrom
david/managed-config-json-stubs

Conversation

@david-siqi-liu

@david-siqi-liu david-siqi-liu commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Companion: #1026 (CUJ 2, 3 and 6 managed skills coverage). Independent PR; merge this one first, since it fixes the Managed config · Claude failure #1026 also sees.

Integration tests use a stubbed config on the common managed workspace, and the e2e CUJs stay real and read-only. Until now the managed integration suites mixed live published configs, three different workspaces with their own service principals, and configs built in Python. One of those workspaces (ap-northeast-2) began returning an empty system.ai catalog, which turned Managed config · Claude red on every branch.

Changes:

  • Every managed-config integration test runs on the managed workspace (E2E_ADMIN_WORKSPACE). It gets its CodingAgentConfig from a checked-in JSON fixture in tests/fixtures/managed_config/ through UCODE_MANAGED_CONFIG_STUB. The fixtures are in the GET shape ug configure --file ([AIGTWY-4864] Support ug configure --file #866) accepts, so switching to --file once [AIGTWY-4864] Support ug configure --file #866 lands is mechanical.
  • The Python config builders and the fetch-then-stub helper are removed. The former live published-config tests (test_ug_configure_managed.py) now stub too. The stub records the same published outcome and TTL cache, so the TTL test still applies.
  • The Claude defaults tests no longer target eng-ml-inference-batch-inference-us-west-2 or eng-ml-inference-ap-northeast-2. Their service principals, UG_MPS_DEFAULTS_CLIENT_SECRET, UG_PARENT_SCHEMA_DEFAULTS_CLIENT_SECRET and the runner's minting code are gone. Both repo secrets can be deleted once this merges.
  • The managed marker is gone. Managed-config integration tests are managed_fixture.
  • The dedicated e2e CUJs (tests/e2e_cuj/) are untouched: they keep reading the real published workspace configs.
  • tests/AGENTS.md rule 4, tests/README.md and tests/integration/README.md are updated.

This pull request and its description were written by Isaac.

@david-siqi-liu
david-siqi-liu force-pushed the david/managed-config-json-stubs branch 3 times, most recently from 5e1db72 to 6643a09 Compare October 7, 2026 21:08
@david-siqi-liu
david-siqi-liu force-pushed the david/cuj-skills-coverage branch from e56e8ed to f5fb31e Compare October 7, 2026 21:08
@david-siqi-liu
david-siqi-liu marked this pull request as ready for review October 7, 2026 21:38
@david-siqi-liu david-siqi-liu added the ug-review Run the automated UG review label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

UG review

This test-only change replaces managed-config reads with JSON fixtures and removes two workspace credential paths from CI. The supplied diff is truncated, so the updated test helpers and assertions could not be fully reviewed.

No actionable findings.

Some patches were unavailable or truncated to fit the review context. Treat this as a partial review.

Automated advisory review of 221a64c09c08 using Lilly's UG review rubric. It does not approve or block this PR.

…xtures

Integration tests now stub their config on the common managed workspace,
while the e2e CUJs stay real and read-only. Each managed-config
integration test loads its CodingAgentConfig from a checked-in JSON file
in tests/fixtures/managed_config/ through UCODE_MANAGED_CONFIG_STUB. The
files use the GET shape that `ug configure --file` (#866) accepts, so
moving to --file later is mechanical.

- Converted the inline builder configs (lifecycle, MCP, skills, models,
  smart routing, tracing) to fixtures.
- Replaced the fetch-then-stub MPS discovery helper with fixtures.
- Moved the published-config tests and the us-west-2 / ap-northeast-2
  Claude defaults tests onto the managed workspace.
- Dropped the extra workspaces' service principals and secrets, and the
  `managed` marker.

Co-authored-by: Isaac <no-reply@databricks.com>
@david-siqi-liu
david-siqi-liu force-pushed the david/managed-config-json-stubs branch from 6643a09 to 221a64c Compare October 7, 2026 22:56
@david-siqi-liu
david-siqi-liu changed the base branch from david/cuj-skills-coverage to main October 7, 2026 22:56
@david-siqi-liu
david-siqi-liu added this pull request to the merge queue Oct 7, 2026
Merged via the queue into main with commit 459678f Oct 7, 2026
73 of 86 checks passed
@david-siqi-liu
david-siqi-liu deleted the david/managed-config-json-stubs branch October 7, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ug-review Run the automated UG review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants