Skip to content

add pytest-freethreaded plugin#416

Closed
thepabloaguilar wants to merge 2 commits intomasterfrom
pytest-freethreaded
Closed

add pytest-freethreaded plugin#416
thepabloaguilar wants to merge 2 commits intomasterfrom
pytest-freethreaded

Conversation

@thepabloaguilar
Copy link
Copy Markdown
Member

I have made things!

This PRs introduces a new pytest plugin called pytest-freethreaded which runs each test multiple times using threads and potentially tell us what are the areas we need to look for non thread safety things.

I've added a constraint to only install this plugin for Python 3.14+ versions!

Note

This PR is not intended to be merge, it's more a exploration. The fixes that would come from the results here will be fixed in separated PRs and then we rebase this branch to get the fixed stuff

Checklist

  • I have double checked that there are no unrelated changes in this pull request (old patches, accidental config files, etc)
  • I have created at least one test case for the changes I have made
  • I have updated the documentation for the changes I have made

Related issues

Refs #55

@thepabloaguilar thepabloaguilar self-assigned this Jan 31, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5c7d315) to head (c73fd22).
⚠️ Report is 339 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #416   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          195       195           
  Lines         6776      6776           
  Branches       213       213           
=========================================
  Hits          6776      6776           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thepabloaguilar
Copy link
Copy Markdown
Member Author

I've looked at some errors, the errors are happening because the plugin does not run with asyncio support 😞

@thepabloaguilar
Copy link
Copy Markdown
Member Author

Ok, in fact it's just because of the pytest plugin initialization order to be arbitrary

@sobolevn sobolevn closed this Apr 5, 2026
@sobolevn
Copy link
Copy Markdown
Member

sobolevn commented Apr 5, 2026

It now has a lot of merge conflicts :(

@sobolevn sobolevn deleted the pytest-freethreaded branch April 5, 2026 19:36
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