Commit e7ed0e8
committed
Atomic LastRun.write
ResultMerger already writes .resultset.json via tempfile + rename
(atomic_write_resultset), but the analogous LastRun.write opens
.last_run.json with `w+` and dumps directly — a concurrent reader can
hit a truncated or empty file. Apply the same tempfile + rename
pattern. Both files matter to parallel-tests workers running
MaximumCoverageDrop checks.1 parent e229b96 commit e7ed0e8
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
0 commit comments