Skip to content

Minimize error output of CI tests#3436

Merged
ipspace merged 1 commit into
devfrom
fail-diff
Jun 3, 2026
Merged

Minimize error output of CI tests#3436
ipspace merged 1 commit into
devfrom
fail-diff

Conversation

@ipspace
Copy link
Copy Markdown
Owner

@ipspace ipspace commented Jun 3, 2026

  • Generate diffs in case of transformation- or error output mismatch
  • Report only diffs (everything else is pretty much useless)
  • Suppress stderr in error tests (it's captured in diff anyway)

Based on work by @a-v-popov in #3405

* Generate diffs in case of transformation- or error output mismatch
* Report only diffs (everything else is pretty much useless)
* Suppress stderr in error tests (it's captured in diff anyway)

Based on work by @a-v-popov in #3405
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the transformation/error pytest harness to reduce noisy CI output by emitting a unified diff on mismatches and suppressing stderr during error-case execution.

Changes:

  • Replace direct assert actual == expected comparisons with a report_mismatch(...) helper that builds a difflib.unified_diff and fails with pytest.fail(..., pytrace=False).
  • Suppress stderr during run_test(...) execution for error cases via redirect_stderr(...).

Comment thread tests/test_transformation.py
Comment thread tests/test_transformation.py
@ipspace ipspace merged commit b27aae1 into dev Jun 3, 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.

2 participants