Skip to content
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

CFITSIO sanity check not --module-only compatible #19970

Open
akesandgren opened this issue Feb 26, 2024 · 6 comments
Open

CFITSIO sanity check not --module-only compatible #19970

akesandgren opened this issue Feb 26, 2024 · 6 comments
Milestone

Comments

@akesandgren
Copy link
Contributor

The sanity_check_command for CFITSIO is not --module-only compatible.

sanity_check_commands = [
    ('cd %(installdir)s/share && testprog'),
]

The above requires write access to %(installdir)s/share, which you may not have when running --module-only

Something like this will work better

sanity_check_commands = [
    ('cp %(installdir)s/share/testprog.tpt $TMPDIR && cd $TMPDIR && testprog'),
]
@akesandgren akesandgren added this to the 4.x milestone Feb 26, 2024
@lexming
Copy link
Contributor

lexming commented Feb 27, 2024

As discussed, testprog should be executed in the test phase. This does not look like a sanity check.

@boegel
Copy link
Member

boegel commented Feb 27, 2024

As discussed, testprog should be executed in the test phase. This does not look like a sanity check.

We can also run testprog in the test step, but this is an OK sanity check imho (assuming it's quick).

To answer's @akesandgren's question in Slack: EasyBuild sets $TMPDIR early on to a unique directory, so using this should be fine.

@lexming
Copy link
Contributor

lexming commented Feb 27, 2024

IMO a sanity check should be a single simple command. Copying files or changing dirs should not be done in it.

@jfgrimm
Copy link
Member

jfgrimm commented Feb 28, 2024

IMO a sanity check should be a single simple command. Copying files or changing dirs should not be done in it.

What about software where e.g. additional compilation is done in the install step? Introduce a new post_install_test step?

@smoors
Copy link
Contributor

smoors commented Mar 3, 2024

What about software where e.g. additional compilation is done in the install step? Introduce a new post_install_test step?

EB already has support for an optional test_cases_step, see e.g. the nwchem easyblock.

@boegel
Copy link
Member

boegel commented Mar 7, 2024

IMO a sanity check should be a single simple command. Copying files or changing dirs should not be done in it.

I respectfully disagree. There's a lot of value in --sanity-check-only that can be used to check on an existing installation, without making any changes to it. It should definitely be quick and lightweight, but copying a file or doing a small compilation (see OpenMPI) is perfectly fine imho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants