Kaynağa Gözat

Release v0.8.1.12: always-enabled Qt StartTest forced restart & preemption

XJKJ STL 1 ay önce
ebeveyn
işleme
fb445fe2ba

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # XJKJ-STL 高温内存测试平台
 
-当前开发版:`0.8.1.11`。唯一 Git 分支:`dev`。
+当前开发版:`0.8.1.12`。唯一 Git 分支:`dev`。
 
 一台 Linux 后端管理四个工位;Qt 保留前端开发人员原有界面,界面仅展示状态、BIOS UART 原文和提交动作。实际 BMC、固件阶段、诊断采集、失败判断、命令队列均由后端完成。
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-0.8.1.11
+0.8.1.12

+ 1 - 1
docs/GRPC_API_ZH.md

@@ -1,4 +1,4 @@
-# XJKJ-STL 0.8.1.11:原生 gRPC 专用接口手册
+# XJKJ-STL 0.8.1.12:原生 gRPC 专用接口手册
 
 **只开发原生 gRPC 客户端,请只看这份;Qt 前端精简纯净版 WebSocket 对接请看 [QT_CLIENT_API_ZH.md](QT_CLIENT_API_ZH.md)。** 直接使用 `stl.v1.BenchService` 和 protobuf 消息;没有 WebSocket 风格的 JSON 请求 id,但控制动作仍需要持久 command_id。
 

+ 4 - 4
docs/QT_CLIENT_API_ZH.md

@@ -1,4 +1,4 @@
-# Qt 纯净控制接口 v1(0.8.1.11)—— Qt 前端开发对接手册
+# Qt 纯净控制接口 v1(0.8.1.12)—— Qt 前端开发对接手册
 
 本文档面向 **Qt 前端开发人员**,定义后端专为极简 Qt UI 提供的**纯净版 WebSocket 接口**。
 
@@ -70,7 +70,7 @@ Qt 自己维护并保存本地配置和 `qt-plans.json`(测试计划),不
 ```
 
 ```json
