Skip to content

Better ci tests logging for windows#4193

Open
rasapala wants to merge 2 commits intomainfrom
win_ci_tests
Open

Better ci tests logging for windows#4193
rasapala wants to merge 2 commits intomainfrom
win_ci_tests

Conversation

@rasapala
Copy link
Copy Markdown
Collaborator

@rasapala rasapala commented May 8, 2026

🛠 Summary

Fixes critical issues in Windows test execution that prevented proper artifact collection and failure reporting:

Changes:

Fix missing win_test_summary.log — Added error handling to ensure summary log is always created, even when grep finds no matches. Previously, grep failure in the pipeline caused the file to not be generated.

Capture pytest exit code correctly — Removed pipe to tee that was masking pytest exit status, preventing pytest import errors from being caught. Now captures exit code before continuing.

Detect testcompletes successfully — Check for "PASSED" marker in full test log. Only perform crash/failure diagnostics if PASSED marker is absent, avoiding unnecessary processing on successful runs.

Improve failure visibility — Display:

Last successful test
Last running test (identifies the failing test regardless of log size)
Output from last running test to end of log (100 lines)
Segfault/crash messages
Apply improvements to CI pipeline — Updated loadWin.groovy with same PASSED marker check before reporting segfault diagnostics.

Add missing pytest.

Impact:

Jenkins now reliably captures test artifacts even on failure
Test failures and segfaults are immediately visible in console output
Easier root cause analysis without needing to inspect full log files

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

@rasapala rasapala requested review from Copilot, dkalinowski and przepeck and removed request for Copilot May 8, 2026 11:57
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.

2 participants