mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4727] [Other] Preserve update startup errors and show the retained log path #5153
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#5153
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/4727
Author: @bratnieks
Created: 10/30/2026
Status: 🔄 Open
Base:
main← Head:fix/update-test-failure-log📝 Commits (1)
95d6065[Other] Keep update startup errors and point to the retained log📊 Changes
2 files changed (+32 additions, -4 deletions)
View changed files
📝
strata_control/updater.py(+8 -4)📝
tests/terminal/test_updater.py(+24 -0)📄 Description
A failed
strata update --forcetold me to retry and report the log, but did not say where that log was. The saved failure reason also lost the actual engine error:_log_tailjoined three startup lines and kept their first 300 characters.This change points non-timeout test-start failures to the retained engine log and keeps the last 1,000 characters of the final three lines in the structured reason. The existing plain-language error and rollback behavior are preserved. Timeout failures already include the log path.
Reproduced on Linux with Control 0.1.54, engine update 0.1.52 → 0.1.54, HIP RX 9070 XT and a SC117 IQ3_S pack. The final engine error was:
The saved model configuration itself was missing
--spec; the updater did not remove it. Adding--spec 2locally allowed the released engine to load, answer the one-token probe and complete the update with exit code 0. That configuration repair is not part of this PR; this PR addresses the missing diagnostic information that made the failure harder to investigate.Related: #3654 added retained failure records; this change helps users locate the engine log and preserves its final error in the reason. Open and closed issues/PRs were searched before submitting.
Validation (commit
95d60652, Linux, bundled Python 3.12.15):python -m unittest tests.terminal.test_update_rules_022 -q(12 tests).tests.terminal.test_updater.Cli.test_check_update_and_rollback_from_the_terminal(1 test).regexwas absent; validation then used the Strata bundled Python.Only Python diagnostics and regression checks change. No engine kernels, model defaults or saved configurations change. No CUDA/HIP/SYCL/Metal compilation or cross-platform execution was performed for this Python-only patch. The real HIP update above validates the local configuration repair, not a rebuilt engine or the patched diagnostics.
A second full run is in progress; this PR is draft until its result is recorded. The new regression test was also run against the original
_log_tailand failed as expected, confirming that it catches the truncation bug.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.