File tree 3 files changed +20
-1
lines changed
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
`````````
3
3
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
+
4
14
Version 1.27.0 -- 2022-08-03
5
15
----------------------------
6
16
- Modify behavior of acquire-html-dir command
Original file line number Diff line number Diff line change 33
33
TIME_FORMAT_W = "%Y-%m-%dT%H:%M:%SZ"
34
34
TIME_FORMAT_MS = "%Y-%m-%dT%H:%M:%S.%fZ"
35
35
VERSION_MAJOR = 1
36
- VERSION_MINOR = 27
36
+ VERSION_MINOR = 28
37
37
VERSION_PATCH = 0
38
38
RC = False
39
39
Original file line number Diff line number Diff line change 36
36
DUMP_SIGNAL = signal .SIGUSR1
37
37
_DUMPED_RUN = "dumped-run.json"
38
38
39
+ _SIGNAL_HANDLER_RUNNING = False
40
+
39
41
40
42
def add_subparser (subparsers ):
41
43
dump_run_pars = subparsers .add_parser ("dump-run" )
@@ -206,7 +208,14 @@ class DumpRunSignalHandler:
206
208
207
209
208
210
def __call__ (self , _signum , _frame ):
211
+ global _SIGNAL_HANDLER_RUNNING
212
+
213
+ if _SIGNAL_HANDLER_RUNNING :
214
+ return
215
+
216
+ _SIGNAL_HANDLER_RUNNING = True
209
217
run = lib .litani_report .get_run_data (self .cache_dir )
210
218
with lib .litani .atomic_write (
211
219
self .cache_dir / _DUMPED_RUN ) as handle :
212
220
print (json .dumps (run , indent = 2 ), file = handle )
221
+ _SIGNAL_HANDLER_RUNNING = False
You can’t perform that action at this time.
0 commit comments