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#4113
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/2548
Author: @qiuzan2001
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:chief-serve/calibrate-engine-died📝 Commits (1)
4139087calibrate: an engine that stops while a later step measures it drops that candidate, not the run (#2313)📊 Changes
2 files changed (+51 additions, -0 deletions)
View changed files
📝
tools/calibrate.py(+16 -0)📝
tools/test_calibrate.py(+35 -0)📄 Description
Fixes the calibrate side of #2313 (who sent the engine its SIGTERM is not known and not touched here).
What it changes. In
tools/calibrate.pya later step's engine that fails to start already costs only thatcandidate (#1337,
restart()). An engine that started and then stopped while it was measured (EngineDied; in#2313 exit code -15 during the 4-worker step) still ended the whole calibration: setup printed "the tuning did not
finish" and the PCIe share, draft floor and worker counts measured before were lost. Now, in the worker step and the
expert-tier step, a measurement that raises is said (
measuring 4 workers failed: the engine stopped unexpectedly (exit code -15) - this candidate is dropped, the earlier results are kept), noted inreport["failed_runs"], andthat candidate is dropped; the step's choice is made from the candidates that finished, and when the default's own
run failed the default stays.
close()also closes the pipe to an engine that has gone after the failedQUITwrite, so Python no longer printsException ignored while finalizing file ... BrokenPipeErrorlater (the traceback in the issue).What it leaves alone. Every run where no engine stops: the same measurements, choices and output. An engine that
stops during the first sweep (steps 1-3, one engine start) still ends the run, as before: nothing is measured yet.
setup.py'scalibrate_configis unchanged (it reads onlysettingsandtok_s). This PR and #2544 (alsotools/calibrate.py, #2465) touch different lines ofmeasure().How it was checked.
tools/test_calibrate.py:test_an_engine_that_stops_while_measured_only_drops_that_candidate_2313: a stand-in engine raisesEngineDiedin the 4-worker run and in the 80-swap tier run; the PCIe share and the 3-worker win survive, both failures are
in
failed_runs. Onmainthe run ends withEngineDied.test_close_an_engine_that_has_gone_2313:close()on a real child process that has exited leaves stdinclosed and nothing for
sys.unraisablehook. Onmainthe pipe stays open.python3 tools/test_calibrate.py: 19 tests OK.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.