Skip to content

Remove checking for installations we know don't exist - #31

Merged
ocaisa merged 5 commits into
mainfrom
arch_mapping
Oct 15, 2026
Merged

ocaisa merged 5 commits into
mainfrom
arch_mapping

Conversation

@ocaisa

@ocaisa ocaisa commented Oct 15, 2026

Copy link
Copy Markdown
Member

No description provided.

if eessi_version in CPU_ARCHITECTURE_OVERRIDES:
base_json_metadata["architectures_map"][eessi_version] = CPU_ARCHITECTURE_OVERRIDES[eessi_version]
# CPU_ARCHITECTURE_OVERRIDES is a nested dict so we need a deepcopy
base_json_metadata["architectures_map"][eessi_version] = copy.deepcopy(CPU_ARCHITECTURE_OVERRIDES[eessi_version])

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lack of a deepcopy() was the cause of the problem patched in #30

Comment on lines +192 to +193
if len(base_version_dict["cpu_arch"]) == 0:
raise RuntimeError(f"List of CPU archs for {modulefile} is 0, that can't be right!")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will at least error if you get zero CPU archs, that should not happen

@ocaisa

ocaisa commented Oct 15, 2026

Copy link
Copy Markdown
Member Author

Verified the json from the CI manually against #30, the only difference was the timestamp. This is working.

@ocaisa
ocaisa merged commit 4b5930b into main Oct 15, 2026
1 check passed
@ocaisa
ocaisa deleted the arch_mapping branch October 15, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant