xcdat icon indicating copy to clipboard operation
xcdat copied to clipboard

[DevOps]: xgcm warnings polluting test suite and yaksa leaking handlers

Open tomvothecoder opened this issue 1 year ago • 5 comments

There are DeprecationWarnings from xgcm that are polluting the test suite.

Warning 1

  /usr/share/miniconda3/envs/xcdat_ci/lib/python3.11/site-packages/xgcm/grid.py:1283: DeprecationWarning: The `xgcm.Axis` class will be deprecated in the future. Please make sure to use the `xgcm.Grid` methods for your work instead.

Source:

  • https://github.com/xgcm/xgcm/blob/0934c3722d0b8e4842fe8e1bc3daba2ee70f665b/xgcm/grid.py#L1282-L1288
  • These warnings will always appear whenever we reference the Grid class. Idk why they decided to do this instead of having the warning in the Axis class instead.

Solution:

  • Now - silence these specific deprecation warnings
  • Future - The next xgcm will remove the Axis class and the deprecation warnings

Warning 2

  /usr/share/miniconda3/envs/xcdat_ci/lib/python3.11/site-packages/xgcm/grid.py:989: FutureWarning: From version 0.8.0 the Axis computation methods will be removed, in favour of using the Grid computation methods instead. i.e. use `Grid.transform` instead of `Axis.transform`
    warnings.warn(

Source:

  • https://github.com/xgcm/xgcm/blob/0934c3722d0b8e4842fe8e1bc3daba2ee70f665b/xgcm/grid.py#L989-L994
  • These warnings will always appear like the other warning.

Solution:

  • Now - silence these specific deprecation warnings
  • Future - The next xgcm will remove the Axis class and the deprecation warnings

Warning 3

Also a "yaksa: 10 leaked handle pool objects".

Not sure what is causing this one.

tomvothecoder avatar Jun 22 '23 22:06 tomvothecoder