Skip to content

fix(config): repair Windows init and backup - #302

Merged
3aKHP merged 4 commits into
mainfrom
hotfix/windows-config-fsync
Oct 14, 2026
Merged

3aKHP merged 4 commits into
mainfrom
hotfix/windows-config-fsync

Conversation

@3aKHP

@3aKHP 3aKHP commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Windows 首次初始化 LLM 配置数据库时,数据库同步步骤使用只读文件句柄,导致发行包 smoke 失败;备份使用相同打开模式。本次将这两处改为读写模式,保留原有文件同步、原子发布和 SQLite 备份流程。

CI 增加 Windows Python 3.11 上的配置生命周期检查,直接运行既有跨进程初始化与备份/恢复测试。

验证:

  • 本地完整 Python 回归 3068 项、配置服务 30 项测试通过,Ruff、前端 type-check、13 份 TOML 与 ID 检查通过。
  • 最终候选 26eedc316450cb5fb08e4191cbf01ff96d4acf3b 的 Windows 生命周期、Python 3.11/3.12 和前端 CI 全部通过:run 38545109467。Windows 实际通过并发初始化与备份/恢复两项既有测试;CI 使用 runner 的临时目录。
  • 独立 Tier 1 审阅通过,无 Blocking/Should-fix/Nits;独立配置服务回归 30 项通过。KHPilot 按维护者既有授权跳过。

发行背景:v1.16.2 流水线的 Windows 初始化 smoke 失败,GitHub Release 创建被跳过;Docker 已构建并公开。维护者已明确授权沿用 1.16.2,合并本修复后重建 v1.16.2 Tag 和镜像,并完成发行及 dev 回灌。本 PR 将修复说明汇入 1.16.2 CHANGELOG。

CHANGELOG 草稿:修复 Windows 首次初始化和备份 LLM 配置数据库时的文件同步错误。

3aKHP added 2 commits October 14, 2026 17:31
Fix Windows configuration database initialization and backup by reopening completed SQLite files in read/write mode before syncing.

Run existing initialization and backup/restore regressions on Windows CI before tagging.
Override the Linux pytest base directory for the Windows configuration lifecycle checks.
3aKHP added 2 commits October 14, 2026 17:47
Add the verified Windows initialization and backup fix to the v1.16.2 release notes.
Keep the bundled changelog reference aligned with the v1.16.2 Windows configuration fix.
@3aKHP
3aKHP merged commit 8e7d85e into main Oct 14, 2026
4 checks passed
@3aKHP
3aKHP deleted the hotfix/windows-config-fsync branch October 14, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant