From 22caa904d1358a001a8b2670da1f8baaa7059c50 Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis Date: Mon, 21 Oct 2024 23:37:15 +0200 Subject: [PATCH 1/2] Do not issue warning when skipping tests during the init phase --- reframe/core/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reframe/core/decorators.py b/reframe/core/decorators.py index 7ec4d51ac3..b8fbc7e22b 100644 --- a/reframe/core/decorators.py +++ b/reframe/core/decorators.py @@ -104,7 +104,7 @@ def instantiate_all(self, reset_sysenv=0, external_vars=None): kwargs['reset_sysenv'] = reset_sysenv leaf_tests.append(test(*args, **kwargs)) except SkipTestError as e: - getlogger().warning( + getlogger().verbose( f'skipping test {test.__qualname__!r}: {e}' ) except Exception: From aa1ec09d7e7e86306b1d54409f8be9cb779bcea4 Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis Date: Tue, 22 Oct 2024 10:32:12 +0200 Subject: [PATCH 2/2] Fix DST skew in `CMPSPEC` period calculations --- reframe/frontend/reporting/utility.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reframe/frontend/reporting/utility.py b/reframe/frontend/reporting/utility.py index fa98f39c20..54de563f87 100644 --- a/reframe/frontend/reporting/utility.py +++ b/reframe/frontend/reporting/utility.py @@ -8,7 +8,7 @@ import statistics import types from collections import namedtuple -from datetime import datetime, timedelta +from datetime import datetime, timedelta, timezone from numbers import Number from .storage import StorageBackend @@ -89,7 +89,9 @@ def _parse_timestamp(s): if isinstance(s, Number): return s - now = datetime.now() + # Use UTC timezone to avoid daylight saving skewing when adding/subtracting + # periods across a daylight saving switch date + now = datetime.now(timezone.utc) def _do_parse(s): if s == 'now':