Skip to content

Improve checking of Lmod version & add override option to use EESSI's Lmod in run_reframe.sh - #367

Merged
smoors merged 3 commits into
EESSI:mainfrom
casparvl:force_modulecmd_from_eessi_and_check_version
Nov 18, 2026
Merged

smoors merged 3 commits into
EESSI:mainfrom
casparvl:force_modulecmd_from_eessi_and_check_version

Conversation

@casparvl

@casparvl casparvl commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Make sure to check the Lmod version if we want to load EESSI modules. It needs to be 8.7 or newer to work, otherwise source_sh (present in the EESSI modules) will not succeed / run correctly. See EESSI/dev.eessi.io-riscv#34 (comment) .

Also, provide an override option to force using the module command from EESSI. It's just nice to be able to force this as an end-user for whatever reason - the Lmod version thing would have been one case in which it would have been useful.

Without this change:

~/EESSI/test-suite/CI$ REFRAME_ARGS="-n /e8b695b8 --tag 1_core|2_cores|4_cores --tag CI -p EESSI-2026.06 --system=HCA:premier" EESSI_CONFIGS_TESTSUITE_URL=https://github.com/casparvl/t
est-suite.git EESSI_CONFIGS_TESTSUITE_BRANCH=bsc_hca_production EESSI_CI_SYSTEM_NAME=bsc_hca ./run_reframe.sh
...
Unsetting MODULEPATH: /apps/lmod/modulefiles/xilinx:/apps/lmod/modulefiles/compilers:/apps/lmod/modulefiles/tools:/apps/lmod/modulefiles/riscv-libraries:/apps/lmod/modulefiles/riscv-tools
Module command found: /usr/share/lmod/lmod/libexec/lmod
Adding /cvmfs/software.eessi.io/init/modules/ to the MODULEPATH
...
Using EESSI: True

Modules based on Lua: Version 8.6.19  2022-04-16 13:46 -05:00
    by Robert McLay [email protected]

Module version:
MODULEPATH: /cvmfs/software.eessi.io/init/modules
...
Listing tests:
[ReFrame Setup]
  version:           4.8.1
  command:           "/home/cvanleeuwe/rfm.OI11JkTFcZ/reframe_venv/bin/reframe -n /e8b695b8 --tag '1_core|2_cores|4_cores' --tag CI -p EESSI-2026.06 --system=HCA:premier -p 'EESSI-2023.06|EESSI-2025.06' --
list"
  launched by:       cvanleeuwe@synth-hca
  working directory: '/home/cvanleeuwe/rfm.OI11JkTFcZ'
  settings files:    '<builtin>', '/home/cvanleeuwe/rfm.OI11JkTFcZ/configs/config/bsc_hca.py'
  selected system:   'HCA'
  check search path: (R) '/home/cvanleeuwe/rfm.OI11JkTFcZ/test-suite/eessi/testsuite/tests'
  stage directory:   '/home/cvanleeuwe/reframe_output/staging'
  output directory:  '/home/cvanleeuwe/reframe_CI_runs/output'
  log files:         '/home/cvanleeuwe/reframe_CI_runs/logs/reframe_20261117_135002.log'
  results database:  [off] '/home/cvanleeuwe/.reframe/reports/results.db'

WARNING: skipping test file '/home/cvanleeuwe/rfm.OI11JkTFcZ/test-suite/eessi/testsuite/tests/libs/blas/blas.py': environ error: could not execute module operation: command '/usr/share/lmod/lmod/libexec/lm
od python show EESSI/2026.06' failed with exit code 1:
--- stdout ---
_mlstatus = False

--- stdout ---
--- stderr ---
Lmod has detected the following error: Software directory check for the
detected architecture failed
While processing the following module(s):
    Module fullname  Module Filename
    ---------------  ---------------
    EESSI/2026.06    /cvmfs/software.eessi.io/init/modules/EESSI/2026.06.lua


--- stderr --- (rerun with '-v' for more information)

With this change:

~/EESSI/test-suite/CI$ REFRAME_ARGS="-n /e8b695b8 --tag 1_core|2_cores|4_cores --tag CI -p EESSI-2026.06 --system=HCA:premier" EESSI_CONFIGS_TESTSUITE_URL=https://github.com/casparvl/t
est-suite.git EESSI_CONFIGS_TESTSUITE_BRANCH=bsc_hca_production EESSI_CI_SYSTEM_NAME=bsc_hca ./run_reframe.sh
...
Unsetting MODULEPATH: /apps/lmod/modulefiles/xilinx:/apps/lmod/modulefiles/compilers:/apps/lmod/modulefiles/tools:/apps/lmod/modulefiles/riscv-libraries:/apps/lmod/modulefiles/riscv-tools
An Lmod command with version 8.6.19 is present on the system, but the EESSI modules only work with version 8.7 onwards. Will try to use a module command from EESSI instead (setting USE_MODULECMD_FROM_EESSI
=True).
Using module command from EESSI version 2025.06
^[[6~Modules purged before initialising EESSI
Module for EESSI/2025.06 loaded successfully
EESSI has selected x86_64/generic as the compatible CPU target for EESSI/2025.06
EESSI did not identify an accelerator on the system
(for debug information when loading the EESSI module, set the environment variable EESSI_MODULE_DEBUG_INIT)
...
Using EESSI: True

Modules based on Lua: Version 9.4.5 2026-10-13 12:08 +01:00
    https://lmod.readthedocs.io

Module version:
MODULEPATH: /cvmfs/software.eessi.io/init/modules

Listing tests:
[ReFrame Setup]
  version:           4.8.1
  command:           "/home/cvanleeuwe/rfm.wEgDibiMmD/reframe_venv/bin/reframe -n /e8b695b8 --tag '1_core|2_cores|4_cores' --tag CI -p EESSI-2026.06 --system=HCA:premier -p 'EESSI-2023.06|EESSI-2025.06' --
list"
  launched by:       cvanleeuwe@synth-hca
  working directory: '/home/cvanleeuwe/rfm.wEgDibiMmD'
  settings files:    '<builtin>', '/home/cvanleeuwe/rfm.wEgDibiMmD/configs/config/bsc_hca.py'
  selected system:   'HCA'
  check search path: (R) '/home/cvanleeuwe/rfm.wEgDibiMmD/test-suite/eessi/testsuite/tests'
  stage directory:   '/home/cvanleeuwe/reframe_output/staging'
  output directory:  '/home/cvanleeuwe/reframe_CI_runs/output'
  log files:         '/home/cvanleeuwe/reframe_CI_runs/logs/reframe_20261117_144742.log'
  results database:  [off] '/home/cvanleeuwe/.reframe/reports/results.db'

WARNING: EasyBuild is not available, so cannot determine toolchain hierarchy. Make sure the easybuild python package is installed.
WARNING: Skipping BLAS module info ('HCA:premier', 'EESSI-2026.06', 'OpenBLAS/0.3.32-GCC-15.2.0'): no matching BLIS module found.
...
[List of matched checks]
- EESSI_OSU_pt2pt_CPU %benchmark_info=mpi.pt2pt.osu_bw %module_info=('HCA:premier', 'EESSI-2026.06', 'OSU-Micro-Benchmarks/7.5.2-gompi-2026.1') %scale=2_cores /e8b695b8
Found 1 check(s)
...

… It needs to be 8.7 or newer to work, otherwise source_sh will not succeed. Also, provide an override option to force using the module command from EESSI
Comment thread CI/run_reframe.sh Resolved
Comment thread CI/run_reframe.sh Resolved

@smoors smoors left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@smoors
smoors merged commit e24a8d0 into EESSI:main Nov 18, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants