Skip to content

Diagnose Windows pytest process exit - #8

Merged
lukisch merged 3 commits into
mainfrom
codex/diagnose-win312-pytest-exit-20261012
Oct 12, 2026
Merged

lukisch merged 3 commits into
mainfrom
codex/diagnose-win312-pytest-exit-20261012

Conversation

@lukisch

@lukisch lukisch commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

This PR adds temporary process-exit diagnostics to the Windows Python test matrix after successful pytest summaries were followed by action-level exit code 1.

Evidence prompting the change:

  • PR docs: link llm-note as related MailProcessor tool #7 attempt 3, run 38193008533 / Windows Python 3.12 job 114638633592: 104 passed and 6 subtests passed, followed by process exit code 1.
  • Initial diagnostic PR run 38197027164: Windows Python 3.10 job 114641868242 again reported 104 passed and 6 subtests passed, then the action reported exit code 1. The Windows Python 3.12 diagnostic reported Python 3.12.10, pytest 9.1.1, PySide6/shiboken6 6.12.0, 104 passed and 6 subtests passed, and direct pytest process exit code 0.

For each Windows matrix version (3.10, 3.11, 3.12), the workflow now records Python and package versions, enables faulthandler, logs the direct pytest process exit code after pytest returns, and exits with that exact code. Other test behavior is unchanged.

This is diagnostic instrumentation only; it does not claim a crash fix or a PySide6 regression.

lukisch commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator Author

Bot-Triage (CI-Diagnose): Auf Head b9c1999 schlägt diesmal Windows Tests (Python 3.10) fehl (Job 114641868242), während 3.11 und 3.12 grün sind. Im Log: ruff OK, pytest: 104 passed, 6 subtests passed in 1.96s, danach ##[error]Process completed with exit code 1. – derselbe Befund wie bisher auf 3.12.

Schlussfolgerung: Das ist nicht 3.12-spezifisch, sondern ein sporadischer Prozess-Exit-Code ≠ 0 nach erfolgreichem Testlauf (Interpreter-/Qt-Shutdown unter Windows, PySide6 6.12.0 / offscreen). Der Diagnoseschritt sollte daher auf alle Windows-Matrixzellen (oder mindestens 3.10 + 3.12) ausgedehnt werden, damit Exit-Code und faulthandler-Ausgabe auch in der fehlschlagenden Zelle erscheinen. Naheliegende Kandidaten zum Gegenprüfen: ein im Test erzeugtes QApplication wird nicht geordnet beendet (app.quit()/deleteLater + processEvents im Session-Teardown) oder ein Pin von PySide6 auf die zuvor grüne Version. Kein Merge-Blocker für die Diagnose selbst; Fix hier nicht vorgenommen, da die Ursache noch nicht belegt ist.


Generated by Claude Code

@lukisch lukisch changed the title Diagnose Windows Python 3.12 pytest exit Diagnose Windows pytest process exit Oct 12, 2026
@lukisch
lukisch merged commit c216db7 into main Oct 12, 2026
12 checks passed
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