-{"v":1,"id":"info-1","ok":true,"result":{"version":"0.8.1.11","mode":"hardware"}}
+{"v":1,"id":"info-1","ok":true,"result":{"version":"0.8.1.12","mode":"hardware"}}
 ```
 
 `mode` 为 `hardware` 或 `simulated`。模拟结果不能作为实机验收证据。
@@ -81,7 +81,7 @@ Qt 自己维护并保存本地配置和 `qt-plans.json`(测试计划),不
 
 ```json
 {
-  "version":"0.8.1.11",
+  "version":"0.8.1.12",
   "mode":"hardware",
   "server_id":"backend-instance-id",
   "stations":[
@@ -365,7 +365,7 @@ Qt 自己维护并保存本地配置和 `qt-plans.json`(测试计划),不
 成功连接后自动推送状态,此后每秒一份:
 
 ```json
-{"v":1,"event":"state","result":{"version":"0.8.1.11","mode":"hardware","server_id":"...","stations":[]}}
+{"v":1,"event":"state","result":{"version":"0.8.1.12","mode":"hardware","server_id":"...","stations":[]}}
 ```
 
 有新增 BIOS UART 原始字节时自动推送(后端按每个工位的会话和字节偏移维护游标):

+ 1 - 1
docs/WEBSOCKET_API_ZH.md

@@ -1,4 +1,4 @@
-# XJKJ-STL 0.8.1.11:完整 WebSocket 接口手册
+# XJKJ-STL 0.8.1.12:完整 WebSocket 接口手册
 
 **Qt 前端精简纯净版对接请看 [QT_CLIENT_API_ZH.md](QT_CLIENT_API_ZH.md)(地址:`ws://192.168.2.79:8080/ws?view=qt-clean`)。** 本文是 `/ws`(或 `/ws?view=full`)的全部业务和诊断接口。后端同时支持三个接口:完整 WebSocket(`/ws`)、完整原生 gRPC(`:50051`)、Qt 专用精简纯净 WebSocket(`/ws?view=qt-clean`)。
 

+ 1 - 1
pyproject.toml

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
 
 [project]
 name = "xjkj-stl-backend"
-version = "0.8.1.11"
+version = "0.8.1.12"
 description = "Four-station memory thermal test backend with WebSocket and gRPC"
 readme = "README.md"
 requires-python = ">=3.11"

+ 1 - 1
qt-client/QT_CLEAN_CLIENT_ZH.md

@@ -1,4 +1,4 @@
-# Qt 纯净版临时客户端 0.8.1.11
+# Qt 纯净版临时客户端 0.8.1.12
 
 本目录基于上传的 XJKJ-STL Qt 工程制作;原始工程另存,界面布局沿用原来的 `.ui`。它只连接独立接口 `/ws?view=qt-clean`。
 

+ 9 - 4
qt-client/src/backendlink.cpp

@@ -169,9 +169,11 @@ bool BackendLink::startTest(int station)
         qWarning() << "[backend] cannot start: disconnected" << station;
         return false;
     }
-    if (isBusy(station)) {
-        qInfo() << "[backend] duplicate start ignored" << station;
-        return false;
+    for (auto it = m_requests.begin(); it != m_requests.end(); ) {
+        if (it.value().station == station)
+            it = m_requests.erase(it);
+        else
+            ++it;
     }
     Run &run = m_runs[station];
     run.active = true;
@@ -179,11 +181,14 @@ bool BackendLink::startTest(int station)
     run.bootId.clear();
     run.startedUnixMs = 0;
     run.sawMatchingBoot = false;
+    run.commandId.clear();
+    run.commandMethod.clear();
+    run.queried = 0;
     run.inputs.clear();
     run.amtStartedCpus.clear();
     run.mtStarted = false;
     run.plan = LocalPlans().plan(station);
-    qInfo() << "[backend] local plan started, waiting for BIOS" << station;
+    qInfo() << "[backend] local plan started (forced restart), waiting for BIOS" << station;
     return sendControl(station, QStringLiteral("StartTest"), {});
 }
 

+ 1 - 1
qt-client/src/main.cpp

@@ -51,7 +51,7 @@ int main(int argc, char *argv[])
 
     QApplication app(argc, argv);
     app.setApplicationName(QStringLiteral("HOVSE SLT Pro"));
-    app.setApplicationVersion(QStringLiteral("0.8.1.11"));
+    app.setApplicationVersion(QStringLiteral("0.8.1.12"));
     app.setOrganizationName(QStringLiteral("XJKJ"));
 
     applyAppFont(app);

+ 4 - 1
qt-client/src/mainwindow.cpp

@@ -160,7 +160,10 @@ void MainWindow::backToMonitor()
 void MainWindow::startTest(int index)
 {
     if (index < 0 || index >= m_store->count()) return;
-    m_backend->startTest(index);
+    if (m_backend->startTest(index)) {
+        for (int ch = 0; ch < 24; ++ch)
+            m_store->setChannelState(index, ch, ChannelInfo::Idle, -1.0);
+    }
     m_store->setBackendLink(index, m_backend->isConnected(), m_backend->isBusy(index));
 }
 

+ 2 - 2
qt-client/src/overviewview.cpp

@@ -122,8 +122,8 @@ void OverviewView::renderInfo(int index)
     if (m_runtime[index])
         m_runtime[index]->setText(ui::formatElapsed(d.startTime));
     if (m_start[index]) {
-        m_start[index]->setEnabled(d.backendConnected && d.canStart && !d.backendBusy);
-        m_start[index]->setText(d.backendBusy ? QStringLiteral("执行中") : QStringLiteral("开始测试"));
+        m_start[index]->setEnabled(d.backendConnected);
+        m_start[index]->setText(QStringLiteral("开始测试"));
     }
     if (QLabel *name = m_ui->contentArea->findChild<QLabel *>(QStringLiteral("cardName_%1").arg(index)))
         name->setText(d.deviceId + (d.phase.isEmpty() ? QString() : QStringLiteral(" · ") + d.phase.toUpper()));

+ 1 - 1
qt-client/tests/qt_clean_probe.cpp

@@ -415,7 +415,7 @@ int main(int argc, char **argv)
             if (!button || !button->isEnabled()) return;
             clicked = true;
             button->click();
-            if (fixture) button->click(); // Duplicate immediate click must not issue a second StartTest.
+            checks.insert("start_button_always_enabled_while_busy", button->isEnabled());
         }
         if (clicked && startedSuccessfully && !backend->isBusy(station)
             && latest.value("phase").toString().compare(parser.value("expect-phase"), Qt::CaseInsensitive) == 0) {

+ 1 - 1
src/stl_backend/__init__.py

@@ -1,3 +1,3 @@
 """XJKJ-STL memory thermal testing backend."""
-__version__ = "0.8.1.11"
+__version__ = "0.8.1.12"
 

+ 14 - 0
src/stl_backend/application/boot_plan.py

@@ -27,6 +27,20 @@ class BootPlans:
     def active(self,station_id):
         return self.records.get(station_id,{}).get("state","idle") not in _TERMINAL
 
+    async def stop_station(self,sid,reason="已由新的开始测试接管;停止此前自动计划"):
+        c=self.contexts.get(sid)
+        if not c:
+            return
+        r=c["record"];rt=c["rt"]
+        if r.get("state") not in _TERMINAL:
+            r.update(state="stopped",waiting_reason=reason,updated_unix_ms=now_ms())
+        task=self.tasks.get(sid)
+        if task and not task.done():
+            task.cancel()
+            await asyncio.gather(task,return_exceptions=True)
+        if r.get("run_id") and rt.run:
+            rt.stop_reason="operator_stopped";rt.stop.set();rt.wake.set()
+
     def manual_allowed(self,station_id):
         record=self.records.get(station_id,{})
         if record.get("state","idle") in (_TERMINAL|{"paused","waiting_user","waiting_boot"}):

+ 19 - 2
src/stl_backend/application/command_queue.py

@@ -22,9 +22,17 @@ class CommandQueue:
         self.storage = QueueStorage(store)
         self.router = router
         self.wakes = {station_id: asyncio.Event() for station_id in station_ids}
+        self.active_tasks = {}
         self.workers = []
         self.closing = False
 
+    async def preempt_station(self, station_id, detail="已被新的开始测试指令中断"):
+        await self.storage.interrupt(states=("queued", "dispatching"), detail=detail, station_id=station_id)
+        task = self.active_tasks.get(station_id)
+        if task and not task.done():
+            task.cancel()
+            await asyncio.gather(task, return_exceptions=True)
+
     async def start(self):
         await self.storage.interrupt()
         self.workers = [asyncio.create_task(self._worker(station_id), name="commands-" + station_id)
@@ -55,7 +63,13 @@ class CommandQueue:
             try:
                 if not spec.returns_command:
                     await self.storage.update(command_id, state="running")
-                result = await self.router.dispatch(item)
+                dispatch_task = asyncio.create_task(self.router.dispatch(item))
+                self.active_tasks[station_id] = dispatch_task
+                try:
+                    result = await dispatch_task
+                finally:
+                    if self.active_tasks.get(station_id) is dispatch_task:
+                        self.active_tasks.pop(station_id, None)
                 if not spec.returns_command:
                     await self.storage.update(command_id, state="succeeded", result=result or {})
                 else:
@@ -66,7 +80,10 @@ class CommandQueue:
                     while (await self.storage.get(command_id))["state"] not in TERMINAL:
                         await asyncio.sleep(0.05)
             except asyncio.CancelledError:
-                raise
+                if self.closing:
+                    raise
+                await self.storage.update(command_id, state="interrupted", error_code="ABORTED",
+                                          detail="已被新的开始测试指令中断")
             except Exception as exc:
                 code = exc.code if isinstance(exc, BenchError) else "INTERNAL"
                 await self.storage.update(command_id, state="failed", error_code=code,

+ 47 - 23
src/stl_backend/application/qt_clean.py

@@ -222,8 +222,9 @@ class QtCleanService:
         return cid if cid else ws
 
     def release_owner(self, ws):
+        token = self._owner_token(ws)
         for sid, owner in list(self.owners.items()):
-            if owner is ws:
+            if owner is ws or (token is not None and owner == token):
                 self.owners.pop(sid, None)
 
     def _is_foreign_owner(self, sid, ws, *, current_state=None):
@@ -613,19 +614,21 @@ class QtCleanService:
             if fw.get("boot_pending"):
                 phase = "boot"
             if record.get("boot_id") and fw.get("boot_id") != record["boot_id"] and state != "starting":
-                state, verdict = "failed", "unknown"
-                record["state"] = "failed"
-                input_point["ready"], input_point["actions"] = False, []
+                if self.bench.controls.boot_plans.active(sid):
+                    record["boot_id"] = fw.get("boot_id", "")
+                    record["started_unix_ms"] = int(fw.get("boot_started_unix_ms") or now_ms())
+                    state = "running"
+                    record["state"] = "running"
+                else:
+                    state, verdict = "failed", "unknown"
+                    record["state"] = "failed"
+                    input_point["ready"], input_point["actions"] = False, []
             foreign = self._is_foreign_owner(sid, ws, current_state=state)
             if foreign:
                 input_point = {**input_point, "ready": False, "actions": []}
             command = {"command_id": "", "state": "", "action": "", "error": None, "result": {}}
             if sid in self.last_commands:
                 command = clean_command(await self.bench.get_queue_item(self.last_commands[sid]))
-            pending = False
-            if sid in self.pending_starts:
-                pending_item = await self.bench.get_queue_item(self.pending_starts[sid])
-                pending = pending_item["state"] not in ("succeeded", "failed", "interrupted")
             temperatures = self._temperatures(rt, fw, record, started, live)
             channels = self._channels(rt, fw, rt.firmware if rt.run else rt.diagnostic.firmware,
                                       record, started, temperatures)
@@ -639,9 +642,7 @@ class QtCleanService:
                 "verdict": verdict, "verdict_scope": verdict_scope,
                 "input": input_point, "command": command, "channels": channels,
                 "stage_errors": stage_errors,
-                "can_start": bool(not foreign and rt.device.capabilities().get("bmc_power") and rt.device.capabilities().get("console")
-                                  and not pending and not rt.run and not rt.finishing
-                                  and not rt.diagnostic_operation and not self.bench.controls.boot_plans.active(sid))})
+                "can_start": bool(rt.device.capabilities().get("bmc_power") and rt.device.capabilities().get("console"))})
         return {"version": __version__, "mode": self.bench.settings["mode"], "server_id": self.bench.server_id,
                 "stations": stations}
 
