mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #397] setup.py: a refused engine archive is kept and reused, so "run this again in a few minutes" never updates the engine #184
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#184
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?
Originally created by @alphastorm on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/397
At
9259cad(0.1.31), whenget_prebuiltrefuses a downloaded engine archive because it is older thanMIN_ENGINE, it deletes only the unpacked copy (setup.py#L1077-L1086);engine/<asset>and its.donemark stay. The archive is deleted only after a successful install (#L1101-L1102). Every later run finds the mark, prints "Strata engine already downloaded" without fetching anything (#L604-L606), and refuses the same archive again, whatever the URL serves now.On the update path this defeats the advice setup prints. While a release's assets are still uploading, setup falls back to
releases/latest, refuses that older engine and says "run this again in a few minutes to update it". Every later run reuses the refused archive, so the engine is not updated untilengine/strata-windows-x64.zipis deleted by hand.Reproduced without a GPU or GitHub:
get_prebuilt(PREBUILT_URL, {"arch": 89, "archs": [89]}, vision=False, updating=True), with an installed 0.1.30 engine andPREBUILT_URL/PREBUILT_TAG_URLpointed at a local HTTP server:latest/download/has an archive, a 0.1.30 build. After the 404 ondownload/v0.1.31/, setup downloads it and prints "engine 0.1.31 is not published yet (the release may still be uploading): run this again in a few minutes to update it".engine/strata-linux-x64.zipand its.donestay.download/v0.1.31/. The next two runs each send oneHEADto it (200), print "Strata engine already downloaded" and refuse the 0.1.30 archive again with the same message. NoGETis sent..donedeleted by hand, the next run downloads and installs 0.1.31.Suggestion: delete the archive and its
.donemark on both refusals too (#L1085-L1086, #L1093-L1094), as the success path does. #324 did this along with its #214 changes, which 0.1.31 covers otherwise; it is closed now.@Niko1221 commented on GitHub (Oct 1, 2026):
Thanks for the precise repro. This is fixed in 0.1.32: a refused engine archive is deleted together with its
.donemark, so the next run downloads again. PR #399 does the same, so it's covered already. Closing.