EESSI / software-layer

Software layer of the EESSI project
https://eessi.github.io/docs/software_layer
GNU General Public License v2.0
20 stars 43 forks source link

Use `LmodMessage` instead of `LmodWarning` on loading ESPResSo v4.2.1 #589

Closed Neves-P closed 1 month ago

Neves-P commented 1 month ago

After deploying #560, loading ESPResSo 4.2.1 returns a 1 as exit code due to the use of LmodWarning. This in turn causes CI runs to fail for users and developers who are loading version 4.2.1 as part of their pipelines.

As far as I can see, there is no way to change the exit code and keep LmodWarning, which I would prefer to do so this PR changes the call from LmodWarning to LmodMessage to address this problem.

I'll keep this as a draft just until I test the message still gets printed when the module is loaded.

Thank you @jngrad for reporting this!

Reproducing the issue:

{EESSI 2023.06} [pedro@login1 ~]$ ml ESPResSo/4.2.1
Lmod Warning:
ESPResSo v4.2.1 has known issues and has been deprecated. Prefer versions >= 4.2.2 which include important bugfixes.
For details see https://github.com/espressomd/espresso/releases/tag/4.2.2
Use version 4.2.1 at your own risk!

While processing the following module(s):
    Module fullname            Module Filename
    ---------------            ---------------
    ESPResSo/4.2.1-foss-2023a  /cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/neoverse_n1/modules/all/ESPResSo/4.2.1-foss-2023a.lua

{EESSI 2023.06} [pedro@login1 ~]$ echo $?
1
eessi-bot-aws[bot] commented 1 month ago

Instance eessi-bot-mc-aws is configured to build:

eessi-bot-aws[bot] commented 1 month ago

Instance eessi-bot-mc-azure is configured to build:

Neves-P commented 1 month ago

bot: build repo:eessi.io-2023.06-software arch:aarch64/generic

eessi-bot-aws[bot] commented 1 month ago
Updates by the bot instance eessi-bot-mc-aws (click for details) - received bot command `build repo:eessi.io-2023.06-software arch:aarch64/generic` from `Neves-P` - expanded format: `build repository:eessi.io-2023.06-software architecture:aarch64/generic` - handling command `build repository:eessi.io-2023.06-software architecture:aarch64/generic` resulted in: - submitted job `11816`, for details & status see https://github.com/EESSI/software-layer/pull/589#issuecomment-2141924440
eessi-bot-aws[bot] commented 1 month ago
Updates by the bot instance eessi-bot-mc-azure (click for details) - account `Neves-P` has NO permission to send commands to the bot
eessi-bot-aws[bot] commented 1 month ago
New job on instance eessi-bot-mc-aws for architecture aarch64-generic for repository eessi.io-2023.06-software in job dir /project/def-users/SHARED/jobs/2024.05/pr_589/11816 date job status comment
May 31 12:07:48 UTC 2024 submitted job id 11816 awaits release by job manager
May 31 12:08:04 UTC 2024 released job awaits launch by Slurm scheduler
May 31 12:14:06 UTC 2024 running job 11816 is running
May 31 12:20:12 UTC 2024 finished
:grin: SUCCESS (click triangle for details)
Details
:white_check_mark: job output file slurm-11816.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching FAILED:
:white_check_mark: no message matching required modules missing:
:white_check_mark: found message(s) matching No missing installations
:white_check_mark: found message matching .tar.gz created!
Artefacts
eessi-2023.06-software-linux-aarch64-generic-1717157641.tar.gzsize: 0 MiB (3229 bytes)
entries: 1
modules under 2023.06/software/linux/aarch64/generic/modules/all
no module files in tarball
software under 2023.06/software/linux/aarch64/generic/software
no software packages in tarball
other under 2023.06/software/linux/aarch64/generic
.lmod/SitePackage.lua
May 31 12:20:12 UTC 2024 test result
:grin: SUCCESS (click triangle for details)
ReFrame Summary
[ PASSED ] Ran 10/10 test case(s) from 10 check(s) (0 failure(s), 0 skipped, 0 aborted)
Details
:white_check_mark: job output file slurm-11816.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching [\s*FAILED\s*].*Ran .* test case
May 31 15:00:41 UTC 2024 uploaded transfer of eessi-2023.06-software-linux-aarch64-generic-1717157641.tar.gz to S3 bucket succeeded
Neves-P commented 1 month ago

