Skip to content

feat(ci): uv, test, serve and mcp dry runs list their requests - #3135

Merged
dan-petty merged 3 commits into
mainfrom
feat/2260-uv-test-pipeline-serve-mcp-and
Nov 2, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/2260-uv-test-pipeline-serve-mcp-and

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Requested by D · project thread

The uv, test, pipeline, serve, mcp and ci fail-to-pass commands of #2260 obey the dry-run rule of #412. Each command has a dry-run class, and 16 paths leave tests/fixtures/dry_run_gaps.json.

Request plans. A dry run starts no process and opens no socket. It prints the numbered requests of the real run, in the order of the run:

  • uv sync, uv lock, uv python-install and uv run get --dry-run and list the one uv command, as prepare_tool_cmd writes it.
  • pipeline lists the dagger call that build_dagger_cmd writes.
  • test run lists the pytest command of pytest_argv. The local git reads of --changed run, because they make no external request. test load lists the k6 command. test sandbox lists the Docker requests of plan_docker_sandbox, with the workspace, the network mode and the declared controls of the real run. build_dry_run_details is removed.
  • serve and mcp serve list the bind and the start of the server. The dry run of serve returns before uvicorn and before the settings load. mcp serve applies the sse bind check (check_sse_bind) in the dry run too, so a refused remote bind fails the same way in both runs.
  • ci fail-to-pass lists the ten processes of the replay: merge base, two rev-parse --verify, the diff, the untracked test listing (or the two-dot fallback diff with --head), worktree add, archive, pytest, worktree remove and prune. A dry run starts no git call, so the plan uses the placeholders <merge-base>, <temp-dir> and <changed test files>. The last five steps carry the condition "only if a changed test file exists".

No external request:

  • test profile-memory prints the target, the iteration count, the limits and the report path. It starts no profiler and writes no file.
  • mcp tools runs normally. mcp export-schemas lists the tool count and the output directory, and writes nothing.

Each plan comes from the argv builder that the real run calls: sync_argv, lock_argv, python_install_argv and run_argv in commands/uv.py, pytest_argv in commands/test_cmd.py, uvicorn_options in commands/serve.py, server_args in commands/mcp.py, the git builders in ci/fail_to_pass.py, and merge_base_argv and diff_name_status_argv in git/operations.py. A test for each family runs the real command on a fake that records each call, and compares the calls with the plan.

Two corrections to the issue table:

  • test profile-memory is no-external-request, not request-plan: it imports a local target and starts no external request.
  • format fail-to-pass and lint fail-to-pass share the callback of ci fail-to-pass, so they leave the gap list too. A user cannot start these two paths, because format and lint are root-level commands. The tests run the plan through ci fail-to-pass.

The lazy-proxy tests in tests/core/test_main_dry_run.py and the ratchet test now use the stub app tests/support/dry_run_stub.py, so they do not depend on a command that this change gives a class.

Closes #2260

Change: openspec/changes/archive/2026-11-01-2260-uv-test-pipeline-serve-mcp-and/


Generated by Claude Code

@dan-petty dan-petty self-assigned this Nov 1, 2026
@dan-petty dan-petty changed the title feat(ci): uv, test, pipeline, serve, mcp and ci fail-to-pass commands list their requests in a dry run and make none feat(ci): uv, test, serve and mcp dry runs list their requests Nov 1, 2026
… list their requests in a dry run and make none

The uv, test, pipeline, serve, mcp and ci fail-to-pass commands get a dry-run class. Each request-plan command prints the numbered requests of the real run, built by the same argument builders that the run uses. The commands that make no external request say what they would do. The 16 paths leave tests/fixtures/dry_run_gaps.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDqeFH7LNHG89eY7S68
The dry-run test of mcp serve gave 0.0.0.0 as the remote host, and bandit reported B104. The address 192.0.2.10 is also not loopback, so the test still proves the refusal, and bandit finds no issue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDqeFH7LNHG89eY7S68
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDqeFH7LNHG89eY7S68
@dan-petty
dan-petty force-pushed the feat/2260-uv-test-pipeline-serve-mcp-and branch from eea7f88 to 3d78a35 Compare November 1, 2026 23:50
@dan-petty
dan-petty marked this pull request as ready for review November 2, 2026 00:00
@dan-petty
dan-petty merged commit 666e183 into main Nov 2, 2026
20 checks passed
@dan-petty
dan-petty deleted the feat/2260-uv-test-pipeline-serve-mcp-and branch November 2, 2026 00:01
dan-petty pushed a commit that referenced this pull request Nov 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.39.0](v0.38.0...v0.39.0)
(2026-11-02)


### Features

* **ci:** uv, test, serve and mcp dry runs list their requests
([#3135](#3135))
([666e183](666e183))
* **k8s:** serve gemini-3.8-flash and two Claude models
([#3117](#3117))
([1fa3a31](1fa3a31)),
closes [#3113](#3113)
* **repos:** request plans for repos, branches, ssh and tls
([#3129](#3129))
([174b82c](174b82c))
* **roadmap:** move unworkable scope to new issues during refine
([#3130](#3130))
([a0b2cb5](a0b2cb5))


### Bug Fixes

* **github:** a refused App JWT names GitHub's reason
([#3116](#3116))
([5ac0bea](5ac0bea))
* **roadmap:** make the alternatives check search before a verdict
([#3127](#3127))
([099c689](099c689))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.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.

feat(ci): uv, test, pipeline, serve, mcp and ci fail-to-pass commands list their requests in a dry run and make none

2 participants