fix --sanity-check-only and --module-only for UCX plugins#3007
fix --sanity-check-only and --module-only for UCX plugins#3007boegel merged 5 commits intoeasybuilders:developfrom
--sanity-check-only and --module-only for UCX plugins#3007Conversation
--sanity-check-only and --module-only for UCX plugins
|
@boegelbot please test @ generoso |
|
@boegel: Request for testing this PR well received on login1 PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 1737516669 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot Overview of tested easyconfigs (in order)
Build succeeded for 2 out of 2 (2 easyconfigs in total) |
|
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 0 out of 2 (2 easyconfigs in total) |
|
Hmm, looks OK, but still hitting a problem with The problem here is that until the parent Another approach could indeed be to not rely on |
Allows working with --sanity-check-only where the modules may not be loaded yet
Done that, looks simpler although now the code in |
|
ping @boegel Can you test this again? |
|
BTW: Given that we use |
|
@Flamefire Yes, makes sense, we should be using that more often since it helps with keeping easyblocks compatible with Are you up for opening a PR for that? |
|
5630f1c to
56dbb5d
Compare
|
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 7 out of 7 (7 easyconfigs in total) edit this was using |
|
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 7 out of 7 (7 easyconfigs in total) edit: this was using |
|
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 7 out of 7 (7 easyconfigs in total) |
(created using
eb --new-pr)The
self.pluginsvariable was initialized empty and only populated in the configure step. This leads to errors in the sanity check when the configure step is not run.Convert to a property which is lazy-initialized.
Note: I was thinking about querying the dependencies instead of using
get_software_rootas this implementation might fail whenself.pluginsis accessed without the modules loaded. But I think this cannot happen, can it?