Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit e164014

Browse files
ehildenbrv-auditorrv-jenkins
authored
Fix for minor race condition when making bug reports (#637)
In runtimeverification/evm-semantics#2047, we have a minor race condition when creating bug reports where one thread will check if the directory to create the report in exists, see that it doesn't and then create it. Meanwhile, another thread will already have created the directory, so it the first thread will fail because now the directory does exist. This allows for that case. --------- Co-authored-by: devops <[email protected]> Co-authored-by: rv-jenkins <[email protected]>
1 parent 465cca1 commit e164014

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.433
1+
0.1.434

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "pyk"
7-
version = "0.1.433"
7+
version = "0.1.434"
88
description = ""
99
authors = [
1010
"Runtime Verification, Inc. <[email protected]>",

src/pyk/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def ensure_dir_path(path: str | Path) -> Path:
457457
path = Path(path)
458458
if not path.exists():
459459
_LOGGER.info(f'Making directory: {path}')
460-
path.mkdir(parents=True)
460+
path.mkdir(parents=True, exist_ok=True)
461461
else:
462462
check_dir_path(path)
463463
return path

0 commit comments

Comments
 (0)