Let jobs retweak easyconfigs themselves by passing down --try-* options#4669
Let jobs retweak easyconfigs themselves by passing down --try-* options#4669boegel merged 8 commits intoeasybuilders:5.0.xfrom
--try-* options#4669Conversation
This can be accomplished by tweak() optionally also returning a dict which maps the tweaked easyconfig to the original version. Then the job can run `eb ... <original_easyconfig.eb> --try-*` and that original easyconfig will be retweaked in the job itself. If the easyconfig passed to the job is not tweaked, then `--try-*` is *not* passed down (so, with `--robot`, some jobs will have `--try-*` and some don't). This removes the requirement of a shared tmpdir with `--job --try-*`. Fixes easybuilders#1355
|
Putting to draft because this needs a proper test combining |
One dep needs --try-toolchain and the other doesn't in the resulting job.
|
@bartoldeman Seems like test was implemented, so this shouldn't be a draft PR anymore? |
|
Justed wanted to test locally using Note that a shared temporary directory is still needed with |
@boegel undrafted now |
|
Sorry for my delay on this, was really busy with a deploy of a new cluster, then i got really sick for the past week. Feel free to steal this from me, i only intended to test it out on the cluster to see that it worked as intended. |
--try-* options
This can be accomplished by
tweak()optionally also returning a dict which maps the tweaked easyconfig to the original version. Then the job can runeb ... <original_easyconfig.eb> --try-*and that original easyconfig will be retweaked in the job itself.If the easyconfig passed to the job is not tweaked, then
--try-*is not passed down (so, with--robot, some jobs will have--try-*and some don't).This removes the requirement of a shared tmpdir with
--job --try-*.Fixes #1355