@@ -715,13 +716,17 @@ class QtCleanService:
                     or args["action"] in ("continue_uip", "apply_uip"), "内存参数只属于 UIP 动作")
         sid, command_id = params["station_id"], params["command_id"]
         async with self.enqueue_locks[sid]:
-            require(not self._is_foreign_owner(sid, ws),
-                    "当前工位正由另一客户端执行测试,请等待完成或结束后操作", "FAILED_PRECONDITION")
-            pending_id = self.pending_starts.get(sid)
-            if method == "StartTest" and pending_id and pending_id != command_id:
-                pending = await self.bench.get_queue_item(pending_id)
-                require(pending["state"] in ("succeeded", "failed", "interrupted"),
-                        "开始测试操作仍在执行,请等待新的 BIOS 启动结果", "FAILED_PRECONDITION")
+            if method == "StartTest":
+                try:
+                    existing = await self.bench.command_queue.storage.get(command_id)
+                except BenchError:
+                    existing = None
+                if existing is None:
+                    await self._preempt_station_for_start(sid, self._runtime(sid))
+                    await self.bench.command_queue.preempt_station(sid)
+            else:
+                require(not self._is_foreign_owner(sid, ws),
+                        "当前工位正由另一客户端执行测试,请等待完成或结束后操作", "FAILED_PRECONDITION")
             item = await self.bench.enqueue_command({"command_id": command_id, "station_id": sid,
                 "method": "QtStartTest" if method == "StartTest" else "QtStageAction", "operator": "qt", "arguments": args})
             self.last_commands[sid] = command_id
