add support for --fix-broken-easyconfigs + style fixes#1151
add support for --fix-broken-easyconfigs + style fixes#1151boegel merged 17 commits intoeasybuilders:developfrom
Conversation
release EasyBuild v1.16.0
release EasyBuild v1.16.1
…eters_from_easyconfig
|
Test FAILed. |
…of EasyConfig; it doesn't work
|
Test PASSed. |
|
@stdweird: please review? I'd love to get this into EasyBuild v2.0. |
|
what does this try to solve? i can understand the inconvenience, but why is this fixed within EB? maybe when deprecating things, provide a cleanup wrapper script so people can convert broken ones to working ones. but keep that out of framework. this way, you are still keeping legacy things in framework. i'm not happy with the passing |
|
I'm more in favour of supporting this in the framework, because I want to avoid fragmentation and end up with a dozen different tools that provide all kinds of different functionality left and right... By supporting it via If you (and others) feel strongly about this, I'm willing to flesh this out in stand-alone script instead, to minimalise support for deprecated/broken stuff in the framework. We will still need some notion of the replaced parameters in the framework though, to do decent error reporting, but it would be limited to only a couple of lines of code. I just feel there should be something available to make the transition easier, since lots of people will be sitting on a pile of easyconfig files that no longer work in EasyBuild 2.0 due to (mostly) stylistic non-backward-compatible changes... Not providing something will result in people having to script their own thing to avoid repetitive simple substitutions in the easyconfig files they have. I think we both feel that wouldn't be a good situation. I don't see passing This code is not meant to be format-independent; easyconfig format v2 is still experimental, so I'm not trying to autofix those; we haven't landed yet on the final format there, so we can get away with simply not supporting |
Conflicts: test/framework/easyconfig.py
|
ready to be re-reviewed... @wpoely86: up for it? |
|
Refer to this link for build results (access rights to CI server needed): |
…easyblocks repo isn't around
|
Refer to this link for build results (access rights to CI server needed): |
There was a problem hiding this comment.
debug is enough here i guess (and also 3 lines below)
There was a problem hiding this comment.
move this in function instead of main
|
@boegel looks ok, except for the |
|
Refer to this link for build results (access rights to CI server needed): |
|
remarks fixed, unit tests are happy, going in! |
|
thanks @stdweird for the review! |
add support for --fix-broken-easyconfigs + style fixes
The intention of
--fix-broken-easyconfigsis to automagically rewrite easyconfigs that were not adjusted yet to adher to the deprecated behaviour that is no longer supported in EasyBuild v2.0 (http://easybuild.readthedocs.org/en/latest/Deprecated-functionality.html#easyconfig-parameters), i.e.:(pre)makeoptswith(pre)buildoptsshared_lib_extwithSHLIB_EXTlicensewithlicense_fileConfigureMakeeasyblock, for software for which no dedicated easyblock is availableThis avoids the need to manually apply (simple) fixes to make
ebaccept the easyconfigs again.