[PR #4727] [Other] Preserve update startup errors and show the retained log path #5153

Open
opened 2026-11-07 16:33:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 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 --force told 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_tail joined 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:

is a native (IQ) pack: it needs --native SHARD1, --spec T (T >= 2) and --prefill CHUNK

The saved model configuration itself was missing --spec; the updater did not remove it. Adding --spec 2 locally 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):

  • Passed: focused long-log regression test and existing light-test argument check (2 tests).
  • Passed: python -m unittest tests.terminal.test_update_rules_022 -q (12 tests).
  • Passed: isolated repeat of tests.terminal.test_updater.Cli.test_check_update_and_rollback_from_the_terminal (1 test).
  • Initial full run: 53/54 passed; the CLI update/rollback test failed once during test start, while a real model update was also running. The isolated repeat passed; the cause of that first failure has not been established.
  • Initial system-Python attempt could not run integration tests because regex was 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_tail and 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4727 **Author:** [@bratnieks](https://github.com/bratnieks) **Created:** 10/30/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/update-test-failure-log` --- ### 📝 Commits (1) - [`95d6065`](https://github.com/Niko1221/Strata/commit/95d60652dbd77c577bebd56653110c10c55f3bd2) [Other] Keep update startup errors and point to the retained log ### 📊 Changes **2 files changed** (+32 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `strata_control/updater.py` (+8 -4) 📝 `tests/terminal/test_updater.py` (+24 -0) </details> ### 📄 Description A failed `strata update --force` told 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_tail` joined 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: ```text is a native (IQ) pack: it needs --native SHARD1, --spec T (T >= 2) and --prefill CHUNK ``` The saved model configuration itself was missing `--spec`; the updater did not remove it. Adding `--spec 2` locally 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): - Passed: focused long-log regression test and existing light-test argument check (2 tests). - Passed: `python -m unittest tests.terminal.test_update_rules_022 -q` (12 tests). - Passed: isolated repeat of `tests.terminal.test_updater.Cli.test_check_update_and_rollback_from_the_terminal` (1 test). - Initial full run: 53/54 passed; the CLI update/rollback test failed once during test start, while a real model update was also running. The isolated repeat passed; the cause of that first failure has not been established. - Initial system-Python attempt could not run integration tests because `regex` was 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_tail` and failed as expected, confirming that it catches the truncation bug. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5153
No description provided.