Repository navigation
fix(ai): name benchmark servers and models by host and port - #2666
Merged
Merged
Conversation
Plans #2481: the benchmarks name each server by host and port, never by a configured URL with its password.
A server URL in ai.ollama_urls or --servers can hold userinfo, which the client sends as Basic authentication. The benchmarks wrote the whole URL in the Workers line, the progress lines, the server of each result and the saved report. The embedding benchmark also wrote it in its log line. server_label gives host[:port] from the httpx2 origin, as the AI client names the server of a reply, and unknown for a URL with no origin. Both runners keep the URL for the requests and write the label. The setup of a kept run lists labels. The help of --servers says so. Closes #2481
A --models entry can be model@endpoint, and the endpoint can hold userinfo, which the client sends as Basic authentication. The chat benchmark named the model by the whole entry in the output, in models_evaluated, in each model field and in the saved report. The setup of the kept run listed --models as typed, for the chat and the embedding benchmark. model_label gives model@host[:port]. BenchmarkRunner names each model by it and keeps the entry in a map for the requests. The setup of the kept run lists the labels. The help of --models says so. The helpers move to labels.py.
The masking of an error message hides the password of a URL, not a user name alone, such as a token. A refused --servers entry and a refused embedding endpoint quoted the URL. The error of a failed embedding run came from the embeddings engine, which named its endpoint with the URL of the request, so the error went into the report with the userinfo. The benchmark builds its errors from server_label, and a refused --servers entry shows its position and its label. The engine names an endpoint without userinfo in its errors, their details and its log lines, and still sends the request to the URL with the userinfo.
Owner
Author
|
Test results on this branch (HEAD):
Fail-to-pass ( The tests that fail on the base are: the dry run and the CLI run of the chat benchmark for a server and for a |
2 tasks done
dan-petty
marked this pull request as ready for review
October 29, 2026 15:03
dan-petty-release Bot
added a commit
that referenced
this pull request
Oct 29, 2026
🤖 I have created a release *beep* *boop* --- ## [0.16.5](v0.16.4...v0.16.5) (2026-10-29) ### Bug Fixes * **ai:** name benchmark servers and models by host and port ([#2666](#2666)) ([8a08031](8a08031)), closes [#2481](#2481) * **config:** the audit-keys alert names the removal commands ([#2663](#2663)) ([3eb138d](3eb138d)), closes [#2513](#2513) * **k8s:** the MCP tool k8s_logs takes no Loki URL ([#2668](#2668)) ([39fae85](39fae85)), closes [#2635](#2635) --- 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.
A configured server URL can hold userinfo, which the client sends as Basic authentication. The benchmarks named a server or a model by the text of the URL. Thus the password reached the terminal, the report, the saved JSON file and the kept run.
server_labelandmodel_labelinai/benchmark/labels.py. They givehost[:port]andmodel@host[:port]from the httpx2 origin, as the AI client names the server of a reply. A URL with no origin shows asunknown.--serversand--models.--serversentry shows its position and its label.Change: openspec/changes/archive/2026-10-29-2481-benchmark-server-labels/
Closes #2481