-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
test support for custom wrapper install directory #654
Conversation
@marcodelapierre I'm going to need a second pair of eyes on this one! Testing locally (albeit without module software) it all looks ok - the recipe I generate has the wrapperDir instead of the moduleDir, and it seems to be added to the path, and it corresponds with the wrapper I see written. I don't know why it doesn't find the executable in the test - I think likely there is a bug I'm not seeing. And definitely no rush! Please take your time if you are able to look! |
@vsoch I am finally on this one! Code review is OK to me. Now I am performing some real tests on a VM with Singularity and Lmod modules. |
Testing |
ah!! @vsoch found it, such a silly little typo .... with a mystery though so, look at the template for the wrapper scripts: https://github.com/singularityhub/singularity-hpc/blob/main/shpc/main/wrappers/templates/bases/shell-script-base.sh looks fine, right? but then if I look at any generated wrapper, I get a spurious curly bracket (what the heck?!?!??!?!):
I have some comments here:
What do you think? |
PS but seriously, where does that spurious curly bracket comes from?! 😂 |
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
58c7cfa
to
b7ff0e4
Compare
@marcodelapierre okay let's debug! The curly bracket is first priority.
If one of the above doesn't give us insight I'll need to try to reproduce exactly as you have! I don't have an actual HPC module system (just containers /local machine) so I'll need to figure something out - maybe I can spin up a cloud instance on my personal GCP. |
I have just nuked and re-tested, and can confirm the issue. I have a very basic, non-HPC setup on an Ubuntu VM:
I have installed a python and a blast container with both singularity and docker, and still there is the spurious curly bracket. File
File
Then, |
On the failures of the CI tests:
|
Now waiting on your feedback @vsoch, happy to keep contributing to this process. |
Thanks @marcodelapierre ! I'm fairly busy tomorrow (Thursday) and Friday but I'll try to take a look over the weekend. I think with your scripts I should be able to reproduce in a VM. Thank you for doing that! I hope we will get to the bottom of this mysterious curly guy... 😆 |
My pleasure! Please keep me posted, I might have spare time for this, too, next week. |
@marcodelapierre I won't have time this weekend (or maybe next) - I have to make and record a full talk, plus write a full paper (that I haven't started yet) in the next two weeks, plus a second talk and entire set of experiments (for late October) that also aren't started yet, on top of regular work, so I don't think I'll have time for my fun extra projects! But I'm adding to my calendar for after those are done. |
No worries at all Vanessa, I suggest we update each other whenever convenient. PS: I do have something baking myself as well .. you will know soon! |
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
Actually the current bug looks to be lmod related: https://github.com/singularityhub/singularity-hpc/actions/runs/6119042830/job/16608191872?pr=654. It's not finding the wrapper bin, and note the tests here don't change it yet. |
Signed-off-by: vsoch <[email protected]>
well that made it worse 😆 |
we have more cases than I anticipated - using a custom wrapper, the default wrapper ($root/modules), havint it unset (empty string) and then entirely disabled. Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
It's all green? What? Magic? That was an adventure! |
sounds great! |
any extra tests required on my end you reckon ? or does the update testing scheme for wrappers account already for the cases we discussed? |
I think the big test I added for the custom wrapper directory covers most of it - the one missing piece would be to run the equivalent of loading the module, but with a custom wrapper directory. I also don't test the case where wrappers are disabled but the wrapper directory variable is set - that would actually generate the scripts but not add logic to the templates to use them. So based on that, what do you think? |
But that said - the default for wrappers (that we test) is the module dir, so technically it's set, and the only change with a custom directory would be changing that path. There could be some bug where the module directory is set (and it should be the wrapper) but I think we would have caught that in the other tests. But I'm not 100% on that! I would say the above is OK, and then a manual test by someone that the module loads is good. If we then see an issue pop up again, it would be worth adding the automation. What do you think? |
I will try and run a quick test today, tomorrow at latest. I should have all setup |
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
This will close #653