@@ -733,6 +738,25 @@ class QtCleanService:
                     self.owners.pop(sid, None)
             return clean_command(item)
 
+    async def _preempt_station_for_start(self, sid, rt):
+        watcher = self.intent_watchers.pop(sid, None)
+        if watcher and not watcher.done():
+            watcher.cancel()
+            await asyncio.gather(watcher, return_exceptions=True)
+        if self.bench.controls.boot_plans.active(sid):
+            await self.bench.controls.boot_plans.stop_station(sid)
+        if rt.run is not None or (rt.task and not rt.task.done()):
+            rt.stop_reason = "operator_restarted"
+            rt.stop.set()
+            rt.wake.set()
+            if rt.task and not rt.task.done():
+                rt.task.cancel()
+                await asyncio.gather(rt.task, return_exceptions=True)
+            rt.run = None
+            rt.finishing = False
+        rt.pending_supply = None
+        rt.diagnostic_operation = False
+
     async def _note(self, rt, message, severity="info"):
         await self.bench.event(rt, "qt_operation", severity, message, {},
                                phase=self._firmware(rt)[0].get("observed_phase", ""))
@@ -740,11 +764,9 @@ class QtCleanService:
     async def start_test(self, request):
         rt = self._runtime(request["station_id"])
         sid = request["station_id"]
