Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,21 @@ 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
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):
"""
Pre-single-extension hook for hf_xet (extension of huggingface-hub) on aarch64/generic:
Expand Down Expand Up @@ -2681,6 +2696,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,
Expand Down
Loading