From a2949586083647e193e9c77847b795f8a53b40ba Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis Date: Wed, 13 Nov 2024 13:59:19 +0100 Subject: [PATCH] Do not use file locks when saving the report file --- reframe/frontend/reporting/__init__.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/reframe/frontend/reporting/__init__.py b/reframe/frontend/reporting/__init__.py index c37c15261..48ae1a0d1 100644 --- a/reframe/frontend/reporting/__init__.py +++ b/reframe/frontend/reporting/__init__.py @@ -17,7 +17,6 @@ import uuid from collections import UserDict from collections.abc import Hashable -from filelock import FileLock import reframe as rfm import reframe.utility.jsonext as jsonext @@ -419,7 +418,11 @@ def update_run_stats(self, stats): 'num_skipped': self.__report['runs'][-1]['num_skipped'] }) - def _save(self, filename, compress, link_to_last): + def is_empty(self): + '''Return :obj:`True` is no test cases where run''' + return self.__report['session_info']['num_cases'] == 0 + + def save(self, filename, compress=False, link_to_last=True): filename = _expand_report_filename(filename, newfile=True) with open(filename, 'w') as fp: if compress: @@ -446,15 +449,6 @@ def _save(self, filename, compress, link_to_last): else: raise ReframeError('path exists and is not a symlink') - def is_empty(self): - '''Return :obj:`True` is no test cases where run''' - return self.__report['session_info']['num_cases'] == 0 - - def save(self, filename, compress=False, link_to_last=True): - prefix = os.path.dirname(filename) or '.' - with FileLock(os.path.join(prefix, '.report.lock')): - self._save(filename, compress, link_to_last) - def store(self): '''Store the report in the results storage.'''