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#4973
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/4254
Author: @ByteJuggler
Created: 10/26/2026
Status: 🔄 Open
Base:
main← Head:pr/engine-update-resume📝 Commits (1)
729bafffix(setup): an interrupted engine update is tried again instead of skipped for good (#2159)📊 Changes
2 files changed (+26 additions, -0 deletions)
View changed files
📝
setup.py(+7 -0)📝
tools/test_setup_stale_stamp.py(+19 -0)📄 Description
Problem and result
Fixes #2159. Replaces #2161, which was closed in the 0.2.0-beta tracker reset; its branch was rebased on current
main, so GitHub cannot reopen it.get_prebuiltmovesBUILD.jsontoBUILD.json.prevbefore it downloads, and only puts it back when the process lives long enough to do so. After a crash, a reboot or a closed window during an engine update,engine/keeps the oldstrata.exebut has noBUILD.json. From then onupdate_installed_enginereturns early on the missingBUILD.json, without a message, soUPDATE.bat/START-HERE.batnever update that engine again.With this change, when
BUILD.jsonis missing butBUILD.json.prevand the exe are there, the stamp is put back, setup warns "an earlier engine update did not finish: trying it again", and the update runs again.Related discussion
#2159 (the bug report). Focused fix, no change to defaults.
Approach
The repair runs at the start of
update_installed_engine, before the existing early return, and only when all three conditions hold (noBUILD.json, aBUILD.json.prev, the exe). In every other case setup behaves exactly as before. Setup-only change (setup.pyand one test); no engine code.Validation
Passed:
python tools/test_setup_stale_stamp.pyon 830c6693 (rebased onmain5e8a4cca, 0.2.7), Windows 11, Python 3.12: OK. The new testtest_an_interrupted_update_is_tried_againfails onmain5e8a4ccawithout the change (FAILED, failures=1) and passes with it.tools/test_setup_*.pyon 830c6693 and onmain5e8a4cca: the same result for every file on both (no new failures).Failed:
tools/test_setup_download.py(2 failures),tools/test_setup_unsloth.py(4 failures) andtools/test_setup_download_length.py(no summary line) fail the same way onmain5e8a4ccawithout this change.Not run:
UPDATE.bat) was seen on an RX 6900 XT / Windows 11 install before the tracker reset; on 0.2.7 only the tests above were run.Limits
This only repairs the state the interrupted update leaves behind. It does not make the download itself resumable.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.