Skip to content

fix(review): drop the fixed gateway URL of the review dry run - #5399

Merged
dan-petty merged 2 commits into
mainfrom
fix/5345-review-dry-run-gateway-url
Nov 13, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/5345-review-dry-run-gateway-url

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The dry-run plan of the review commands gave a fixed HTTPS host when ai.gateway_url was not set, and a localhost address when ai.ollama_urls was empty. The rule of #1165 allows no service URL that no setting gives.

The plan builders now get the endpoint from resolve_ai_endpoint, the resolver of the review run, with the analysis task for the model request. When a setting is not set, the plan target names it as a placeholder, such as <ai.gateway_url>/chat/completions. The gateway target no longer adds a second /v1, and the Claude target uses the path of the Messages API. The localhost fallbacks of src/devops_cli/ai/ai_plans.py stay for #5395.

Closes #5345

Change: openspec/changes/archive/2026-11-13-5345-review-dry-run-gateway-url/

The dry-run plan of the review commands gave a fixed HTTPS host when
ai.gateway_url was not set, and a localhost address when ai.ollama_urls
was empty. The rule of #1165 allows no service URL that no setting gives.

The plan builders now get the endpoint from resolve_ai_endpoint, the
resolver of the review run, with the analysis task for the model request.
When a setting is not set, the plan target names it as a placeholder, such
as <ai.gateway_url>/chat/completions. The gateway target no longer adds a
second /v1, and the Claude target uses the Messages API path.

Refs #5395
The change is complete. Its requirement goes into the configured-service-urls spec.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/review Multi-persona code review engine, verification, and findings labels Nov 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results of the head (6a6992e), on origin/main 4ef7c6f (release 0.127.0):

  • uv run devops ci test tests/review/test_review_plan_model_endpoint.py tests/commands/test_review_dry_run.py: 47 passed.
  • uv run devops ci test tests/ai/review/test_review_sample_validation.py tests/commands/test_review_removed_options.py tests/commands/test_global_dry_run.py tests/config/test_service_url_defaults.py: 60 passed.
  • uv run devops ci --check --only lint,format,domain,openspec: all pass.
  • uv run mypy on src/devops_cli/review/review_plans.py and the 2 test files: no issues.
  • uv run ast-grep scan src/devops_cli/review/review_plans.py: no findings.
  • uv run devops ci fail-to-pass --base origin/main: 7 tests fail on the base and pass on the head. They are test_review_path_dry_run_names_the_unset_gateway_url, test_review_plan_posts_to_the_configured_model_endpoint (gateway-without-url, gateway-with-url, ollama-without-urls, claude, analysis-task-provider) and test_corpus_plan_names_the_unset_ollama_setting. The Fail-to-pass check of this pull request gives the CI run.

Render diff: the change touches no path under k8s/ or tf/. There is no render difference and no workload restart.

Follow-up issues: #5395 (the localhost fallbacks of src/devops_cli/ai/ai_plans.py), #5396 (the corpus generate dry run lists no request), #5398 (devops pr describe refuses the closing line that the proposal scaffold asks for).

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 10:59
@dan-petty
dan-petty merged commit 0666d3d into main Nov 13, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/5345-review-dry-run-gateway-url branch November 13, 2026 11:36
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.127.1](v0.127.0...v0.127.1)
(2026-11-13)


### Bug Fixes

* **ci:** alarm at 360 s, one P0 issue, shards by recorded time
([#5377](#5377))
([2abd6ff](2abd6ff))
* **github:** read the plan diff and the release files from the merge
base ([#5401](#5401))
([c54e14c](c54e14c))
* **infra:** turn off the Ansible color of every playbook run
([#5381](#5381))
([5bafb1a](5bafb1a)),
closes [#5352](#5352)
* install-tools --check passes an older openspec binary
([#5355](#5355))
([625c89d](625c89d))
* **k8s:** allow only the Ingress origins in Open WebUI
([#5357](#5357))
([fdab229](fdab229))
* **pr:** count only the latest run of each check
([#5393](#5393))
([634dc91](634dc91))
* **review:** drop the fixed gateway URL of the review dry run
([#5399](#5399))
([0666d3d](0666d3d))
* **review:** review a pull request at the merge base of its base branch
([#5387](#5387))
([351ba2a](351ba2a)),
closes [#5346](#5346)
* **roadmap:** end fix-plan at a time budget with a result line
([#5380](#5380))
([20468f4](20468f4)),
closes [#5363](#5363)
* **roadmap:** refine skips an item that changed during the write
([#5392](#5392))
([a863dda](a863dda))
* **roadmap:** stage writes RENAMED and REMOVED spec deltas
([#5367](#5367))
([4abbbd2](4abbbd2))
* **roadmap:** title the delivery by the summary of its plan
([#5376](#5376))
([10e1069](10e1069))

---
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

scope/review Multi-persona code review engine, verification, and findings type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(review): drop the fixed gateway URL of the review dry run

1 participant