mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2994] [CLOSED] bench: the start-its-own-server path names its port again #4385
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#4385
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/2994
Author: @victorgabr
Created: 10/18/2026
Status: ❌ Closed
Base:
main← Head:fix/bench-port-nameerror📝 Commits (1)
4665481bench: the start-its-own-server path names its port again (69fe4055inlined the value into server_base and dropped the port assignment, so the port-in-use line, the start line and start_server itself died with a NameError; tools/test_bench_host.py pins the path without a GPU or a server)📊 Changes
2 files changed (+45 additions, -1 deletions)
View changed files
📝
tools/strata_bench.py(+2 -1)📝
tools/test_bench_host.py(+43 -0)📄 Description
69fe4055(#2330) inlined the port intoserver_base(...)and dropped theport = a.port or int(cfg.get("port", 8080))assignment, but three uses ofportbelow it stayed: the port-in-use line, the "Starting the server on port" line, and thestart_server(cfg_path, port, ...)call itself. Runningtools/strata_bench.pywith no server already up now dies before launching one:test_bench_host.pyonly exercisedserver_basein isolation, so the path stayed unpinned.Changes: one line in
main()—portis assigned again and passed toserver_base. Nothing else moves. Adds:StartServerPortintools/test_bench_host.py, which drivesmain()down the start-its-own-server branch withstart_server/wait_readystubbed — no GPU, no server, no network — and asserts the config's port and the--portoverride reachstart_server.How I checked: the new tests raise the NameError on the file before the fix and pass after (
python -m unittest tools.test_bench_host: 7/7). End to end on a TITAN RTX: with the fix, the bench started its own server and wrote three full community reports today (runs with and without STRATA_ROUTE_TAIL_SKIP); without it every such run crashed at the line above.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.