cf-python icon indicating copy to clipboard operation
cf-python copied to clipboard

CI: fix flakiness of some precision-based testing

Open sadielbartholomew opened this issue 3 years ago • 0 comments

Some tests which pass locally fail on some (and possibly all in some cases) of the CI job runs corresponding to the full test suite running workflow. They therefore seem to be 'flaky' tests.

Most if not all of these tests involve precision equality testing, for example isclose with given atol and rtol and therefore floating point rounding or tolerance variations are likely the reason for the variation in result on different environments.

See also the following comments, for further context:

  • the first bullet point of https://github.com/NCAS-CMS/cf-python/pull/674#pullrequestreview-1499750393;
  • https://github.com/NCAS-CMS/cf-python/pull/674#issuecomment-1612607290.

sadielbartholomew avatar Jun 30 '23 16:06 sadielbartholomew