-        require(rt.run is None and not rt.finishing and not rt.diagnostic_operation and rt.pending_supply is None,
-                "工位已有测试或设备操作,当前不能开始", "FAILED_PRECONDITION")
-        require(not self.bench.controls.boot_plans.active(sid), "完整接口的自动计划仍在运行", "FAILED_PRECONDITION")
         require(rt.device.capabilities().get("bmc_power") and rt.device.capabilities().get("console"),
                 "开始测试需要可用的主机电源控制和 BIOS 控制台", "FAILED_PRECONDITION")
+        await self._preempt_station_for_start(sid, rt)
         tail = await self.bench.read_event_queue(0, sid, 1)
         record = {"state": "starting", "started_unix_ms": 0, "boot_id": "", "error_cursor": tail["latest_sequence"]}
         self.records[sid] = record
@@ -805,6 +827,8 @@ class QtCleanService:
         except (DeviceError, asyncio.TimeoutError) as exc:
             record["state"] = "failed"
             raise BenchError("UNAVAILABLE", "主机电源或控制台通信失败,请检查设备连接") from exc
+        except asyncio.CancelledError:
+            raise
         except BaseException:
             record["state"] = "failed"
             raise
@@ -999,14 +1023,14 @@ class QtCleanService:
             or (point["stage"] == "uefi" and input_id in self.uefi_tokens.get(node, set()))
         )
         at_prompt = bool(point["ready"] and valid_token and action in point["actions"])
-        if not input_id and rec_state in ("completed", "failed"):
+        if not input_id and (rec_state in ("idle", "completed", "failed") or sid not in self.pending_starts):
             at_prompt = False
         if not at_prompt and target_key in ("uip1", "amt", "mt"):
             stale_boot_token = bool(input_id and input_id != point.get("id", ""))
             observed_stage = point["stage"] if point["ready"] else fw.get("observed_phase", "boot")
             observed_order = STAGE_ORDER.get(observed_stage, 0)
             target_order = {"uip1": 1, "amt": 3, "mt": 5}[target_key]
-            pre_start = rec_state in ("idle", "completed", "failed")
+            pre_start = rec_state in ("idle", "completed", "failed") or sid not in self.pending_starts
             cur_order = 0 if pre_start else (0 if rec_state == "starting" else observed_order)
             if pre_start and intents[target_key]["consumed"]:
                 intents[target_key]["consumed"] = False

+ 8 - 2
src/stl_backend/infrastructure/queue_storage.py

