Skip to content

ci: Make python warnings failures in pytest#5682

Draft
benjaminhuth wants to merge 2 commits into
acts-project:mainfrom
benjaminhuth:ci/pytest-python-warning-fail
Draft

ci: Make python warnings failures in pytest#5682
benjaminhuth wants to merge 2 commits into
acts-project:mainfrom
benjaminhuth:ci/pytest-python-warning-fail

Conversation

@benjaminhuth

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

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 project’s pytest configuration to treat Python warnings as test failures, tightening CI signal and preventing new warnings from silently accumulating.

Changes:

  • Configure pytest to convert all warnings into errors via filterwarnings.
  • Extend pytest.ini with the new warnings policy configuration.

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

Comment thread pytest.ini Outdated
@github-actions

github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

📊: Physics performance monitoring for 61afe65

Full contents

physmon summary

❗️: Downstream build failure

  • eic-shell EICrecon (cc @acts-project/epic-contacts)

filterwarnings=error promotes the ResourceWarning from the leaked file
handle in _parse_hash_file into a hard test error at GC time, failing
test_pythia8 in CI.
@sonarqubecloud

Copy link
Copy Markdown

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