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

quaquel / EMAworkbench / 43860995845
94%

Build:
DEFAULT BRANCH: master
Ran 16 Nov 2026 11:53AM 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% (+1.3%) from 92.685%
43860995845

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%)

287 existing lines in 30 files now uncovered.

10741 of 11430 relevant lines covered (93.97%)

0.94 hits per line

Coverage Regressions

Lines Coverage ∆ File
50
92.95
0.77% ema_workbench/analysis/prim.py
46
62.15
4.55% ema_workbench/util/utilities.py
33
95.65
-0.12% ema_workbench/analysis/scenario_discovery_util.py
21
85.42
3.02% ema_workbench/analysis/cart.py
21
86.67
2.09% ema_workbench/em_framework/outcomes.py
17
91.59
4.64% ema_workbench/em_framework/model.py
16
96.78
-3.22% test/test_analysis/test_prim.py
15
80.95
28.17% ema_workbench/em_framework/futures_multiprocessing.py
9
96.28
2.13% ema_workbench/analysis/plotting_util.py
9
94.89
1.86% ema_workbench/em_framework/util.py
7
96.28
7.05% ema_workbench/em_framework/evaluators.py
5
92.54
-7.46% test/test_em_framework/test_futures_multiprocessing.py
4
97.72
0.23% ema_workbench/em_framework/points.py
4
98.0
0.29% test/test_analysis/test_plotting.py
3
98.32
-0.48% ema_workbench/em_framework/callbacks.py
3
93.18
-2.06% ema_workbench/em_framework/experiment_runner.py
3
99.32
0.9% test/test_analysis/test_scenario_discovery_util.py
3
98.24
0.44% test/test_em_framework/test_model.py
2
97.56
-2.44% ema_workbench/analysis/clusterer.py
2
96.75
-0.1% ema_workbench/analysis/prim_util.py
2
98.29
-0.9% ema_workbench/analysis/regional_sa.py
2
78.95
-6.05% ema_workbench/em_framework/__init__.py
2
90.49
13.62% ema_workbench/em_framework/parameters.py
2
89.8
2.17% ema_workbench/util/ema_logging.py
1
94.3
4.77% test/test_analysis/test_cart.py
1
99.03
3.38% test/test_analysis/test_clusterer.py
1
97.67
2.02% test/test_analysis/test_regional_sa.py
1
99.62
0.39% test/test_em_framework/test_evaluators.py
1
97.83
0.95% test/test_util/test_ema_logging.py
1
99.39
0.46% test/test_util/test_utilities.py
Jobs
ID Job ID Ran Files Coverage
1 43860995845.1 16 Nov 2026 11:53AM UTC 81
93.97
GitHub Action Run
Source Files on build 43860995845
  • Tree
  • List 81
  • Changed 42
  • Source Changed 42
  • Coverage Changed 40
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43860995845
  • af61e002 on github
  • Prev Build on master (#27131317569)
  • Next Build on master (#43886151732)
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