@@ -132,10 +132,16 @@ class QueueStorage:
             return item
         return await self.store.call(op)
 
-    async def interrupt(self, states=("queued", "dispatching", "running"), detail="Backend restarted; queued/device actions were not replayed"):
+    async def interrupt(self, states=("queued", "dispatching", "running"),
+                        detail="Backend restarted; queued/device actions were not replayed", station_id=""):
         def op(db):
             marks = ",".join("?" for _ in states)
-            rows = db.execute(f"SELECT payload FROM command_queue WHERE state IN ({marks})", tuple(states)).fetchall()
+            sql = f"SELECT payload FROM command_queue WHERE state IN ({marks})"
+            args = list(states)
+            if station_id:
+                sql += " AND station_id=?"
+                args.append(station_id)
+            rows = db.execute(sql, tuple(args)).fetchall()
             for row in rows:
                 item = json.loads(row[0])
                 item.update(state="interrupted", detail=detail, error_code="ABORTED", updated_unix_ms=_now())

+ 10 - 7
tests/test_qt_clean_control.py

@@ -77,19 +77,22 @@ class QtCleanControlTests(unittest.IsolatedAsyncioTestCase):
         self.assertEqual(calls, ["on", "reset"])
         self.assertEqual(self.bench.control_settings.load("S1"), self.original_settings)
 
-    async def test_two_distinct_start_ids_cannot_queue_two_resets(self):
+    async def test_two_distinct_start_ids_preempt_and_force_restart_while_same_id_is_idempotent(self):
         first = {"station_id": "S1", "command_id": "pending-start"}
         await self.qt.enqueue("StartTest", first)
-        with self.assertRaises(BenchError) as error:
-            await self.qt.enqueue("StartTest", {"station_id": "S1", "command_id": "second-pending"})
-        self.assertEqual(error.exception.code, "FAILED_PRECONDITION")
         repeated = await self.qt.enqueue("StartTest", first)
         self.assertEqual(repeated["command_id"], first["command_id"])
-        self.assertFalse((await self.current())["can_start"])
+        self.assertTrue((await self.current())["can_start"])
+        second = {"station_id": "S1", "command_id": "second-pending"}
+        await self.qt.enqueue("StartTest", second)
         async with asyncio.timeout(8):
-            while (await self.bench.get_queue_item(first["command_id"]))["state"] not in ("succeeded", "failed"):
+            while (await self.bench.get_queue_item(second["command_id"]))["state"] not in ("succeeded", "failed", "interrupted"):
                 await asyncio.sleep(.01)
-        self.assertEqual(len((await self.bench.get_queue("S1"))["items"]), 1)
+        first_item = await self.bench.get_queue_item(first["command_id"])
+        second_item = await self.bench.get_queue_item(second["command_id"])
+        self.assertIn(first_item["state"], ("interrupted", "succeeded"))
+        self.assertEqual(second_item["state"], "succeeded")
+        self.assertEqual(len((await self.bench.get_queue("S1"))["items"]), 2)
 
     async def test_unknown_power_never_writes_or_claims_start(self):
         self.rt.device.bmc_read = AsyncMock(return_value="unknown")

+ 6 - 1
tests/test_qt_clean_websocket.py

@@ -169,12 +169,17 @@ class QtCleanWebSocketTests(unittest.IsolatedAsyncioTestCase):
             self.assertTrue(owner_state["input"]["ready"])
             self.assertFalse(bystander_state["input"]["ready"])
             self.assertEqual(bystander_state["input"]["actions"], [])
-            self.assertFalse(bystander_state["can_start"])
+            self.assertTrue(bystander_state["can_start"])
             hijack = await self.call(bystander, "StageAction", {
                 "station_id": "S1", "command_id": "hijack-1",
                 "input_id": owner_state["input"]["id"], "action": "continue_uip"})
             self.assertFalse(hijack["ok"])
             self.assertEqual(hijack["error"]["code"], "FAILED_PRECONDITION")
