Skip to content

Conversation

@pniedzielski
Copy link
Collaborator

This PR fixes two bugs that prevent us from correctly building a coverage test with this project.

@pniedzielski pniedzielski requested review from Copilot and hallfox July 23, 2025 21:08
@pniedzielski pniedzielski requested a review from a team as a code owner July 23, 2025 21:08
@pniedzielski pniedzielski added the skip news No news entry is required label Jul 23, 2025
Copy link

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 addresses two bugs that were preventing proper code coverage test builds. The changes focus on improving test coverage accuracy and updating dependency specifications.

  • Refactored logging callback logic to ensure all code paths are executed during coverage testing
  • Updated tox dependency specification to use latest version instead of pinned version

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/blazingmq/_ext.pyx Modified logging callback to remove early return, ensuring coverage of logging logic
requirements-dev.txt Updated tox dependency from pinned version 3.7.0 to latest available version

Since Cython 3.1.0, Cython's tracing support leaks references to frames
in at least some cases where functions have early returns. This only
affects us when built with `-DCYTHON_TRACE=1`, which we only do when
building for coverage analysis. There's one test that fails because of
this, and we can work aronud the problem by removing the early return.

Signed-off-by: Patrick M. Niedzielski <[email protected]>
This pin is now standing in the way of having CI install a recent
version of `pytest`, and erecnt version of `pytest-cov` are broken with
the old version of `pytest`.

Co-authored-by: Patrick M. Niedzielski <[email protected]>
Signed-off-by: Patrick M. Niedzielski <[email protected]>
@pniedzielski pniedzielski requested review from hallfox and removed request for hallfox July 24, 2025 18:24
@pniedzielski pniedzielski merged commit c1ec741 into bloomberg:main Jul 25, 2025
10 checks passed
@pniedzielski pniedzielski deleted the fix/coverage branch July 25, 2025 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news No news entry is required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants