easybuild-framework icon indicating copy to clipboard operation
easybuild-framework copied to clipboard

`--sanity-check-only` runs commands in installation dir

Open ocaisa opened this issue 3 years ago • 2 comments

This leads to problems if the commands have output files since these will get placed in the installation

ocaisa avatar Jul 15 '22 12:07 ocaisa

That's just because the sanity check is always run from the installation directory, this is not specific to --sanity-check-only: https://github.com/easybuilders/easybuild-framework/blob/c10f1e069fc50397f4089e48fa3bc92eff8b16a5/easybuild/framework/easyblock.py#L3438-L3440

We can consider changing that, I can see how this isn't the best possible way of running the sanity check, but doing so without breaking sanity checks won't be trivial...

boegel avatar Aug 03 '22 13:08 boegel

I know we have some easyconfigs where we (ab)use the sanity check as it simplifies how we write a post install command. During the sanity check all the relevant paths are set I think this was in a bioinformatics package, where it is used to download the required databases.

branfosj avatar Dec 06 '23 15:12 branfosj