Skip to content

Commit 00e2dda

Browse files
committed
Bump version to 1.28.0
2 parents 2e96431 + 3bf8b6f commit 00e2dda

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

CHANGELOG

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
CHANGELOG
22
`````````
33

4+
Version 1.28.0 -- 2023-03-02
5+
----------------------------
6+
This is a bugfix release containing the following fix:
7+
- Ensure signal handler does not run concurrently
8+
9+
Currently, a signal handler may be invoked while another one is
10+
running. This resulted in a race when two concurrent python functions
11+
attempted to read from and write to the same file.
12+
13+
414
Version 1.27.0 -- 2022-08-03
515
----------------------------
616
- Modify behavior of acquire-html-dir command

lib/litani.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
TIME_FORMAT_W = "%Y-%m-%dT%H:%M:%SZ"
3434
TIME_FORMAT_MS = "%Y-%m-%dT%H:%M:%S.%fZ"
3535
VERSION_MAJOR = 1
36-
VERSION_MINOR = 27
36+
VERSION_MINOR = 28
3737
VERSION_PATCH = 0
3838
RC = False
3939

lib/run_printer.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
DUMP_SIGNAL = signal.SIGUSR1
3737
_DUMPED_RUN = "dumped-run.json"
3838

39+
_SIGNAL_HANDLER_RUNNING = False
40+
3941

4042
def add_subparser(subparsers):
4143
dump_run_pars = subparsers.add_parser("dump-run")
@@ -206,7 +208,14 @@ class DumpRunSignalHandler:
206208

207209

208210
def __call__(self, _signum, _frame):
211+
global _SIGNAL_HANDLER_RUNNING
212+
213+
if _SIGNAL_HANDLER_RUNNING:
214+
return
215+
216+
_SIGNAL_HANDLER_RUNNING = True
209217
run = lib.litani_report.get_run_data(self.cache_dir)
210218
with lib.litani.atomic_write(
211219
self.cache_dir / _DUMPED_RUN) as handle:
212220
print(json.dumps(run, indent=2), file=handle)
221+
_SIGNAL_HANDLER_RUNNING = False

0 commit comments

Comments
 (0)