Skip to content

Conversation

Flamefire
Copy link
Contributor

@Flamefire Flamefire commented Oct 2, 2025

Currently those are silently ignored leading to success where it should fail.

The only official easyconfig affected by this so far is MDAnalysis-2.4.2-foss-2021a.eb but I ran into this while creating an easyconfig

Includes

When no changes are to be made we can exit early which especially avoids
the `module list` command whose output is unused in this case causing
unecessary overhead.
Many tests modify the environment in some steps and need to restore it
afterwards.
To avoid missing this the contextmanager does that automatically.
This now calls the inherited `EasyBlock.sanity_check_step` that handles
the `sanity_check_commands` & `sanity_check_paths` for extensions too.
It is redundant as `self.is_extension` provides that information already.
Many tests modify the environment in some steps and need to restore it
afterwards.
To avoid missing this the contextmanager does that automatically.
@Flamefire Flamefire force-pushed the extension-sanity-check-commands branch from e1fd987 to 4b556af Compare October 6, 2025 13:16
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