Skip to content

fix: prevent Qt teardown crashes in GUI CI - #5

Merged
forgottenlab merged 1 commit into
mainfrom
fix/gui-smoke-ci-exit-status
Nov 17, 2026
Merged

forgottenlab merged 1 commit into
mainfrom
fix/gui-smoke-ci-exit-status

Conversation

@forgottenlab

Copy link
Copy Markdown
Owner

Summary / 概述

Fixes an intermittent Windows GUI CI crash occurring during Qt teardown, after GUI regression tests had already passed.

修复 Windows GUI CI 在测试通过后、Qt 对象清理阶段偶发崩溃的问题。

Changes / 修改内容

  • Separate GUI dependency installation, offscreen smoke testing, and regression testing into independent CI steps.
  • Capture and verify native process exit codes explicitly.
  • Clean up remaining Qt widgets during pytest session teardown.
  • Update release hygiene tests and the Unreleased changelog.

中文说明:

  • 将 GUI 依赖安装、离屏冒烟测试和回归测试拆分为独立 CI 步骤。
  • 显式检查各 Python 进程的退出码。
  • 在 pytest 会话结束时清理残留 Qt 控件。
  • 更新发布规范测试和 CHANGELOG。

Verification / 验证结果

  • Full local suite: 94 passed, 1 skipped.
  • GUI regression suite: 35 passed.
  • PySide6 6.12.0: 15 consecutive local GUI regression runs exited successfully.
  • GitHub Actions push-event CI: 4/4 jobs passed.
  • GUI installation, offscreen smoke, and regression steps all passed.
  • No changes to the I2 classification security fix.

中文说明:

  • 本地完整测试:94 项通过,1 项跳过。
  • GUI 回归测试:35 项通过。
  • PySide6 6.12.0 环境下连续 15 次本地回归测试正常退出。
  • GitHub Push CI:4 项任务全部通过。
  • GUI 安装、离屏冒烟和回归测试均通过。
  • 未修改 I2 文件分类安全逻辑。

Scope / 变更范围

This PR addresses GUI CI reliability only. It does not introduce Environment Migration or installer-launch changes. The published v0.2.2 tag remains unchanged.

本 PR 仅处理 GUI CI 可靠性,不包含 Environment Migration 或安装器启动逻辑修改,也不修改已发布的 v0.2.2 标签。

Changes:
- Split the gui-smoke job into install, wheel-smoke, and regression steps that print and honor $LASTEXITCODE.
- Close leftover Qt widgets in pytest_sessionfinish so PySide6 6.12 cannot access-violate after a passing session.
@forgottenlab
forgottenlab merged commit 8bee055 into main Nov 17, 2026
8 checks passed
@forgottenlab
forgottenlab deleted the fix/gui-smoke-ci-exit-status branch November 17, 2026 11:12
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