• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

quaquel / EMAworkbench / 43886151732
94%

Build:
DEFAULT BRANCH: master
Ran 16 Nov 2026 02:32PM UTC
Jobs 1
Files 81
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Nov 2026 11:48AM UTC coverage: 93.972%. Remained the same
43886151732

push

github

web-flow
Fix MPI tests breaking the test session with recent pytest (#501)

test_logwatcher patched the global logging.getLogger. Recent versions
of pytest call logging.getLogger() in their logging plugin during the
teardown of each test, before pytest-mock undoes the patches, and
iterate over the loggers of the returned root logger. With the patch,
that is a Mock, so pytest failed with TypeError: 'Mock' object is not
iterable, and the patch was never undone. This made the MPI job in CI
fail, so coverage was no longer uploaded to Coveralls, which only
happens in that job.

Use a real logger with a handler that collects the records instead of
patching logging.getLogger.

The tests also patch mpi4py.MPI, which only exists once that submodule
has been imported. So, test_logwatcher and test_mpi_initializer failed
when run on their own, and only passed after test_mpi_evaluator. Import
mpi4py.MPI at the top of the test module.

test_mpi_initializer left the mocked handler on the root logger of the
workbench. Remove it at the end of the test.


Claude-Session: https://claude.ai/code/session_01RbrUQUbjwdPmHx5YcBBzjc

Co-authored-by: Jan Kwakkel <quaquel@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

16 of 16 new or added lines in 1 file covered. (100.0%)

4 existing lines in 1 file now uncovered.

10741 of 11430 relevant lines covered (93.97%)

0.94 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
96.46
0.0% test/test_em_framework/test_futures_mpi.py
Jobs
ID Job ID Ran Files Coverage
1 43886151732.1 16 Nov 2026 02:32PM UTC 81
93.97
GitHub Action Run
Source Files on build 43886151732
  • Tree
  • List 81
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43886151732
  • af61e002 on github
  • Prev Build on master (#43860995845)
  • Next Build on master (#43895084527)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc