mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4720] [Benchmark] bench run against a running server keeps that engine's log #5150
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#5150
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/4720
Author: @coryjett
Created: 10/30/2026
Status: 🔄 Open
Base:
main← Head:fix-bench-attach-log📝 Commits (1)
fe5c7b2bench: a run against a running server keeps that engine's log (#4492)📊 Changes
3 files changed (+83 additions, -2 deletions)
View changed files
📝
strata_cli/bench_standard.py(+31 -1)📝
strata_cli/cli.py(+7 -1)📝
tests/terminal/test_bench_standard.py(+45 -0)📄 Description
Problem and result
Fixes #4492.
strata bench run --profile <run config> --no-startagainst a server that is already runningwrote no
engine.log, although the profile names alogfile. The engine log was only attached when therunner started the engine itself. A report that reused a running server, the usual case for a production
box, lost the stage plan ("layer split across 2 GPUs ..."), the PCIe probe and expert-cache lines, and the
per-request summaries.
After: the run config's log is kept from the running engine's start line to the end of the run.
Related discussion
#4492
Approach
The run config's log is appended to by every start, so the running engine's lines begin at the newest
[strata] <time> engine started:line, whichserve/server.pywrites on each start.bench_standard.engine_start_offset(run_log)finds that line in the log's last 64 MiB, starting on a wholeline.
bench runpasses that offset to the existingengine_log_since, the same path a runner-started engineuses. The attached log therefore covers the engine's start through this run's own requests, and still goes
through the existing 2 MB tail cap and redaction.
If there is no start line, no log is attached. Otherwise the report would carry an earlier engine's lines.
Validation
Passed:
python3.12 -m unittest tests.terminal.test_bench_standard tests.terminal.test_bench: Ran 96 tests in66.299s, OK (1 skipped). Strata Control 0.1.52's bundled Python 3.12.15, Ubuntu 26.10, this branch
(main
870aedd9+ this commit).engine.logstrata_cli(production files stashed, test kept): FAILED (errors=1).bench run --profile <production run config> --no-start --skip-model-hashagainst the running server:engine.log, starting[strata] 2026-10-30 11:42:06 engine started: ...layer split across 2 GPUsline and 582strata serve: promptsummaries/home/<user>, and the API key is absentFailed:
Not run:
logis shared by two profiles.Limits
counts and timings, not prompt text. Only the last 2 MB is kept, as for a started engine.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.