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#4451
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/3098
Author: @ctr-137
Created: 10/18/2026
Status: ❌ Closed
Base:
main← Head:fix/bench-port-3096📝 Commits (1)
4d5e393fix: strata_bench defines the port it prints (main usedportin the message for a taken port and in the message naming the server it starts, but only had the value inline for the address, so both paths crashed with a NameError - #3096)📊 Changes
2 files changed (+27 additions, -1 deletions)
View changed files
📝
tools/strata_bench.py(+2 -1)📝
tools/test_strata_bench.py(+25 -0)📄 Description
What it changes
mainusedportin two messages but only had the value inline for the address, so both paths crashed with aNameError. It now definesportonce (--port, else the config's port, else 8080) and uses it for the address and for both messages — only on the path that starts its own server; with--urlthe config's port is not read at all.Three regression tests: one per path that read
port(the message for a port taken by something else, and the message naming the server the bench starts itself), and one for--urlwith a config whose port isnull.What it leaves alone
No behaviour change. The address, the server start, the exit codes and the report are as they were; the value
portnow holds is the same one that was already used to buildbase.Validation
Environment: Windows 11, Python 3.14.7; branch based on
main@477ac13c.mainwith theNameErrorfrom #3096 attools/strata_bench.py:990.--urltest fails on this branch's first commit withTypeError: int() argument must be ... not 'NoneType'(onmainit passes: with--urlthe config's port is never read there).python tools/test_strata_bench.py: 20 tests, OK. CPU only, no GPU, no model files, Windows, Python 3.14.7.test_no_server_is_an_error_not_a_crashcovers only the--urlpath without a config, which is why this survived.Fixes #3096
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.