New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip checksum verification when tweaking software version #1169
Skip checksum verification when tweaking software version #1169
Conversation
Automatic reply from Jenkins: Can I test this? |
Jenkins: ok to test |
Refer to this link for build results (access rights to CI server needed): |
@@ -185,7 +194,7 @@ def __repr__(self): | |||
_log.debug("Overwriting %s with %s" % (key, fval)) | |||
ectxt = regexp.sub("%s = %s" % (res.group('key'), newval), ectxt) | |||
_log.info("Tweaked %s list to '%s'" % (key, newval)) | |||
else: | |||
elif get_easyconfig_parameter_default(key) != val: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with this change, injecting values for keys that are not known easyconfig parameters doesn't work anymore (cfr. the failing tests), see below;
So, either the tests are broken (since it doesn't make a lot of sense to define foo
if EasyBuild isn't going to pick up on it), or we need to restore the ability to do something like --try-amend=foo=bar
======================================================================
ERROR [0.633s]: test obtaining an easyconfig file given certain specifications
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/framework/easyconfig.py", line 520, in test_obtain_easyconfig
res = obtain_ec_for(specs, [self.ec_dir], None)
File "easybuild/framework/easyconfig/tweak.py", line 589, in obtain_ec_for
res = select_or_generate_ec(fp, paths, specs)
File "easybuild/framework/easyconfig/tweak.py", line 561, in select_or_generate_ec
tweak_one(selected_ec_file, fp, specs)
File "easybuild/framework/easyconfig/tweak.py", line 223, in tweak_one
elif get_easyconfig_parameter_default(key) != val:
File "easybuild/framework/easyconfig/default.py", line 183, in get_easyconfig_parameter_default
_log.error("Unkown easyconfig parameter: %s (known: %s)" % (param, sorted(DEFAULT_CONFIG.keys())))
File "easybuild/tools/build_log.py", line 113, in error
raise EasyBuildError(newMsg)
EasyBuildError: "EasyBuild crashed with an error (at easybuild/framework/easyconfig/default.py:183 in
get_easyconfig_parameter_default): Unkown easyconfig parameter: foo (known: [...])
…--try-amend, due to changes in tweak_one
fix broken tests w.r.t. tweak_one changes
Refer to this link for build results (access rights to CI server needed): |
Going in, thanks @geimer! |
Skip checksum verification when tweaking software version
Using
--try-software-version
on an easyconfig which contains checksums currently fails with a checksum mismatch (different tarball, different checksum). This PR addresses this issue by clearing the checksum list when tweaking the software version.Note: unit test missing...