From 90d3989d07267dbe7a2b7b11a4d550715259b115 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Mon, 19 Aug 2024 16:52:03 +0200 Subject: [PATCH 1/5] Show that in this feature branch, we cannot actually use a module in the test step that we just build. This shows that PR 674 does what it should be doing. --- .../2023.06/eessi-2023.06-eb-4.9.2-2022b.yml | 3 ++- test_suite.sh | 5 +++++ 2 files changed, 7 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 diff --git a/test_suite.sh b/test_suite.sh index 6e73fbd87c..55fb2453a4 100755 --- a/test_suite.sh +++ b/test_suite.sh @@ -79,6 +79,11 @@ export EESSI_SOFTWARE_SUBDIR_OVERRIDE=$(python3 $TOPDIR/eessi_software_subdir.py source $TOPDIR/init/bash +# DEBUG: only to test PR674, this code should never be merged +module av patchelf/0.17.2-GCCcore-12.2.0 +module load patchelf/0.17.2-GCCcore-12.2.0 +patchelf --help + # Load the ReFrame module # Currently, we load the default version. Maybe we should somehow make this configurable in the future? module load ReFrame From 62acadd16a5e8347d78045f65445ce0d615b4b51 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Mon, 19 Aug 2024 16:52:49 +0200 Subject: [PATCH 2/5] Also try to write something, to make sure the overlay is read-only --- test_suite.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test_suite.sh b/test_suite.sh index 55fb2453a4..511272b60f 100755 --- a/test_suite.sh +++ b/test_suite.sh @@ -83,6 +83,7 @@ source $TOPDIR/init/bash module av patchelf/0.17.2-GCCcore-12.2.0 module load patchelf/0.17.2-GCCcore-12.2.0 patchelf --help +touch /cvmfs/software.eessi.io/foo # Load the ReFrame module # Currently, we load the default version. Maybe we should somehow make this configurable in the future? From 51961dab81930be6027bed946cc13ddb100b628f Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Mon, 19 Aug 2024 17:09:08 +0200 Subject: [PATCH 3/5] Ignore cache --- test_suite.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test_suite.sh b/test_suite.sh index 511272b60f..5990b5fc7e 100755 --- a/test_suite.sh +++ b/test_suite.sh @@ -81,7 +81,8 @@ source $TOPDIR/init/bash # DEBUG: only to test PR674, this code should never be merged module av patchelf/0.17.2-GCCcore-12.2.0 -module load patchelf/0.17.2-GCCcore-12.2.0 +module --ignore_cache load patchelf/0.17.2-GCCcore-12.2.0 +which patchelf patchelf --help touch /cvmfs/software.eessi.io/foo @@ -200,7 +201,9 @@ fi # Run all tests echo "Running tests: reframe ${REFRAME_ARGS} --run" -reframe ${REFRAME_ARGS} --run +#reframe ${REFRAME_ARGS} --run +# Make this run faster, we are not interested in the test suite anyway +reframe ${REFRAME_ARGS} --list reframe_exit_code=$? if [[ ${reframe_exit_code} -eq 0 ]]; then echo_green "ReFrame runtime ran succesfully with command: reframe ${REFRAME_ARGS} --run." From 0f8dac92daa65c126044da6506b6e77b1fa3436b Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Tue, 20 Aug 2024 09:58:14 +0200 Subject: [PATCH 4/5] Command -v on patchelf, and echo ebrootpatchelf to see where it comes from --- test_suite.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_suite.sh b/test_suite.sh index 5990b5fc7e..0974537bad 100755 --- a/test_suite.sh +++ b/test_suite.sh @@ -82,7 +82,8 @@ source $TOPDIR/init/bash # DEBUG: only to test PR674, this code should never be merged module av patchelf/0.17.2-GCCcore-12.2.0 module --ignore_cache load patchelf/0.17.2-GCCcore-12.2.0 -which patchelf +command patchelf +echo $EBROOTPATCHELF patchelf --help touch /cvmfs/software.eessi.io/foo From 187b7162b4234e300372bbb4097fa8ddeeafc945 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Tue, 20 Aug 2024 10:45:36 +0200 Subject: [PATCH 5/5] More verbosity --- test_suite.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/test_suite.sh b/test_suite.sh index 0974537bad..982b67417f 100755 --- a/test_suite.sh +++ b/test_suite.sh @@ -80,12 +80,19 @@ export EESSI_SOFTWARE_SUBDIR_OVERRIDE=$(python3 $TOPDIR/eessi_software_subdir.py source $TOPDIR/init/bash # DEBUG: only to test PR674, this code should never be merged +echo "module av patchelf/0.17.2-GCCcore-12.2.0" module av patchelf/0.17.2-GCCcore-12.2.0 +echo "module load patchelf/0.17.2-GCCcore-12.2.0" +module load patchelf/0.17.2-GCCcore-12.2.0 +echo "module --ignore_cache load patchelf/0.17.2-GCCcore-12.2.0" module --ignore_cache load patchelf/0.17.2-GCCcore-12.2.0 -command patchelf -echo $EBROOTPATCHELF -patchelf --help -touch /cvmfs/software.eessi.io/foo +echo "Command -v patchelf" +command -v patchelf +echo "EBROOTPATCHELF: $EBROOTPATCHELF" +echo "patchelf --version" +patchelf --version +echo "ls -al /cvmfs/software.eessi.io/versions/2023.06/software/linux/${EESSI_SOFTWARE_SUBDIR_OVERRIDE}/modules/all/patchelf/" +ls -al /cvmfs/software.eessi.io/versions/2023.06/software/linux/${EESSI_SOFTWARE_SUBDIR_OVERRIDE}/modules/all/patchelf/ # Load the ReFrame module # Currently, we load the default version. Maybe we should somehow make this configurable in the future?