Skip to content

Conversation

@thomasbbrunner
Copy link
Contributor

Currently the plugin will log a warning message for each xdist process. These changes prevent this by only logging in the main process.

This behavior was introduced in my earlier MR: #294

Sorry about this!

@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.13%. Comparing base (b857483) to head (21fd596).

Files with missing lines Patch % Lines
src/pytest_benchmark/session.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #296      +/-   ##
==========================================
- Coverage   90.46%   90.13%   -0.34%     
==========================================
  Files          29       29              
  Lines        2938     2939       +1     
  Branches      318      319       +1     
==========================================
- Hits         2658     2649       -9     
- Misses        206      215       +9     
- Partials       74       75       +1     
Flag Coverage Δ
py310-pytest84-nodist-cover (macos/arm64) 85.98% <33.33%> (-0.03%) ⬇️
py310-pytest84-nodist-cover (ubuntu/x64) 86.32% <33.33%> (+<0.01%) ⬆️
py310-pytest84-nodist-cover (windows/x64) 85.74% <33.33%> (-0.03%) ⬇️
py310-pytest84-xdist-cover (macos/arm64) ?
py310-pytest84-xdist-cover (ubuntu/x64) ?
py310-pytest84-xdist-cover (windows/x64) ?
py310-pytest90-nodist-cover (macos/arm64) 85.94% <33.33%> (-0.03%) ⬇️
py310-pytest90-nodist-cover (ubuntu/x64) 86.49% <33.33%> (+0.20%) ⬆️
py310-pytest90-nodist-cover (windows/x64) 85.70% <33.33%> (-0.03%) ⬇️
py310-pytest90-xdist-cover (macos/arm64) ?
py310-pytest90-xdist-cover (ubuntu/x64) ?
py310-pytest90-xdist-cover (windows/x64) ?
py311-pytest84-nodist-cover (macos/arm64) 85.98% <33.33%> (-0.03%) ⬇️
py311-pytest84-nodist-cover (ubuntu/x64) 86.28% <33.33%> (-0.07%) ⬇️
py311-pytest84-nodist-cover (windows/x64) 85.74% <33.33%> (-0.03%) ⬇️
py311-pytest84-xdist-cover (macos/arm64) ?
py311-pytest84-xdist-cover (ubuntu/x64) ?
py311-pytest84-xdist-cover (windows/x64) ?
py311-pytest90-nodist-cover (macos/arm64) 85.94% <33.33%> (-0.03%) ⬇️
py311-pytest90-nodist-cover (ubuntu/x64) 86.25% <33.33%> (-0.27%) ⬇️
py311-pytest90-nodist-cover (windows/x64) 85.50% <33.33%> (-0.24%) ⬇️
py311-pytest90-xdist-cover (macos/arm64) ?
py311-pytest90-xdist-cover (ubuntu/x64) ?
py311-pytest90-xdist-cover (windows/x64) ?
py312-pytest84-nodist-cover (macos/arm64) 85.98% <33.33%> (-0.03%) ⬇️
py312-pytest84-nodist-cover (ubuntu/x64) 86.28% <33.33%> (-0.27%) ⬇️
py312-pytest84-nodist-cover (windows/x64) 85.74% <33.33%> (-0.03%) ⬇️
py312-pytest84-xdist-cover (macos/arm64) ?
py312-pytest84-xdist-cover (ubuntu/x64) ?
py312-pytest84-xdist-cover (windows/x64) ?
py312-pytest90-nodist-cover (macos/arm64) 85.94% <33.33%> (-0.03%) ⬇️
py312-pytest90-nodist-cover (ubuntu/x64) 86.28% <33.33%> (-0.03%) ⬇️
py312-pytest90-nodist-cover (windows/x64) 85.50% <33.33%> (-0.24%) ⬇️
py312-pytest90-xdist-cover (macos/arm64) ?
py312-pytest90-xdist-cover (ubuntu/x64) ?
py312-pytest90-xdist-cover (windows/x64) ?
py313-pytest84-nodist-cover (macos/arm64) 85.98% <33.33%> (-0.03%) ⬇️
py313-pytest84-nodist-cover (ubuntu/x64) 86.28% <33.33%> (-0.24%) ⬇️
py313-pytest84-nodist-cover (windows/x64) 85.74% <33.33%> (+0.17%) ⬆️
py313-pytest84-xdist-cover (macos/arm64) ?
py313-pytest84-xdist-cover (ubuntu/x64) ?
py313-pytest84-xdist-cover (windows/x64) ?
py313-pytest90-nodist-cover (macos/arm64) 85.94% <33.33%> (-0.03%) ⬇️
py313-pytest90-nodist-cover (ubuntu/x64) 86.28% <33.33%> (-0.03%) ⬇️
py313-pytest90-nodist-cover (windows/x64) 85.50% <33.33%> (-0.24%) ⬇️
py313-pytest90-xdist-cover (macos/arm64) ?
py313-pytest90-xdist-cover (ubuntu/x64) ?
py313-pytest90-xdist-cover (windows/x64) ?
py314-pytest84-nodist-cover (macos/arm64) 89.31% <33.33%> (-0.04%) ⬇️
py314-pytest84-nodist-cover (ubuntu/x64) 89.58% <33.33%> (-0.27%) ⬇️
py314-pytest84-nodist-cover (windows/x64) 89.04% <33.33%> (-0.04%) ⬇️
py314-pytest84-xdist-cover (macos/arm64) ?
py314-pytest84-xdist-cover (ubuntu/x64) ?
py314-pytest84-xdist-cover (windows/x64) ?
py314-pytest90-nodist-cover (macos/arm64) 89.31% <33.33%> (-0.04%) ⬇️
py314-pytest90-nodist-cover (ubuntu/x64) 89.58% <33.33%> (-0.07%) ⬇️
py314-pytest90-nodist-cover (windows/x64) 88.83% <33.33%> (-0.24%) ⬇️
py314-pytest90-xdist-cover (macos/arm64) ?
py314-pytest90-xdist-cover (ubuntu/x64) ?
py314-pytest90-xdist-cover (windows/x64) ?
py39-pytest84-nodist-cover (macos/arm64) 85.35% <33.33%> (-0.03%) ⬇️
py39-pytest84-nodist-cover (ubuntu/x64) 85.66% <33.33%> (-0.03%) ⬇️
py39-pytest84-nodist-cover (windows/x64) 85.12% <33.33%> (-0.03%) ⬇️
py39-pytest84-xdist-cover (macos/arm64) ?
py39-pytest84-xdist-cover (ubuntu/x64) ?
py39-pytest84-xdist-cover (windows/x64) ?
pypy311-pytest84-nodist-cover (macos/arm64) 85.13% <33.33%> (-0.03%) ⬇️
pypy311-pytest84-nodist-cover (ubuntu/x64) 85.43% <33.33%> (-0.07%) ⬇️
pypy311-pytest84-nodist-cover (windows/x64) ?
pypy311-pytest84-xdist-cover (macos/arm64) ?
pypy311-pytest84-xdist-cover (ubuntu/x64) ?
pypy311-pytest84-xdist-cover (windows/x64) ?
pypy311-pytest90-nodist-cover (macos/arm64) 84.92% <33.33%> (-0.24%) ⬇️
pypy311-pytest90-nodist-cover (ubuntu/x64) 85.64% <33.33%> (-0.07%) ⬇️
pypy311-pytest90-nodist-cover (windows/x64) 84.89% <33.33%> (-0.03%) ⬇️
pypy311-pytest90-xdist-cover (macos/arm64) ?
pypy311-pytest90-xdist-cover (ubuntu/x64) ?
pypy311-pytest90-xdist-cover (windows/x64) ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

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.

1 participant