feat: add post-upgrade check for Wayland in treeland environment#305
Conversation
1. Add `isWayland` and `postUpdateCheckCompleted` properties to UpdateModel with QML bindings 2. Implement `doCheckSystemOnWayland` in UpdateWorker to perform staged system check (CSS_BeforeLogin → CSS_AfterLogin) after upgrade completion 3. Update desktop autostart entry to skip dde-update process under Wayland, preventing restart issues 4. Modify QML UI to show busy state during post-update check and bypass backup dialog for Wayland 5. This solves the issue where dde-update fails to start after system restart in treeland environment, ensuring system integrity via staged verification Log: Added post-upgrade system check feature for Wayland to ensure proper system functionality after updates Influence: 1. Test upgrade on X11 environment to verify no regression (postUpdateCheckCompleted remains true) 2. Test upgrade on treeland/Wayland environment to verify staged check runs correctly 3. Verify busy indicator shows during check and hides after completion 4. Test upgrade failure scenario to ensure check completes even on error 5. Verify dde-update autostart is disabled under Wayland 6. Test multiple consecutive upgrades to ensure check state resets properly feat: 为 Wayland 环境(treeland)添加更新后系统检查功能 1. 为 UpdateModel 添加 isWayland 和 postUpdateCheckCompleted 属性及 QML 绑定 2. 在 UpdateWorker 中实现 doCheckSystemOnWayland 方法,在更新完成后分阶 段执行系统检查(CSS_BeforeLogin → CSS_AfterLogin) 3. 更新桌面自动启动条目,在 Wayland 环境下跳过 dde-update 进程,避免重启 问题 4. 修改 QML UI 在更新后检查期间显示繁忙状态,并在 Wayland 下跳过备份对 话框 5. 解决 treeland 环境下系统重启后 dde-update 无法启动的问题,通过分阶段 验证确保系统完整性 Log: 新增 Wayland 环境下的更新后系统检查功能,确保系统正常运行 Influence: 1. 测试 X11 环境下的升级功能,确认无回归(postUpdateCheckCompleted 保持 为 true) 2. 测试 treeland/Wayland 环境下的升级功能,确认分阶段检查正确执行 3. 验证检查期间显示繁忙指示器,完成后隐藏 4. 测试升级失败场景,确保即使出错检查也能完成 5. 验证 Wayland 下 dde-update 自动启动被禁用 6. 测试多次连续升级,确保检查状态正确重置 PMS: BUG-347525 BUG-347529 Change-Id: I832f7c7c55dd13158d13f0c3d25478030a39999c
deepin pr auto review这份代码变更主要为了解决在 Wayland (Treeland) 环境下,系统更新后无法正常启动 整体逻辑清晰,但存在一些逻辑漏洞、内存泄漏风险、线程安全隐患及代码规范问题。以下是详细的审查意见: 1. 逻辑漏洞:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy, xionglinlin The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
isWaylandandpostUpdateCheckCompletedproperties to UpdateModel with QML bindingsdoCheckSystemOnWaylandin UpdateWorker to perform staged system check (CSS_BeforeLogin → CSS_AfterLogin) after upgrade completionLog: Added post-upgrade system check feature for Wayland to ensure proper system functionality after updates
Influence:
feat: 为 Wayland 环境(treeland)添加更新后系统检查功能
Log: 新增 Wayland 环境下的更新后系统检查功能,确保系统正常运行
Influence:
PMS: BUG-347525 BUG-347529
Change-Id: I832f7c7c55dd13158d13f0c3d25478030a39999c