Skip to content

Commit

Permalink
Avoid bleeding pyversion symlinks when checking for inconsistencies (#…
Browse files Browse the repository at this point in the history
…519)

bleeding-<py_version> is now a symlink pointing to the latest bleeding-<timestamp>-<py_version>
This symlink is autogenerated during the build workflow to get the correct timestamp
and is therefore not part of the symlink configuration file
  • Loading branch information
HakonSohoel authored Nov 15, 2024
1 parent 22cd1cc commit a7aaa99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions komodo/symlink/sanity_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def read_link_structure(path):

bleeding_timestamp_pattern = r"bleeding-\d{8}-\d{4}-"
bleeding_deleteme_pattern = r"bleeding-.*\.deleteme"
bleeding_py_version_pattern = r"bleeding-py\d{2}"
dangling_root_folders = [
"bleeding-py311-rhel8",
"bleeding-py38-rhel7",
Expand All @@ -49,6 +50,7 @@ def read_link_structure(path):
[
re.match(bleeding_timestamp_pattern, file_name),
re.match(bleeding_deleteme_pattern, file_name),
re.match(bleeding_py_version_pattern, file_name),
file_name in dangling_root_folders,
not os.path.islink(file_path),
]
Expand Down

0 comments on commit a7aaa99

Please sign in to comment.