How to test a Spack package on AWS
Follow this guide to validate a Spack package on AWS once the package is already loaded. This guide focuses on running the package smoke tests with Spack.
Prerequisites
Access to the SDP AWS environment (headnode or interactive compute node).
A loaded SDP Spack environment (
module load ska-sdp-spack)The package to test is already loaded (
module load <package_to_test>)
Steps
Log in to AWS and start an interactive compute node if needed for heavier tests.
Check that the package is available in the loaded Spack environment.
spack find <package_to_test>
Run the package smoke tests.
spack test run <package_to_test>
Optionally, inspect recent test logs for additional details.
spack test list spack test results
Verification
The test is successful when:
spack test run <package_to_test>starts and finishes successfully.spack test resultsshows passing status for the package test suite.