Repository navigation
test(windows): exercise installer lifecycle - #2650
Conversation
4b316bb to
e63f113
Compare
e63f113 to
695f771
Compare
|
Adversarial review found a real lifecycle gap, confirmed by Windows run 31401966245: installation and installed-app verification passed, but uninstall began while the detached Runtime Host was still inside its 30-second idle grace, so the install directory remained. Updated the PR to:
Local validation: 13 focused release tests pass; full fast script suite reports 160 pass / 1 Windows-only skip. A fresh real Windows package run is pending. 中文说明对抗审查通过真实 Windows run 31401966245 发现:安装和已安装应用验证都成功,但 Runtime Host 仍处于 30 秒 idle grace 时就开始卸载,导致安装目录残留。 本次修复会在卸载前明确等待安装目录下所有进程退出;仍以安装目录由卸载器真实移除为成功标准;测试环境清理不会把失败伪装成成功,也不会覆盖原始错误。同时瘦身 mock,并补充进程顺序与错误保真测试。新的 Windows 实跑正在等待。 |
|
Windows lifecycle evidence is now green on run 31404195691.
中文结果修复版 Windows 实跑已通过:最终 NSIS 安装成功,已安装应用通过资源、版本、ConPTY 和渲染器验证;验证器等待安装目录相关进程在 31.6 秒后退出,避免与 Runtime Host idle grace 竞争;随后 NSIS 在 3.1 秒内完成卸载并移除安装目录。完整 package job 用时 9分38秒,PR 全部检查绿色。 |
Synchronize vendored third-party/nsh with upstream longbridge/nsh main through d01cd3cce6645391c65a379d6230c2d2e651d55f (371 commits past 0.6.1), migrate Maka consumers to upstream's Window Model v2 and native TitleBar, and fix invisible IME preedit in the Windows RichEditor composer. Key changes: - Upstream NSH sync (2f51d861..d01cd3cce): Window Model v2 (#2307), native TitleBar (#2937), RichEditor TextGeometry (#2650/#2651) and narrow sink fixes (#2497/#2728), Windows custom font resolution (#2760), macOS server-side drag regions (#2663), and clipboard write reporting (#2753). - Upstream best practices in Maka UI & shells: - Declare explicit <Window id="main"> in Bootstrap.tsx and ComputerPermissionSetupEntry.tsx with hidden titleBar and closeOnPress set upfront, and subscribe to Application.on('reopen') in nativeDesktop.ts. - Adopt upstream <TitleBar> from nsh/base in ComputerPermissionSetup.tsx and ui.tsx (SidebarTitleRow) instead of manual control-inset/drag logic. - Support EmbeddedHost in nsh-engine / nsh-js / desktop AppViews so embedded hosts (Linux GTK shell, macOS permission setup, Windows test hosts) bind <Window id="main"> to ROOT_ID while preserving secondary <Window> scenes. - Adapt Windows desktop-shell (direct2d.rs) and workbench tests to Window Model v2 and Headless viewport/title_bar initialization. - Windows Composer IME preedit fix (nsh-platform-windows): - Enable IMF_IMEALWAYSSENDNOTIFY via EM_SETLANGOPTIONS on windowless RichEdit editors so msftedit.dll emits EN_CHANGE/EN_SELCHANGE during undetermined IME composition instead of suppressing them until commit. - Target the active AppWindow HWND (shown_in / hwnd_showing) in tx_imm_get_context, tx_imm_release_context, tx_get_window, update_ime, and notify_composition rather than the hidden host HWND. - Add regression tests for IMF_IMEALWAYSSENDNOTIFY, tx_get_window shown_in tracking, and EmbeddedHost root/secondary windows. - Provenance and notices: update third-party/nsh/{upstream.json,SOURCE.md}, LICENSE, and regenerate products/maka/cli/{DEPENDENCIES.rust.tsv, THIRD_PARTY_NOTICES.txt,notices.json}. Generated-by: Maka (Gemini)
Summary
Validation
node --test scripts/windows-x64-release.test.mjs scripts/electron-builder-config.test.mjs scripts/ci-test-plan.test.mjs(19 pass)npm run test:scripts(128 pass)git diff --checkScope
This closes clean install/start/uninstall evidence. Version-to-version upgrade, failed-upgrade rollback, Authenticode, and automatic updates remain separate Phase 3 work in #2142.
中文说明
内容
验证
边界
本 PR 完成干净安装、启动和卸载证据。跨版本升级、升级失败回滚、Authenticode 和自动更新仍作为 #2142 Phase 3 的后续独立工作。
Part of #2142.