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#1155
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?
Originally created by @yusheng227507 on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2864
Summary
tools/strata_bench.pyis broken in v0.1.45 (477ac13c). Any run that starts its own server (i.e.--configwithout--url) dies immediately withNameError: name 'port' is not defined. Passing--url(pointing at an already-running server) still works, so the failure is confined to the "start the server" path.Environment
v0.1.45/ commit477ac13c.venvstrata-*.jsonwith"port": 8080,"host": "0.0.0.0"Steps to reproduce
8080).--url:Actual result
It fails before loading the model (and therefore before any measurement):
Exit code 1.
Expected result
The bench starts the server on the configured port, waits for readiness, and runs the suite (as it did in v0.1.44.1 and earlier).
Root cause
Commit
69fe4055("tools: poll the server address the config binds, not loopback (#2330)") replacedwith
That removed the only assignment of the local name
port, but three later uses in the sameelsebranch still reference it (the "port is used by something that is not Strata" message, the "Starting ... on port {port}" message, andstart_server(cfg_path, port, ...)). The--urlpath skips the branch, so it never trips.The new test added by that commit (
tools/test_bench_host.py) only exercisesserver_base()in isolation, so it does not catch the missing local.Suggested fix
Restore the local name (keeping the new
server_basehost handling):Workaround (no source change)
Start the server yourself and point the bench at it, which bypasses the broken branch:
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.