[Bug]: Latest version of cdms2=3.1.5
with MPI build of esmf>=8.4.0
/esmpy>=8.4.0
breaks VS Code's Testing API with [WARNING]: yaksa:
#737
Labels
Overview
Since cdms2 was patched with
esmpy>=8.4.0
(includesesmf>=8.4.0
), I have not been able to use VS Code's Testing API to write tests for e3sm_diags. When VS Code attempts to discover pytest unit tests, the[WARNING]: yaksa: 10 leaked handle pool object
is raised immediately which VS Code interprets as an error.It seems like this warning is related to MPI/MPICH and something in the MPI build of ESMF. I don't see any GitHub issue in the ESMF/esmpy repo about this, but did find these issues from other repos:
This issue is mostly an annoyance because it hinders my ability to write and debug unit tests efficiently.
VS Code Output
Minimum Reproducible Example
I created dummy Python repo with just
cdms2
,esmpy
(MPI build), andpytest
in mamba env. I created some dummy Python files and a test file with a single unit test.I tried to discover tests with VS Code but reproduced the same
yaksa
error.Possible Solutions
Workarounds
esmf
(esmf >=8.4.0 nompi*
) in the e3sm_diags dev env -- validated this works by using this yaml filepytest .
via CLI while writing tests -- not my preferred methodAdditional Context
There is a similar issue with the
yaksa
warning in xCDAT. However, VS Code's testing API works fine with xCDAT and the latest version of xESMF/esmpy because that warning is raised AFTER regridding tests are executed and not during the test discover phase.The text was updated successfully, but these errors were encountered: