From 78d133f7579cf8007e8c9c751715ee1e05b3473d Mon Sep 17 00:00:00 2001 From: crivella Date: Thu, 29 Oct 2026 12:59:06 +0100 Subject: [PATCH 1/2] Skip orjson zoneinfo --- eb_hooks.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/eb_hooks.py b/eb_hooks.py index bfe34762..f92fd799 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -2127,6 +2127,18 @@ def pre_single_extension_numpy(ext, *args, **kwargs): update_build_option('optarch', 'march=armv8.2-a') +def pre_single_extension_orjson(ext, *args, **kwargs): + """ + Disable test prone to failing due to solar/legal timezone behavior in Etc/UTC on eessi container on Deucalion. + """ + if ext.name == 'orjson': + # Disable UTC zoneinfo UTC test, as the behavior can be dependent on how + # `localinfo`s are configured on the system + runtest = ext.cfg.get('runtest', '') + if 'pytest' in runtest: + ext.cfg['runtest'] = runtest + ' -k "not test_datetime_zoneinfo_utc"' + + def pre_single_extension_hf_xet(ext, *args, **kwargs): """ Pre-single-extension hook for hf_xet (extension of huggingface-hub) on aarch64/generic: @@ -2681,6 +2693,7 @@ def post_easyblock_hook(self, *args, **kwargs): PRE_SINGLE_EXTENSION_HOOKS = { 'isoband': pre_single_extension_isoband, 'numpy': pre_single_extension_numpy, + 'orjson': pre_single_extension_orjson, 'testthat': pre_single_extension_testthat, 'hf_xet': pre_single_extension_hf_xet, 'hf-xet': pre_single_extension_hf_xet, From 1824255e6d13932d15410654b170f5a5cb259b62 Mon Sep 17 00:00:00 2001 From: crivella Date: Thu, 29 Oct 2026 13:02:13 +0100 Subject: [PATCH 2/2] Make this specific to a64fx --- eb_hooks.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/eb_hooks.py b/eb_hooks.py index f92fd799..df3467e9 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -2134,9 +2134,12 @@ def pre_single_extension_orjson(ext, *args, **kwargs): if ext.name == 'orjson': # Disable UTC zoneinfo UTC test, as the behavior can be dependent on how # `localinfo`s are configured on the system - runtest = ext.cfg.get('runtest', '') - if 'pytest' in runtest: - ext.cfg['runtest'] = runtest + ' -k "not test_datetime_zoneinfo_utc"' + cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR') + # Make this specific to a64fx, since the problem was observed only there + if cpu_target == CPU_TARGET_A64FX: + runtest = ext.cfg.get('runtest', '') + if 'pytest' in runtest: + ext.cfg['runtest'] = runtest + ' -k "not test_datetime_zoneinfo_utc"' def pre_single_extension_hf_xet(ext, *args, **kwargs):