From 997427b401a4f5ca1f45c623359d1cdefd762250 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Tue, 20 Aug 2024 13:35:58 +0200 Subject: [PATCH 1/5] Show effect of disableing LMOD cache --- test_suite.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test_suite.sh b/test_suite.sh index 464670b653..2a54956c50 100755 --- a/test_suite.sh +++ b/test_suite.sh @@ -81,6 +81,18 @@ echo "EESSI_SOFTWARE_SUBDIR_OVERRIDE: $EESSI_SOFTWARE_SUBDIR_OVERRIDE" source $TOPDIR/init/bash +# Demonstrate the effect of disabling the cache +echo "Trying to load modules while LMOD cache is used" +# export LMOD_IGNORE_CACHE=1 +module av patchelf +module load patchelf/0.17.2-GCCcore-12.2.0.eb +command -v patchelf +echo "Trying to load modules while LMOD cache is not used" +export LMOD_IGNORE_CACHE=1 +module av patchelf +module load patchelf/0.17.2-GCCcore-12.2.0.eb +command -v patchelf + # Load the ReFrame module # Currently, we load the default version. Maybe we should somehow make this configurable in the future? module load ReFrame From 14a89cb2c74c8c8adafc5d53ecde9223130f8b01 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Tue, 20 Aug 2024 13:37:13 +0200 Subject: [PATCH 2/5] Add patchelf to demonstrate effect of cache in test step --- .../software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2022b.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2022b.yml b/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2022b.yml index a22b78718f..6996e6f712 100644 --- a/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2022b.yml +++ b/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2022b.yml @@ -6,4 +6,5 @@ easyconfigs: from-commit: d8076ebaf8cb915762adebf88d385cc672b350dc - gnuplot-5.4.6-GCCcore-12.2.0.eb - h5py-3.8.0-foss-2022b.eb - - MDAnalysis-2.4.2-foss-2022b.eb + - MDAnalysis-2.4.2-foss-2022b.eb + - patchelf-0.17.2-GCCcore-12.2.0.eb From e6cceb5d8c6f014f1788419698607d3f7f6ac9ed Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Tue, 20 Aug 2024 16:06:28 +0200 Subject: [PATCH 3/5] Fix module name --- test_suite.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_suite.sh b/test_suite.sh index 2a54956c50..bb1913e086 100755 --- a/test_suite.sh +++ b/test_suite.sh @@ -85,12 +85,12 @@ source $TOPDIR/init/bash echo "Trying to load modules while LMOD cache is used" # export LMOD_IGNORE_CACHE=1 module av patchelf -module load patchelf/0.17.2-GCCcore-12.2.0.eb +module load patchelf/0.17.2-GCCcore-12.2.0 command -v patchelf echo "Trying to load modules while LMOD cache is not used" export LMOD_IGNORE_CACHE=1 module av patchelf -module load patchelf/0.17.2-GCCcore-12.2.0.eb +module load patchelf/0.17.2-GCCcore-12.2.0 command -v patchelf # Load the ReFrame module From 129973eb71263f9ef1189d91eb7baaf83f982eae Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Tue, 20 Aug 2024 20:05:47 +0200 Subject: [PATCH 4/5] Remove debugging output, add clarifying comments --- test_suite.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/test_suite.sh b/test_suite.sh index bb1913e086..41af69643a 100755 --- a/test_suite.sh +++ b/test_suite.sh @@ -81,17 +81,9 @@ echo "EESSI_SOFTWARE_SUBDIR_OVERRIDE: $EESSI_SOFTWARE_SUBDIR_OVERRIDE" source $TOPDIR/init/bash -# Demonstrate the effect of disabling the cache -echo "Trying to load modules while LMOD cache is used" -# export LMOD_IGNORE_CACHE=1 -module av patchelf -module load patchelf/0.17.2-GCCcore-12.2.0 -command -v patchelf -echo "Trying to load modules while LMOD cache is not used" +# We have to ignore the LMOD cache, otherwise the software that is built in the build step cannot be found/loaded +# Reason is that the LMOD cache is normally only updated on the Stratum 0, once everything is ingested export LMOD_IGNORE_CACHE=1 -module av patchelf -module load patchelf/0.17.2-GCCcore-12.2.0 -command -v patchelf # Load the ReFrame module # Currently, we load the default version. Maybe we should somehow make this configurable in the future? From af8d9dc69f1af69b0f94749db79c92b2d1706465 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Tue, 20 Aug 2024 20:06:38 +0200 Subject: [PATCH 5/5] Don't add patchelf, this PR wasn't really about that - we just used it to prove that disabling the LMOD cache was needed --- .../software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2022b.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2022b.yml b/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2022b.yml index 6996e6f712..a22b78718f 100644 --- a/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2022b.yml +++ b/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.2-2022b.yml @@ -6,5 +6,4 @@ easyconfigs: from-commit: d8076ebaf8cb915762adebf88d385cc672b350dc - gnuplot-5.4.6-GCCcore-12.2.0.eb - h5py-3.8.0-foss-2022b.eb - - MDAnalysis-2.4.2-foss-2022b.eb - - patchelf-0.17.2-GCCcore-12.2.0.eb + - MDAnalysis-2.4.2-foss-2022b.eb