Skip to content

allow skipping sanity check#2549

Merged
damianam merged 4 commits intoeasybuilders:developfrom
boegel:allow_skipping_sanity_check
Aug 21, 2018
Merged

allow skipping sanity check#2549
damianam merged 4 commits intoeasybuilders:developfrom
boegel:allow_skipping_sanity_check

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Aug 18, 2018

This change makes the sanity check step skippable, by including 'sanitycheck' in skipsteps in the easyconfig file, as is requested in #1626.
Additional care was taken to make sure that the sanity check step is not skipped when using the --skip command line option (as is currently the case already).

I should mention that I very much advise against skipping the sanity check step, and that we will not accept easyconfigs in the central repository (https://github.com/easybuilders/easybuild-easyconfigs) that have 'sanitycheck' included in skipsteps.

I may enhance this PR to spit out a big fat warning when the sanity check is being skipped, to make it clear that this is consider bad practice...

@easybuilders/easybuild-framework-maintainers Please provide some feedback on this change.

@boegel boegel added this to the 3.7.0 milestone Aug 18, 2018
Comment thread test/framework/options.py Outdated
# check log message with --skip for existing module
args = [
eb_file,
toy_ec ,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

whitespace before ','

@boegel boegel mentioned this pull request Aug 18, 2018
@boegel boegel force-pushed the allow_skipping_sanity_check branch from 067e12c to 79ecaae Compare August 18, 2018 21:06
@boegel boegel force-pushed the allow_skipping_sanity_check branch from 79ecaae to de96eeb Compare August 18, 2018 21:07
@easybuilders easybuilders deleted a comment from houndci-bot Aug 18, 2018
@easybuilders easybuilders deleted a comment from houndci-bot Aug 18, 2018
Comment thread easybuild/framework/easyblock.py Outdated
# skip step if specified as individual (skippable) step
if skippable and (self.skip or step in self.cfg['skipsteps']):
# under --skip, sanity check is not skipped
general_skip = self.skip and step != SANITYCHECK_STEP
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I find the name of this variable confusing. I think cl_skip would be more clear, since we are dealing the command line here.

@damianam
Copy link
Copy Markdown
Member

lgtm!

@damianam damianam merged commit caec321 into easybuilders:develop Aug 21, 2018
@boegel boegel deleted the allow_skipping_sanity_check branch August 21, 2018 17:46
@boegel boegel mentioned this pull request Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants