[PR #2161] [CLOSED] setup: an interrupted engine update is tried again instead of skipped for good (#2159) #3893

Closed
opened 2026-11-07 15:31:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2161
Author: @ByteJuggler
Created: 10/12/2026
Status: ❌ Closed

Base: main ← Head: pr/engine-update-resume


📝 Commits (1)

  • bc80631 fix(setup): an interrupted engine update is tried again instead of skipped for good (#2159)

📊 Changes

2 files changed (+32 additions, -0 deletions)

View changed files

📝 setup.py (+11 -0)
📝 tools/test_setup_stale_stamp.py (+21 -0)

📄 Description

Fixes #2159.

get_prebuilt moves BUILD.json to BUILD.json.prev before downloading, and update_installed_engine only puts it back if the process survives to its new is None branch. After a crash, reboot or closed window mid-update, every later update returned early on the missing BUILD.json, so the install stayed on its old engine without saying so.

Now, when BUILD.json is missing but BUILD.json.prev and the exe are there, the stamp is restored (with a warning) and the update runs again.

  • New test test_an_interrupted_update_is_tried_again (fails before the change, passes after).
  • tools/ suite: 3 failures in test_setup_engine_hash.WhatARefusalDoesToTheCaller, which fail the same way on main without this change.

🔄 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/2161 **Author:** [@ByteJuggler](https://github.com/ByteJuggler) **Created:** 10/12/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/engine-update-resume` --- ### 📝 Commits (1) - [`bc80631`](https://github.com/Niko1221/Strata/commit/bc806315f98b9de59579e119e05442ff225f75c2) fix(setup): an interrupted engine update is tried again instead of skipped for good (#2159) ### 📊 Changes **2 files changed** (+32 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+11 -0) 📝 `tools/test_setup_stale_stamp.py` (+21 -0) </details> ### 📄 Description Fixes #2159. `get_prebuilt` moves `BUILD.json` to `BUILD.json.prev` before downloading, and `update_installed_engine` only puts it back if the process survives to its `new is None` branch. After a crash, reboot or closed window mid-update, every later update returned early on the missing `BUILD.json`, so the install stayed on its old engine without saying so. Now, when `BUILD.json` is missing but `BUILD.json.prev` and the exe are there, the stamp is restored (with a warning) and the update runs again. - New test `test_an_interrupted_update_is_tried_again` (fails before the change, passes after). - `tools/` suite: 3 failures in `test_setup_engine_hash.WhatARefusalDoesToTheCaller`, which fail the same way on `main` without this change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:31:28 +07:00
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#3893
No description provided.