Skip to content
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

Merged
merged 3 commits into from Apr 29, 2015

Conversation

geimer
Copy link
Contributor

@geimer geimer commented Feb 11, 2015

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...

@hpcugentbot
Copy link
Contributor

Automatic reply from Jenkins: Can I test this?

@boegel
Copy link
Member

boegel commented Mar 11, 2015

Jenkins: ok to test

@hpcugentbot
Copy link
Contributor

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1482/
Test FAILed.

@@ -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:
Copy link
Member

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: [...])

fix broken tests w.r.t. tweak_one changes
@hpcugentbot
Copy link
Contributor

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1679/
Test PASSed.

@boegel
Copy link
Member

boegel commented Apr 29, 2015

Going in, thanks @geimer!

boegel added a commit that referenced this pull request Apr 29, 2015
Skip checksum verification when tweaking software version
@boegel boegel merged commit b13963c into easybuilders:develop Apr 29, 2015
boegel added a commit to boegel/easybuild-framework that referenced this pull request Apr 29, 2015
@geimer geimer deleted the tsv_skip_checksum_verification branch April 30, 2015 13:25
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.

None yet

3 participants