test: record software smoke and cover scoped retries in CI
Core regression / Python core and release configuration (push) Failing after 27s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python core and release configuration (pull_request) Failing after 26s
Core regression / JavaScript syntax (pull_request) Successful in 3s

This commit is contained in:
阿白叔 committed 2026-11-06 15:00:56 +08:00
1 parent 096072926b
commit 5d461ffc6c
3 files changed
+243

No files matched your search

@@ -0,0 +1,35 @@
# 非阻塞恢复 PR:软件验证(2026-11-06)
## 受测版本
PR 分支 `codex/nonblocking-recovery-pr` 从 `origin/main`(`08ddf4c`)建立,只移植 CAD 弹窗处理、读取取消与安全暂停、逐 UID 故障隔离、问题项闭环四个功能提交。
移植后,`src`、`tests`、`integration`、`packaging` 和 `tools` 与受测提交 `475783a` 的 Git 树相同。校验工作台草案不属于此 PR。当前工作区未提交的图标和 DSH 生命周期修改未打包进此次受测代码。
## 针对性软件测试
```text
python -m pytest tests/v1_1/test_problem_workflow.py tests/v1_1/test_problem_items_ui.py tests/v1_1/test_resource_reconciliation_ui.py tests/v1_1/test_retained_worker_reconciliation.py tests/v1_1/test_safe_timeout_problems.py tests/ui/test_trial_task_center_workflow.py tests/trial_task_center/test_application.py -q --tb=short
55 passed in 51.52s
```
覆盖本轮 29 个新增用例、Qt 操作与确认流程、任务切换与关闭、程序启动、异常记录和数据库重用。逐项功能与审查收尾详见 `2026-11-06-problem-workflow-acceptance.md`。此前已通过的全量及 CAD/PCB 校验没有重复执行。
## 实际 Windows 进程冒烟
在 PR 工作区使用独立临时数据目录执行,没有连接用户的现有任务库:
- 真实应用入口 `application.py --smoke-test --data-root <临时目录>` 连续运行两次,退出码均为 0。
- 日志含两次 `application_start` 和两次 `application_clean_shutdown exit_code=0`,没有 Traceback 或 CRITICAL。
- 同一任务数据库两次启动后 `PRAGMA integrity_check` 返回 `ok`。
- 调用应用的 `_smoke_batch_runtime`,实际派发 Windows 监督子进程,校验进程创建身份,创建并释放私有桌面。
- 监督会话最终 `state=released`;桌面句柄关闭、桌面消失均确认,清理错误为空。
- CAD 未启动;没有进行 PCB 操作。
本地原始证据:`build/software-smoke-9bd80c85ee15411598639dd615911df2/report.json`,同目录保留两次启动日志、任务库与监督会话证据。该临时目录不提交。
## CI 与验证边界
将新的定向重试和旧问题预留恢复用例 `test_problem_workflow.py` 加入现有便携 CI。远端结果以 PR 上的 commit status 为准。
本轮验证的是源码应用与真实 Windows 监督进程,未构建新发布 EXE,未模拟实际系统重启,也未执行真实 CAD 替换或线上 AI/工单请求。工程结果待核验时仍禁止直接重放;启动身份不足的残留记录继续受保护。