+            takeover = await self.result(bystander, "StartTest", {"command_id": "bystander-force-restart", "station_id": "S1"})
+            self.assertIn(takeover["state"], ("queued", "dispatching", "running", "succeeded"))
+            await self.wait_command(bystander, "bystander-force-restart")
+            new_bystander_state = (await self.result(bystander, "GetState"))["stations"][0]
+            self.assertTrue(new_bystander_state["input"]["ready"])
 
 
 if __name__ == "__main__":

+ 1 - 1
validation/build_windows_release.ps1

@@ -1,7 +1,7 @@
 param(
     [Parameter(Mandatory=$true)][string]$QtRoot,
     [Parameter(Mandatory=$true)][string]$MingwRoot,
-    [string]$ReleaseRoot = 'C:\Users\Administrator\delivery\XJKJ-STL-Qt-Clean-0.8.1.11'
+    [string]$ReleaseRoot = 'C:\Users\Administrator\delivery\XJKJ-STL-Qt-Clean-0.8.1.12'
 )
 $ErrorActionPreference = 'Stop'
 $ProgressPreference = 'SilentlyContinue'

+ 1 - 1
validation/launch_windows_demo.ps1

@@ -1,4 +1,4 @@
-param([string]$ReleaseRoot = 'C:\Users\Administrator\delivery\XJKJ-STL-Qt-Clean-0.8.1.11')
+param([string]$ReleaseRoot = 'C:\Users\Administrator\delivery\XJKJ-STL-Qt-Clean-0.8.1.12')
 $ErrorActionPreference = 'Stop'
 $ProgressPreference = 'SilentlyContinue'
 $appRoot = Join-Path $ReleaseRoot 'app'

+ 1 - 1
validation/package_windows_dev.py

@@ -7,7 +7,7 @@ from pathlib import Path
 import struct
 import zipfile
 
-VERSION = "0.8.1.11"
+VERSION = "0.8.1.12"
 UI_HASHES = {
     "src/mainwindow.ui": "e2ed5a4aaadf0d089eab4e4b6791357423482c2adb9ef7c8c7a01f0b1caddabd",
     "src/style/app.qss": "b4774ac879b64a07fbb361c5e763e0355ed4cb0051e37c412bec38dcbcba8558",

+ 1 - 1
validation/run_windows_live.ps1

@@ -1,4 +1,4 @@
-param([string]$ReleaseRoot = 'C:\Users\Administrator\delivery\XJKJ-STL-Qt-Clean-0.8.1.11')
+param([string]$ReleaseRoot = 'C:\Users\Administrator\delivery\XJKJ-STL-Qt-Clean-0.8.1.12')
 $ErrorActionPreference = 'Stop'
 $ProgressPreference = 'SilentlyContinue'
 $appRoot = Join-Path $ReleaseRoot 'app'

+ 1 - 1
validation/run_windows_validation.py

@@ -7,7 +7,7 @@ from pathlib import Path
 import subprocess
 
 parser = argparse.ArgumentParser()
-parser.add_argument('--release', type=Path, default=Path(r'C:\Users\Administrator\delivery\XJKJ-STL-Qt-Clean-0.8.1.11'))
+parser.add_argument('--release', type=Path, default=Path(r'C:\Users\Administrator\delivery\XJKJ-STL-Qt-Clean-0.8.1.12'))
 args = parser.parse_args()
 app = args.release / 'app'
 evidence = args.release / 'evidence'

+ 1 - 1
validation/schedule_windows_dev.ps1

@@ -1,6 +1,6 @@
 param(
     [ValidateSet('live','demo')][string]$Mode='live',
-    [string]$ReleaseRoot='C:\Users\Administrator\delivery\XJKJ-STL-Qt-Clean-0.8.1.11'
+    [string]$ReleaseRoot='C:\Users\Administrator\delivery\XJKJ-STL-Qt-Clean-0.8.1.12'
 )
 $ErrorActionPreference='Stop'
 $taskName = if ($Mode -eq 'live') {'XJKJ-Qt-Dev-Live'} else {'XJKJ-Qt-Dev-Demo'}