mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[PR #3446] [CLOSED] [Benchmark] tools/strata_bench.py: assign the port before the harness starts the server #4637
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4637
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3446
Author: @rodi4eg
Created: 10/20/2026
Status: ❌ Closed
Base:
main← Head:pr/bench-port-fix📝 Commits (1)
d44efeb[Benchmark] tools/strata_bench.py: the port variable is never assigned when the harness starts the server📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
tools/strata_bench.py(+2 -1)📄 Description
Problem and result
tools/strata_bench.pynever assignsporton the path where the harness starts the server itself (no--url). The first use raisesNameError: name 'port' is not defined, so the run dies before measuring anything:That is the path every community report takes (the harness is started with a config, not against a running server), so the tool cannot measure an install that is not already serving.
With this change the port is assigned once, and the same value is used for the readiness check, the "that port is used by something else" message and
start_server.Related discussion
none
Approach
One line in
tools/strata_bench.py:portis then defined for the two later uses in the same branch.Validation
Passed:
python tools/strata_bench.py --config <config> --runs 3completes the suite (chat, 4K and 16K prompt tests, the agent session) and writesREADME.md+results.json+ the engine log excerpt. The same command on the parent commit fails with theNameErrorabove.--url http://127.0.0.1:8080path is unchanged and still works (it never reaches this branch).Failed:
Not run:
Limits
none
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.