mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#4311
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/2878
Author: @ctr-137
Created: 10/17/2026
Status: ❌ Closed
Base:
main← Head:bench-start-port-local📝 Commits (1)
738a482tools: give the bench's start branch back theportlocal it reads (#2872)📊 Changes
2 files changed (+61 additions, -2 deletions)
View changed files
📝
tools/strata_bench.py(+2 -1)📝
tools/test_bench_host.py(+59 -1)📄 Description
./bench.shwith no--urldies before it starts the model:69fe4055(#2330) replacedwith
base = server_base(cfg.get("host"), a.port or int(cfg.get("port", 8080))), which removed the onlyassignment of the local
port- but the branch that starts its own server still reads it three times: the"Port N is used by something that is not Strata" message, the "Starting ... on port N" message, and
start_server(cfg_path, port, ...).--urlskips the branch, so it never tripped there.This keeps the #2330 behaviour - the poll still goes to
server_base(cfg host, port), so a0.0.0.0bind ispolled on loopback - and changes nothing else in the branch.
What I changed
tools/strata_bench.py: restore the local, keepserver_base().tools/test_bench_host.py: aStartsItsOwnServerclass that drivesmain()into the branch withstart_serverandwait_readystubbed out. The existing tests here only calledserver_base()directly, which is why the missing local got through.
It checks the port the server is given, the address polled (
--portoverriding the config, and loopback forthe config's
0.0.0.0), and the foreign-service-on-the-port case.How I checked
On main today the new tests fail with the reported traceback at
strata_bench.py:990; on this branch all 8tests in
tools/test_bench_host.pypass (python -m unittest tools.test_bench_host). No GPU is needed.Fixes #2872. #2864 is the same report and should close with it.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.