Skip to content

Commit 26babc0

Browse files
authored
Merge pull request #160 from Crivella/feature-obabel_a64fx_hook
Add hook to ignore failed tests on a64fx for OpenBabel
2 parents e7703d1 + 9f2b032 commit 26babc0

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

eb_hooks.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,19 @@ def pre_test_hook_increase_max_failed_tests_arm_PyTorch(self, *args, **kwargs):
14781478
self.cfg['max_failed_tests'] = 4
14791479

14801480

1481+
def pre_test_hook_ignore_failing_tests_OpenBabel_a64fx(self, *args, **kwargs):
1482+
"""
1483+
Pre-test hook for OpenBabel: skip timeout tests for OpenBabel 3.1.1 on aarch64/a64fx
1484+
see https://github.com/EESSI/software-layer/pull/1332#issuecomment-3877255228
1485+
the `testroundtrip.py` test reads and writes tens of thousands of small files.
1486+
The test works fine when manually ran with EESSI-extend either directly or inside an eessi_container, but
1487+
consistently fails with the bot
1488+
"""
1489+
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
1490+
if self.name == 'OpenBabel' and self.version == '3.1.1' and cpu_target == CPU_TARGET_A64FX:
1491+
self.cfg['testopts'] = "|| echo ignoring failing tests"
1492+
1493+
14811494
def pre_single_extension_hook(ext, *args, **kwargs):
14821495
"""Main pre-extension: trigger custom functions based on software name."""
14831496
if ext.name in PRE_SINGLE_EXTENSION_HOOKS:
@@ -1886,6 +1899,7 @@ def post_easyblock_hook(self, *args, **kwargs):
18861899
'Highway': pre_test_hook_exclude_failing_test_Highway,
18871900
'SciPy-bundle': pre_test_hook_ignore_failing_tests_SciPybundle,
18881901
'netCDF': pre_test_hook_ignore_failing_tests_netCDF,
1902+
'OpenBabel': pre_test_hook_ignore_failing_tests_OpenBabel_a64fx,
18891903
'PyTorch': pre_test_hook_increase_max_failed_tests_arm_PyTorch,
18901904
}
18911905

0 commit comments

Comments
 (0)