Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatibility with the 'flaky' plugin #50

Merged
merged 2 commits into from
Nov 14, 2022

Conversation

pablogsal
Copy link
Member

The 'flaky' plugging does some cuestionable activity and forces our
plugin to be called with itself. This causes us to wrap our own test
wrapper and therefore create nested Trackers, which is not allowed.

To fix this, unwrap the test function at the end of the run.

Issue number of the reported bug or feature request: #

Describe your changes
A clear and concise description of the changes you have made.

Testing performed
Describe the testing you have performed to ensure that the bug has been addressed, or that the new feature works as planned.

Additional context
Add any other context about your contribution here.

The 'flaky' plugging does some questionable activity and forces our
plugin to be called with itself. This causes us to wrap our own test
wrapper and therefore create nested Trackers, which is not allowed.

To fix this, unwrap the test function at the end of the run.

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
godlygeek
godlygeek previously approved these changes Nov 14, 2022
Copy link
Contributor

@godlygeek godlygeek left a comment

Choose a reason for hiding this comment

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

LGTM

Seems that one of the latest memray versions has broken the test suite
because we don't track Cython calls anymore. Fix this by not matching
the Cython file but just the function itself.
@pablogsal pablogsal merged commit fbdbbbd into bloomberg:main Nov 14, 2022
@pablogsal pablogsal deleted the retry branch November 14, 2022 17:41
Copy link
Contributor

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

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

Would have appreciated to wait for my review, but alas looks good.

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.

3 participants