Skip to content

test(framework): silence expected gh_issue error logs - #3586

Merged
mkoura merged 1 commit into
masterfrom
quiet_gh_issue_logs
Aug 3, 2026
Merged

test(framework): silence expected gh_issue error logs#3586
mkoura merged 1 commit into
masterfrom
quiet_gh_issue_logs

Conversation

@mkoura

@mkoura mkoura commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

The gh_issue unit tests deliberately drive error paths, and the resulting ERROR records were printed by pytest live logging. Raise the gh_issue logger level to CRITICAL via a quiet_logger fixture in the tests that expect errors, keeping the test output clean.

The gh_issue unit tests deliberately drive error paths, and the
resulting ERROR records were printed by pytest live logging. Raise
the gh_issue logger level to CRITICAL via a quiet_logger fixture in
the tests that expect errors, keeping the test output clean.
@mkoura
mkoura requested a review from saratomaz as a code owner August 3, 2026 16:59
@mkoura
mkoura requested review from Copilot and removed request for saratomaz August 3, 2026 16:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 keeps framework_tests output clean by silencing expected error-level logging emitted from cardano_node_tests.utils.gh_issue when unit tests intentionally exercise error paths.

Changes:

  • Added a quiet_logger pytest fixture that raises the gh_issue module logger threshold to CRITICAL via caplog.set_level.
  • Applied the fixture (via @pytest.mark.usefixtures) to the specific tests that intentionally trigger ERROR/exception logs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mkoura
mkoura merged commit 310b1df into master Aug 3, 2026
4 checks passed
@mkoura
mkoura deleted the quiet_gh_issue_logs branch August 3, 2026 17:03
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