Skip to content

fix: harden Windows launcher shutdown for missing WMI process metadata#327

Open
takuto-NA wants to merge 2 commits intoansys:mainfrom
takuto-NA:fix/windows-exit-wmi-shutdown
Open

fix: harden Windows launcher shutdown for missing WMI process metadata#327
takuto-NA wants to merge 2 commits intoansys:mainfrom
takuto-NA:fix/windows-exit-wmi-shutdown

Conversation

@takuto-NA
Copy link
Copy Markdown

Summary

  • avoid secondary shutdown failures when WMI process metadata is missing or property getters raise during Launcher.exit()
  • keep child-process shutdown logs accurate by only using the fallback process id for the launched Workbench process
  • add launcher regression tests that cover missing WMI process metadata and child-process logging behavior

Test plan

  • Run python -m pytest tests/ -v --tb=short
  • Run python -m pytest tests/test_workbench_launcher.py tests/test_launch_workbench.py -v --tb=short

Avoid secondary shutdown failures when WMI process objects disappear or their property getters raise during launcher exit.

Add launcher tests that reproduce missing WMI process metadata and runtime errors from ProcessId and pid lookups.

Made-with: Cursor:
Keep child process shutdown messages accurate when WMI metadata is unavailable by reserving fallback process ids for the launched process only.

Made-with: Cursor:
@takuto-NA takuto-NA requested a review from a team as a code owner April 7, 2026 06:33
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