Repository navigation
feat(ci): uv, test, serve and mcp dry runs list their requests - #3135
Merged
Merged
Conversation
… 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
force-pushed
the
feat/2260-uv-test-pipeline-serve-mcp-and
branch
from
November 1, 2026 23:50
eea7f88 to
3d78a35
Compare
dan-petty
marked this pull request as ready for review
November 2, 2026 00:00
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>
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.
Requested by D · project thread
The
uv,test,pipeline,serve,mcpandci fail-to-passcommands of #2260 obey the dry-run rule of #412. Each command has a dry-run class, and 16 paths leavetests/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-installanduv runget--dry-runand list the oneuvcommand, asprepare_tool_cmdwrites it.pipelinelists thedagger callthatbuild_dagger_cmdwrites.test runlists the pytest command ofpytest_argv. The local git reads of--changedrun, because they make no external request.test loadlists the k6 command.test sandboxlists the Docker requests ofplan_docker_sandbox, with the workspace, the network mode and the declared controls of the real run.build_dry_run_detailsis removed.serveandmcp servelist the bind and the start of the server. The dry run ofservereturns before uvicorn and before the settings load.mcp serveapplies thessebind check (check_sse_bind) in the dry run too, so a refused remote bind fails the same way in both runs.ci fail-to-passlists the ten processes of the replay: merge base, tworev-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-memoryprints the target, the iteration count, the limits and the report path. It starts no profiler and writes no file.mcp toolsruns normally.mcp export-schemaslists 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_argvandrun_argvincommands/uv.py,pytest_argvincommands/test_cmd.py,uvicorn_optionsincommands/serve.py,server_argsincommands/mcp.py, the git builders inci/fail_to_pass.py, andmerge_base_argvanddiff_name_status_argvingit/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-memoryisno-external-request, notrequest-plan: it imports a local target and starts no external request.format fail-to-passandlint fail-to-passshare the callback ofci fail-to-pass, so they leave the gap list too. A user cannot start these two paths, becauseformatandlintare root-level commands. The tests run the plan throughci fail-to-pass.The lazy-proxy tests in
tests/core/test_main_dry_run.pyand the ratchet test now use the stub apptests/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