Skip to content

Drop provider-launch e2e tests already covered by the integration suite - #688

Open
masonc08 wants to merge 1 commit into
mainfrom
masonc08/prune-redundant-mps-e2e-tests
Open

masonc08 wants to merge 1 commit into
mainfrom
masonc08/prune-redundant-mps-e2e-tests

Conversation

@masonc08

Copy link
Copy Markdown
Collaborator

What

Deletes two in-process tests in tests/test_e2e.py that duplicate coverage already provided by the black-box integration suite:

  • TestModelProviderLaunch.test_launch_claude_through_relayed_provider → covered by tests/integration/test_ug_claude_relayed.py
  • TestModelProviderLaunch.test_launch_codex_through_provider → covered by test_ug_configure_codex_openai_mps (same main.ucode.ci_openai_mps)

Also removes the now-dead _first_relayed_service helper, the CI_OPENAI_MPS / CI_OPENAI_MODEL constants, the threading import, the CLAUDE_CODE_OAUTH_TOKEN wiring in the e2e-shards job, and simplifies the codex shard keyword.

Why

The integration suite drives the real installed CLI against the same CI MPSes, so these e2e duplicates add no coverage. Each CI run currently burns the personal Anthropic subscription token and the OpenAI-key MPS twice — once from e2e-shards, once from the integration full job. This removes the e2e-shards half; the surviving relayed CUJ lives in the integration suite, which keeps the OAuth-token secret.

⚠️ Merge ordering

Merge after #565, which adds test_ug_claude_relayed.py. This branch is off main, which doesn't have that integration test yet, so until #565 lands the relayed CUJ has no in-suite coverage. The strict up-to-date ruleset forces a rebase onto post-#565 main before merge, which restores the integration relayed coverage at merge time.

Test

ruff check and py_compile clean; the suite still collects. No behavior change — test and CI-config only.

This pull request and its description were written by Isaac.

The relayed-Claude and Codex-through-OpenAI-MPS launches are exercised
end-to-end by the black-box integration suite (test_ug_claude_relayed and
test_ug_configure_codex_openai_mps), which drive the real installed CLI
against the same CI MPSes. The in-process e2e duplicates add no coverage,
and each CI run burns the personal Anthropic subscription token and the
OpenAI-key MPS a second time.

- Remove TestModelProviderLaunch.test_launch_claude_through_relayed_provider
  and test_launch_codex_through_provider, plus the now-unused
  _first_relayed_service helper, CI_OPENAI_MPS / CI_OPENAI_MODEL constants,
  and the threading import.
- Stop wiring CLAUDE_CODE_OAUTH_TOKEN into the e2e-shards job (no e2e test
  uses it anymore) and simplify the codex shard keyword.

Merge after #565, which adds the integration relayed test; until then the
relayed CUJ has no in-suite coverage on main.

Co-authored-by: Isaac <no-reply@databricks.com>
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.

1 participant