Following same approach as in https://github.com/EESSI/software-layer/pull/560#issuecomment-2132860752, we get:

pedro@login1 /project/def-users/SHARED/jobs/2024.05/pr_589/11816 $ ml ESPResSo/4.2.1-foss-2023a

ESPResSo v4.2.1 has known issues and has been deprecated. Prefer versions >= 4.2.2 which include important bugfixes.
For details see https://github.com/espressomd/espresso/releases/tag/4.2.2
Use version 4.2.1 at your own risk!

pedro@login1 /project/def-users/SHARED/jobs/2024.05/pr_589/11816 $ echo $?
0
Neves-P commented 1 month ago

bot: build repo:eessi.io-2023.06-software arch:aarch64/neoverse_n1 bot: build repo:eessi.io-2023.06-software arch:aarch64/neoverse_v1 bot: build repo:eessi.io-2023.06-software arch:x86_64/generic bot: build repo:eessi.io-2023.06-software arch:x86_64/amd/zen2 bot: build repo:eessi.io-2023.06-software arch:x86_64/amd/zen3 bot: build repo:eessi.io-2023.06-software arch:x86_64/intel/haswell bot: build repo:eessi.io-2023.06-software arch:x86_64/intel/skylake_avx512

eessi-bot-aws[bot] commented 1 month ago
Updates by the bot instance eessi-bot-mc-aws (click for details) - received bot command `build repo:eessi.io-2023.06-software arch:aarch64/neoverse_n1` from `Neves-P` - expanded format: `build repository:eessi.io-2023.06-software architecture:aarch64/neoverse_n1` - received bot command `build repo:eessi.io-2023.06-software arch:aarch64/neoverse_v1` from `Neves-P` - expanded format: `build repository:eessi.io-2023.06-software architecture:aarch64/neoverse_v1` - received bot command `build repo:eessi.io-2023.06-software arch:x86_64/generic` from `Neves-P` - expanded format: `build repository:eessi.io-2023.06-software architecture:x86_64/generic` - received bot command `build repo:eessi.io-2023.06-software arch:x86_64/amd/zen2` from `Neves-P` - expanded format: `build repository:eessi.io-2023.06-software architecture:x86_64/amd/zen2` - received bot command `build repo:eessi.io-2023.06-software arch:x86_64/amd/zen3` from `Neves-P` - expanded format: `build repository:eessi.io-2023.06-software architecture:x86_64/amd/zen3` - received bot command `build repo:eessi.io-2023.06-software arch:x86_64/intel/haswell` from `Neves-P` - expanded format: `build repository:eessi.io-2023.06-software architecture:x86_64/intel/haswell` - received bot command `build repo:eessi.io-2023.06-software arch:x86_64/intel/skylake_avx512` from `Neves-P` - expanded format: `build repository:eessi.io-2023.06-software architecture:x86_64/intel/skylake_avx512` - handling command `build repository:eessi.io-2023.06-software architecture:aarch64/neoverse_n1` resulted in: - submitted job `11817`, for details & status see https://github.com/EESSI/software-layer/pull/589#issuecomment-2142012474 - handling command `build repository:eessi.io-2023.06-software architecture:aarch64/neoverse_v1` resulted in: - submitted job `11818`, for details & status see https://github.com/EESSI/software-layer/pull/589#issuecomment-2142012674 - handling command `build repository:eessi.io-2023.06-software architecture:x86_64/generic` resulted in: - submitted job `11819`, for details & status see https://github.com/EESSI/software-layer/pull/589#issuecomment-2142012839 - handling command `build repository:eessi.io-2023.06-software architecture:x86_64/amd/zen2` resulted in: - submitted job `11820`, for details & status see https://github.com/EESSI/software-layer/pull/589#issuecomment-2142013027 - handling command `build repository:eessi.io-2023.06-software architecture:x86_64/amd/zen3` resulted in: - submitted job `11821`, for details & status see https://github.com/EESSI/software-layer/pull/589#issuecomment-2142013236 - handling command `build repository:eessi.io-2023.06-software architecture:x86_64/intel/haswell` resulted in: - submitted job `11822`, for details & status see https://github.com/EESSI/software-layer/pull/589#issuecomment-2142013434 - handling command `build repository:eessi.io-2023.06-software architecture:x86_64/intel/skylake_avx512` resulted in: - submitted job `11823`, for details & status see https://github.com/EESSI/software-layer/pull/589#issuecomment-2142013631
eessi-bot-aws[bot] commented 1 month ago
Updates by the bot instance eessi-bot-mc-azure (click for details) - account `Neves-P` has NO permission to send commands to the bot
eessi-bot-aws[bot] commented 1 month ago
New job on instance eessi-bot-mc-aws for architecture aarch64-neoverse_n1 for repository eessi.io-2023.06-software in job dir /project/def-users/SHARED/jobs/2024.05/pr_589/11817 date job status comment
May 31 12:38:05 UTC 2024 submitted job id 11817 awaits release by job manager
May 31 12:38:16 UTC 2024 released job awaits launch by Slurm scheduler
May 31 12:43:29 UTC 2024 running job 11817 is running
May 31 12:50:02 UTC 2024 finished
:grin: SUCCESS (click triangle for details)
Details
:white_check_mark: job output file slurm-11817.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching FAILED:
:white_check_mark: no message matching required modules missing:
:white_check_mark: found message(s) matching No missing installations
:white_check_mark: found message matching .tar.gz created!
Artefacts
eessi-2023.06-software-linux-aarch64-neoverse_n1-1717159411.tar.gzsize: 0 MiB (3232 bytes)
entries: 1
modules under _2023.06/software/linux/aarch64/neoversen1/modules/all
no module files in tarball
software under _2023.06/software/linux/aarch64/neoversen1/software
no software packages in tarball
other under _2023.06/software/linux/aarch64/neoversen1
.lmod/SitePackage.lua
May 31 12:50:02 UTC 2024 test result
:grin: SUCCESS (click triangle for details)
ReFrame Summary
[ PASSED ] Ran 10/10 test case(s) from 10 check(s) (0 failure(s), 0 skipped, 0 aborted)
Details
:white_check_mark: job output file slurm-11817.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching [\s*FAILED\s*].*Ran .* test case
May 31 15:01:01 UTC 2024 uploaded transfer of eessi-2023.06-software-linux-aarch64-neoverse_n1-1717159411.tar.gz to S3 bucket succeeded
eessi-bot-aws[bot] commented 1 month ago
New job on instance eessi-bot-mc-aws for architecture aarch64-neoverse_v1 for repository eessi.io-2023.06-software in job dir /project/def-users/SHARED/jobs/2024.05/pr_589/11818 date job status comment
May 31 12:38:09 UTC 2024 submitted job id 11818 awaits release by job manager
May 31 12:38:18 UTC 2024 released job awaits launch by Slurm scheduler
May 31 12:43:31 UTC 2024 running job 11818 is running
May 31 12:47:53 UTC 2024 finished
:grin: SUCCESS (click triangle for details)
Details
:white_check_mark: job output file slurm-11818.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching FAILED:
:white_check_mark: no message matching required modules missing:
:white_check_mark: found message(s) matching No missing installations
:white_check_mark: found message matching .tar.gz created!
Artefacts
eessi-2023.06-software-linux-aarch64-neoverse_v1-1717159413.tar.gzsize: 0 MiB (3232 bytes)
entries: 1
modules under _2023.06/software/linux/aarch64/neoversev1/modules/all
no module files in tarball
software under _2023.06/software/linux/aarch64/neoversev1/software
no software packages in tarball
other under _2023.06/software/linux/aarch64/neoversev1
.lmod/SitePackage.lua
May 31 12:47:53 UTC 2024 test result
:grin: SUCCESS (click triangle for details)
ReFrame Summary
[ PASSED ] Ran 10/10 test case(s) from 10 check(s) (0 failure(s), 0 skipped, 0 aborted)
Details
:white_check_mark: job output file slurm-11818.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching [\s*FAILED\s*].*Ran .* test case
May 31 15:01:21 UTC 2024 uploaded transfer of eessi-2023.06-software-linux-aarch64-neoverse_v1-1717159413.tar.gz to S3 bucket succeeded
eessi-bot-aws[bot] commented 1 month ago
New job on instance eessi-bot-mc-aws for architecture x86_64-generic for repository eessi.io-2023.06-software in job dir /project/def-users/SHARED/jobs/2024.05/pr_589/11819 date job status comment
May 31 12:38:13 UTC 2024 submitted job id 11819 awaits release by job manager
May 31 12:38:19 UTC 2024 released job awaits launch by Slurm scheduler
May 31 13:46:13 UTC 2024 running job 11819 is running
May 31 13:51:19 UTC 2024 finished
:grin: SUCCESS (click triangle for details)
Details
:white_check_mark: job output file slurm-11819.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching FAILED:
:white_check_mark: no message matching required modules missing:
:white_check_mark: found message(s) matching No missing installations
:white_check_mark: found message matching .tar.gz created!
Artefacts
eessi-2023.06-software-linux-x86_64-generic-1717163184.tar.gzsize: 0 MiB (3225 bytes)
entries: 1
modules under _2023.06/software/linux/x8664/generic/modules/all
no module files in tarball
software under _2023.06/software/linux/x8664/generic/software
no software packages in tarball
other under _2023.06/software/linux/x8664/generic
.lmod/SitePackage.lua
May 31 13:51:19 UTC 2024 test result
:grin: SUCCESS (click triangle for details)
ReFrame Summary
[ PASSED ] Ran 10/10 test case(s) from 10 check(s) (0 failure(s), 0 skipped, 0 aborted)
Details
:white_check_mark: job output file slurm-11819.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching [\s*FAILED\s*].*Ran .* test case
May 31 15:01:40 UTC 2024 uploaded transfer of eessi-2023.06-software-linux-x86_64-generic-1717163184.tar.gz to S3 bucket succeeded
eessi-bot-aws[bot] commented 1 month ago
New job on instance eessi-bot-mc-aws for architecture x86_64-amd-zen2 for repository eessi.io-2023.06-software in job dir /project/def-users/SHARED/jobs/2024.05/pr_589/11820 date job status comment
May 31 12:38:17 UTC 2024 submitted job id 11820 awaits release by job manager
May 31 12:39:21 UTC 2024 released job awaits launch by Slurm scheduler
May 31 12:45:36 UTC 2024 running job 11820 is running
May 31 12:51:05 UTC 2024 finished
:grin: SUCCESS (click triangle for details)
Details
:white_check_mark: job output file slurm-11820.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching FAILED:
:white_check_mark: no message matching required modules missing:
:white_check_mark: found message(s) matching No missing installations
:white_check_mark: found message matching .tar.gz created!
Artefacts
eessi-2023.06-software-linux-x86_64-amd-zen2-1717159527.tar.gzsize: 0 MiB (3218 bytes)
entries: 1
modules under _2023.06/software/linux/x8664/amd/zen2/modules/all
no module files in tarball
software under _2023.06/software/linux/x8664/amd/zen2/software
no software packages in tarball
other under _2023.06/software/linux/x8664/amd/zen2
.lmod/SitePackage.lua
May 31 12:51:05 UTC 2024 test result
:grin: SUCCESS (click triangle for details)
ReFrame Summary
[ PASSED ] Ran 10/10 test case(s) from 10 check(s) (0 failure(s), 0 skipped, 0 aborted)
Details
:white_check_mark: job output file slurm-11820.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching [\s*FAILED\s*].*Ran .* test case
May 31 15:02:00 UTC 2024 uploaded transfer of eessi-2023.06-software-linux-x86_64-amd-zen2-1717159527.tar.gz to S3 bucket succeeded
eessi-bot-aws[bot] commented 1 month ago
New job on instance eessi-bot-mc-aws for architecture x86_64-amd-zen3 for repository eessi.io-2023.06-software in job dir /project/def-users/SHARED/jobs/2024.05/pr_589/11821 date job status comment
May 31 12:38:21 UTC 2024 submitted job id 11821 awaits release by job manager
May 31 12:39:23 UTC 2024 released job awaits launch by Slurm scheduler
May 31 12:45:38 UTC 2024 running job 11821 is running
May 31 12:48:58 UTC 2024 finished
:grin: SUCCESS (click triangle for details)
Details
:white_check_mark: job output file slurm-11821.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching FAILED:
:white_check_mark: no message matching required modules missing:
:white_check_mark: found message(s) matching No missing installations
:white_check_mark: found message matching .tar.gz created!
Artefacts
eessi-2023.06-software-linux-x86_64-amd-zen3-1717159495.tar.gzsize: 0 MiB (3221 bytes)
entries: 1
modules under _2023.06/software/linux/x8664/amd/zen3/modules/all
no module files in tarball
software under _2023.06/software/linux/x8664/amd/zen3/software
no software packages in tarball
other under _2023.06/software/linux/x8664/amd/zen3
.lmod/SitePackage.lua
May 31 12:48:58 UTC 2024 test result
:grin: SUCCESS (click triangle for details)
ReFrame Summary
[ PASSED ] Ran 10/10 test case(s) from 10 check(s) (0 failure(s), 0 skipped, 0 aborted)
Details
:white_check_mark: job output file slurm-11821.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching [\s*FAILED\s*].*Ran .* test case
May 31 15:02:19 UTC 2024 uploaded transfer of eessi-2023.06-software-linux-x86_64-amd-zen3-1717159495.tar.gz to S3 bucket succeeded
eessi-bot-aws[bot] commented 1 month ago
New job on instance eessi-bot-mc-aws for architecture x86_64-intel-haswell for repository eessi.io-2023.06-software in job dir /project/def-users/SHARED/jobs/2024.05/pr_589/11822 date job status comment
May 31 12:38:24 UTC 2024 submitted job id 11822 awaits release by job manager
May 31 12:39:25 UTC 2024 released job awaits launch by Slurm scheduler
May 31 12:45:40 UTC 2024 running job 11822 is running
May 31 12:51:06 UTC 2024 finished
:grin: SUCCESS (click triangle for details)
Details
:white_check_mark: job output file slurm-11822.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching FAILED:
:white_check_mark: no message matching required modules missing:
:white_check_mark: found message(s) matching No missing installations
:white_check_mark: found message matching .tar.gz created!
Artefacts
eessi-2023.06-software-linux-x86_64-intel-haswell-1717159524.tar.gzsize: 0 MiB (3229 bytes)
entries: 1
modules under _2023.06/software/linux/x8664/intel/haswell/modules/all
no module files in tarball
software under _2023.06/software/linux/x8664/intel/haswell/software
no software packages in tarball
other under _2023.06/software/linux/x8664/intel/haswell
.lmod/SitePackage.lua
May 31 12:51:06 UTC 2024 test result
:grin: SUCCESS (click triangle for details)
ReFrame Summary
[ PASSED ] Ran 10/10 test case(s) from 10 check(s) (0 failure(s), 0 skipped, 0 aborted)
Details
:white_check_mark: job output file slurm-11822.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching [\s*FAILED\s*].*Ran .* test case
May 31 15:02:39 UTC 2024 uploaded transfer of eessi-2023.06-software-linux-x86_64-intel-haswell-1717159524.tar.gz to S3 bucket succeeded
eessi-bot-aws[bot] commented 1 month ago
New job on instance eessi-bot-mc-aws for architecture x86_64-intel-skylake_avx512 for repository eessi.io-2023.06-software in job dir /project/def-users/SHARED/jobs/2024.05/pr_589/11823 date job status comment
May 31 12:38:28 UTC 2024 submitted job id 11823 awaits release by job manager
May 31 12:39:27 UTC 2024 released job awaits launch by Slurm scheduler
May 31 12:45:42 UTC 2024 running job 11823 is running
May 31 12:50:03 UTC 2024 finished
:grin: SUCCESS (click triangle for details)
Details
:white_check_mark: job output file slurm-11823.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching FAILED:
:white_check_mark: no message matching required modules missing:
:white_check_mark: found message(s) matching No missing installations
:white_check_mark: found message matching .tar.gz created!
Artefacts
eessi-2023.06-software-linux-x86_64-intel-skylake_avx512-1717159522.tar.gzsize: 0 MiB (3234 bytes)
entries: 1
modules under _2023.06/software/linux/x86_64/intel/skylakeavx512/modules/all
no module files in tarball
software under _2023.06/software/linux/x86_64/intel/skylakeavx512/software
no software packages in tarball
other under _2023.06/software/linux/x86_64/intel/skylakeavx512
.lmod/SitePackage.lua
May 31 12:50:03 UTC 2024 test result
:grin: SUCCESS (click triangle for details)
ReFrame Summary
[ PASSED ] Ran 10/10 test case(s) from 10 check(s) (0 failure(s), 0 skipped, 0 aborted)
Details
:white_check_mark: job output file slurm-11823.out
:white_check_mark: no message matching ERROR:
:white_check_mark: no message matching [\s*FAILED\s*].*Ran .* test case
May 31 15:02:58 UTC 2024 uploaded transfer of eessi-2023.06-software-linux-x86_64-intel-skylake_avx512-1717159522.tar.gz to S3 bucket succeeded