deprecate passing extension option to sanity_check_step & sanity_check_load_module methods in EasyBlock class - #5220
Merged
boegel merged 6 commits intoJul 29, 2026
Conversation
Flamefire
force-pushed
the
deprecate-extension-param
branch
from
July 21, 2026 15:40
22abb12 to
397039a
Compare
Flamefire
force-pushed
the
deprecate-extension-param
branch
from
July 21, 2026 15:45
397039a to
b9c42ea
Compare
Flamefire
force-pushed
the
deprecate-extension-param
branch
from
July 21, 2026 16:33
b9c42ea to
aff1182
Compare
This was referenced Jul 21, 2026
This is not fully reliable as accidentally passing a non-list as the 2nd param where `extra_modules` was intended will go silently wrong.
boegel
reviewed
Jul 29, 2026
|
|
||
| # skip loading of fake module when using --sanity-check-only, load real module instead | ||
| if build_option('sanity_check_only') and not extension: | ||
| if build_option('sanity_check_only'): |
Member
There was a problem hiding this comment.
shouldn't this still check self.extension?
Suggested change
| if build_option('sanity_check_only'): | |
| if build_option('sanity_check_only') and not self.extension: |
Member
There was a problem hiding this comment.
ah, no, because of the inline return above...
boegel
requested changes
Jul 29, 2026
Member
|
Looks OK to me. I dug into the history a bit:
So, makes sense to me to clean this up as proposed. |
extension to sanity_check_step & sanity_check_load_moduleextension option to sanity_check_step & sanity_check_load_module methods in EasyBlock class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This removes the superflous parameter which is always set to
self.extensionanyway.It looks like an artifact from when that member didn't exist or was not set consistently.
I did this in a PR prior to the 5.3.0 release but took out to get that PR merged without this change.
Reason is to avoid potential mismatches, e.g. by forgetting to pass the parameter.
Ultimately I want to use
self.is_extensionto allow multiple extension to fail their sanity check step and having a "parallel" source of truth makes that harder.The cause here is that the failing exts_filter allows to check other extensions but failing commands does not as that aborts directly. Easy to fix when relying on
self.is_extensionI'll also removed it from
sanity_check_load_modulewhich is similarly simple but requires an update to the easyblocks that use it.