Closed jcermauwedu closed 1 month ago
I tried fixing these by suppressing the destructor in some previous commits. I've been unable to determine how exactly these are being called in such a way where I can stop these errors from appearing on the CI tests.
I tried fixing these by suppressing the destructor in some previous commits. I've been unable to determine how exactly these are being called in such a way where I can stop these errors from appearing on the CI tests.
Most of them are due to caching on top of caching that are not release. Some, if not all, are not needed b/c the underlying slow/"called multiple times" function is already cached upstream. I'd love a speed test to be 100% sure we are not losing speed though. See #1069.
There are a few others due to how the mocked netcdf Dataset is built. I've been unable to get rid of those. Investigating more... But you can see them in action when you call self.cf.setup
in the tests.
@jcermauwedu I never experienced a segfault like that but do you mind testing against #1069 to see if that solves your problem?
A stress test yielded no more segfaults. If another one appears, we will let you know.
Using the latest commit, the output is squeaky clean. Thanks @benjwadams @ocefpaf
$ pytest
======================================================================== test session starts =========================================================================
platform linux -- Python 3.11.9, pytest-8.2.0, pluggy-1.5.0
rootdir: /home/portal/src/compliance-checker
configfile: pyproject.toml
plugins: cov-5.0.0, requests-mock-1.12.1, vcr-1.0.2, time-machine-2.14.1
collected 235 items
compliance_checker/tests/test_acdd.py ................ [ 6%]
compliance_checker/tests/test_base.py ........ [ 10%]
compliance_checker/tests/test_cf.py ........................................................................................... [ 48%]
compliance_checker/tests/test_cf_integration.py ................. [ 56%]
compliance_checker/tests/test_cli.py ......... [ 60%]
compliance_checker/tests/test_feature_detection.py ............................... [ 73%]
compliance_checker/tests/test_ioos_profile.py .......................................... [ 91%]
compliance_checker/tests/test_ioos_sos.py .. [ 91%]
compliance_checker/tests/test_protocols.py ....s [ 94%]
compliance_checker/tests/test_suite.py ............. [ 99%]
compliance_checker/tests/test_util.py . [100%]
============================================================= 234 passed, 1 skipped in 70.58s (0:01:10) ==============================================================
Most tests apparently pass. With python 3.11.9, there are these floating around.
Intermittently, I can trigger a segfault...