Skip to content

add warning if no modules are found by find_modules - #352

Merged
satishskamath merged 7 commits into
EESSI:mainfrom
smoors:warning
Nov 18, 2026
Merged

satishskamath merged 7 commits into
EESSI:mainfrom
smoors:warning

Conversation

@smoors

@smoors smoors commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

also update the common_eessi_init deprecation warning.

@satishskamath satishskamath self-assigned this Sep 10, 2026
Comment thread eessi/testsuite/utils.py Resolved
improve log/warning messages in find_modules
@satishskamath
satishskamath requested a review from boegel October 15, 2026 11:47

@casparvl casparvl 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.

Looks good to me. Havent tested - if someone can test if this works, I think this can be merged as is.

@satishskamath

satishskamath commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Cases:

  • When the module is found:
reframe -C /gpfs/home5/satishk/projects/eessi_reframe/settings_example.py -c /gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py  -t "2_nodes" -l
[ReFrame Setup]
  version:           4.6.2
  command:           '/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/software/ReFrame/4.6.2/bin/reframe -C /gpfs/home5/satishk/projects/eessi_reframe/settings_example.py -c /gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py -t 2_nodes -l'
  launched by:       [email protected]
  working directory: '/gpfs/home5/satishk/projects'
  settings files:    '<builtin>', '/gpfs/home5/satishk/projects/eessi_reframe/settings_example.py'
  check search path: '/gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py'
  stage directory:   '/projects/0/reframe5/satishk'
  output directory:  '/gpfs/home5/satishk/projects/output'
  log files:         '/gpfs/home5/satishk/projects/reframe.log'

[List of matched checks]
- EESSI_TensorFlow %scale=2_nodes %module_info=('snellius_eessi:cpu_genoa', 'default', 'TensorFlow/2.13.0-foss-2023a') %device_type=cpu /ed2f8e45
- EESSI_TensorFlow %scale=2_nodes %module_info=('snellius_eessi:cpu_rome', 'default', 'TensorFlow/2.13.0-foss-2023a') %device_type=cpu /dea9f188
Found 2 check(s)

Log file(s) saved in '/gpfs/home5/satishk/projects/reframe.log'

Logs:

[2026-11-18T13:39:14] debug: reframe: [find_modules]: Found 1258 modules for partition 'snellius_eessi:gpu_h100' environment 'default' ($MODULEPATH: /cvmfs/software.eessi.io/host_injections/2023.06/software/linux/x86_64/amd/zen2/modules/all:/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/modules/all:/sw/noarch/environment)
[2026-11-18T13:39:14] debug: reframe: [find_modules]: Matched module TensorFlow/2.13.0-foss-2023a with regex TensorFlow
[2026-11-18T13:39:14] debug: reframe: [filter_supported_scales]: valid_systems set to ['+1_core']
[2026-11-18T13:39:14] debug: reframe: [set_module_names]: module_names set to ['TensorFlow/2.13.0-foss-2023a']
[2026-11-18T13:39:14] debug: reframe: [filter_valid_systems_by_device_type]: valid_systems set to ['+1_core +cpu'] for device type cpu
[2026-11-18T13:39:14] debug: reframe: [set_tag_scale]: tags set to {'1_core'}
[2026-11-18T13:39:14] debug: reframe: [set_executable_opts]: executable_opts set to ['--device', 'cpu']
[2026-11-18T13:39:14] debug: reframe: [EESSI_mixin_set_tag_ci]: tags set to {'1_core', 'CI'}
[2026-11-18T13:39:14] debug: reframe: [filter_supported_scales]: valid_systems set to ['+1_core']
[2026-11-18T13:39:14] debug: reframe: [set_module_names]: module_names set to ['TensorFlow/2.13.0-foss-2023a']
  • When the particular module is not found:
 reframe -C /gpfs/home5/satishk/projects/eessi_reframe/settings_example.py -c /gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py  -t "2_nodes" -l
/gpfs/home5/satishk/projects/test-suite/eessi/__init__.py:7: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  __import__("pkg_resources").declare_namespace(__name__)
[ReFrame Setup]
  version:           4.8.2
  command:           '/sw/arch/RHEL9/EB_production/2025/software/ReFrame/4.8.2-GCCcore-14.2.0/bin/reframe -C /gpfs/home5/satishk/projects/eessi_reframe/settings_example.py -c /gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py -t 2_nodes -l'
  launched by:       [email protected]
  working directory: '/gpfs/home5/satishk/projects'
  settings files:    '<builtin>', '/gpfs/home5/satishk/projects/eessi_reframe/settings_example.py'
  selected system:   'snellius_eessi'
  check search path: '/gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py'
  stage directory:   '/projects/0/reframe5/satishk'
  output directory:  '/gpfs/home5/satishk/projects/output'
  log files:         '/gpfs/home5/satishk/projects/reframe.log'
  results database:  [off] '/home/satishk/.reframe/reports/results.db'

/gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py:57: SyntaxWarning: invalid escape sequence '\S'
  accuracy = sn.extractsingle('^Final accuracy: (?P<accuracy>\S+)', self.stdout, 'accuracy', float)  # noqa: W605
WARNING: skipping test 'EESSI_TensorFlow': the following parameters are undefined: module_info
[List of matched checks]
Found 0 check(s)

Log file(s) saved in '/gpfs/home5/satishk/projects/reframe.log'

Logs:

[2026-11-18T13:44:41] debug: reframe: [find_modules]: Getting available modules for (snellius_eessi:gpu_h100, default)
[2026-11-18T13:44:41] debug: reframe: [find_modules]: Loaded modules: ['2025', 'GCCcore/14.2.0', 'zlib/1.3.1-GCCcore-14.2.0', 'binutils/2.42-GCCcore-14.2.0', 'bzip2/1.0.8-GCCcore-14.2.0', 'ncurses/6.5-GCCcore-14.2.0', 'libreadline/8.2-GCCcore-14.2.0', 'Tcl/8.6.16-GCCcore-14.2.0', 'SQLite/3.47.2-GCCcore-14.2.0', 'XZ/5.6.3-GCCcore-14.2.0', 'libffi/3.4.5-GCCcore-14.2.0', 'OpenSSL/3', 'Python/3.13.1-GCCcore-14.2.0', 'libxml2/2.13.4-GCCcore-14.2.0', 'libxslt/1.1.42-GCCcore-14.2.0', 'ReFrame/4.8.2-GCCcore-14.2.0']
[2026-11-18T13:44:41] debug: reframe: [CMD] '/usr/share/lmod/lmod/libexec/lmod python -t avail '
[2026-11-18T13:44:41] debug: reframe: [find_modules]: Found 736 modules for partition 'snellius_eessi:gpu_h100' environment 'default' ($MODULEPATH: /home/satishk/.local/easybuild/RHEL9/2025/modulefiles/all:/sw/noarch/environment:/sw/arch/RHEL9/EB_production/2025/modulefiles/phys:/sw/arch/RHEL9/EB_production/2025/modulefiles/perf:/sw/arch/RHEL9/EB_production/2025/modulefiles/geo:/sw/arch/RHEL9/EB_production/2025/modulefiles/debugger:/sw/arch/RHEL9/EB_production/2025/modulefiles/chem:/sw/arch/RHEL9/EB_production/2025/modulefiles/data:/sw/arch/RHEL9/EB_production/2025/modulefiles/vis:/sw/arch/RHEL9/EB_production/2025/modulefiles/bio:/sw/arch/RHEL9/EB_production/2025/modulefiles/math:/sw/arch/RHEL9/EB_production/2025/modulefiles/cae:/sw/arch/RHEL9/EB_production/2025/modulefiles/system:/sw/arch/RHEL9/EB_production/2025/modulefiles/toolchain:/sw/arch/RHEL9/EB_production/2025/modulefiles/numlib:/sw/arch/RHEL9/EB_production/2025/modulefiles/mpi:/sw/arch/RHEL9/EB_production/2025/modulefiles/tools:/sw/arch/RHEL9/EB_production/2025/modulefiles/lib:/sw/arch/RHEL9/EB_production/2025/modulefiles/compiler:/sw/arch/RHEL9/EB_production/2025/modulefiles/lang:/sw/arch/RHEL9/EB_production/2025/modulefiles/devel:/sw/noarch/RHEL9/2025/modulefiles/all)
[2026-11-18T13:44:41] warning: reframe: ␛[33mWARNING: skipping test 'EESSI_TensorFlow': the following parameters are undefined: module_info␛[0m
[2026-11-18T13:44:41] debug: reframe:   > Loaded 0 test(s)
[2026-11-18T13:44:41] verbose: reframe: Loaded 0 test(s)

Comment thread eessi/testsuite/utils.py Outdated
msg += f" ($MODULEPATH: {modulepath})"
log(msg)
else:
msg = f"No '{regex}' modules found in partition '{part.fullname}' environment '{env}'"

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.

Suggested change
msg = f"No '{regex}' modules found in partition '{part.fullname}' environment '{env}'"
msg = f"No modules found in partition '{part.fullname}' environment '{env}'"

Comment thread eessi/testsuite/utils.py Resolved
@satishskamath

satishskamath commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator
  • Not found case, the warning is clearly seen in stdout:
reframe -C /gpfs/home5/satishk/projects/eessi_reframe/settings_example.py -c /gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py  -t "2_nodes" -l
/gpfs/home5/satishk/projects/test-suite/eessi/__init__.py:7: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  __import__("pkg_resources").declare_namespace(__name__)
[ReFrame Setup]
  version:           4.8.2
  command:           '/sw/arch/RHEL9/EB_production/2025/software/ReFrame/4.8.2-GCCcore-14.2.0/bin/reframe -C /gpfs/home5/satishk/projects/eessi_reframe/settings_example.py -c /gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py -t 2_nodes -l'
  launched by:       [email protected]
  working directory: '/gpfs/home5/satishk/projects'
  settings files:    '<builtin>', '/gpfs/home5/satishk/projects/eessi_reframe/settings_example.py'
  selected system:   'snellius_eessi'
  check search path: '/gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py'
  stage directory:   '/projects/0/reframe5/satishk'
  output directory:  '/gpfs/home5/satishk/projects/output'
  log files:         '/gpfs/home5/satishk/projects/reframe.log'
  results database:  [off] '/home/satishk/.reframe/reports/results.db'

/gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py:57: SyntaxWarning: invalid escape sequence '\S'
  accuracy = sn.extractsingle('^Final accuracy: (?P<accuracy>\S+)', self.stdout, 'accuracy', float)  # noqa: W605
WARNING: No 'TensorFlow' modules found in partition 'snellius_eessi:cpu_rome' environment 'default'
WARNING: No 'TensorFlow' modules found in partition 'snellius_eessi:cpu_genoa' environment 'default'
WARNING: No 'TensorFlow' modules found in partition 'snellius_eessi:gpu_a100' environment 'default'
WARNING: No 'TensorFlow' modules found in partition 'snellius_eessi:gpu_h100' environment 'default'
WARNING: skipping test 'EESSI_TensorFlow': the following parameters are undefined: module_info
[List of matched checks]
Found 0 check(s)

Log file(s) saved in '/gpfs/home5/satishk/projects/reframe.log'

Log:

[2026-11-18T16:53:42] debug: reframe: Validating '/gpfs/home5/satishk/projects/test-suite/eessi/testsuite/tests/apps/tensorflow/tensorflow.py': OK
[2026-11-18T16:53:42] debug: reframe: [CMD] '/usr/share/lmod/lmod/libexec/lmod python -t avail '
[2026-11-18T16:53:43] warning: reframe: �[33mWARNING: No 'TensorFlow' modules found in partition 'snellius_eessi:cpu_rome' environment 'default'�[0m
[2026-11-18T16:53:43] debug: reframe: [CMD] '/usr/share/lmod/lmod/libexec/lmod python -t avail '
[2026-11-18T16:53:44] warning: reframe: �[33mWARNING: No 'TensorFlow' modules found in partition 'snellius_eessi:cpu_genoa' environment 'default'�[0m
[2026-11-18T16:53:44] debug: reframe: [CMD] '/usr/share/lmod/lmod/libexec/lmod python -t avail '
[2026-11-18T16:53:44] warning: reframe: �[33mWARNING: No 'TensorFlow' modules found in partition 'snellius_eessi:gpu_a100' environment 'default'�[0m
[2026-11-18T16:53:44] debug: reframe: [CMD] '/usr/share/lmod/lmod/libexec/lmod python -t avail '
[2026-11-18T16:53:44] warning: reframe: �[33mWARNING: No 'TensorFlow' modules found in partition 'snellius_eessi:gpu_h100' environment 'default'�[0m
[2026-11-18T16:53:44] warning: reframe: �[33mWARNING: skipping test 'EESSI_TensorFlow': the following parameters are undefined: module_info�[0m

Found case, only prints this info if ReFrame is run with -vv, which should be the case, otherwise this information is redundant:

[find_modules]: Found 736 modules for partition 'snellius_eessi:gpu_h100' environment 'default' ($MODULEPATH: /home/satishk/.local/easybuild/RHEL9/2025/modulefiles/all:/sw/noarch/environment:/sw/arch/RHEL9/EB_production/2025/modulefiles/phys:/sw/arch/RHEL9/EB_production/2025/modulefiles/perf:/sw/arch/RHEL9/EB_production/2025/modulefiles/geo:/sw/arch/RHEL9/EB_production/2025
/modulefiles/debugger:/sw/arch/RHEL9/EB_production/2025/modulefiles/chem:/sw/arch/RHEL9/EB_production/2025/modulefiles/data:/sw/arch/RHEL9/EB_production/2025/modulefiles/vis:/sw/arch/RHEL9/EB_production/2025/modulefiles/bio:/sw/arch/RHEL9/EB_production/2025/modulefiles/math:/sw/arch/RHEL9/EB_production/2025/modulefiles/cae:/sw/arch/RHEL9/EB_production/2025/modulefiles/syste
m:/sw/arch/RHEL9/EB_production/2025/modulefiles/toolchain:/sw/arch/RHEL9/EB_production/2025/modulefiles/numlib:/sw/arch/RHEL9/EB_production/2025/modulefiles/mpi:/sw/arch/RHEL9/EB_production/2025/modulefiles/tools:/sw/arch/RHEL9/EB_production/2025/modulefiles/lib:/sw/arch/RHEL9/EB_production/2025/modulefiles/compiler:/sw/arch/RHEL9/EB_production/2025/modulefiles/lang:/sw/arc
h/RHEL9/EB_production/2025/modulefiles/devel:/sw/noarch/RHEL9/2025/modulefiles/all)
[find_modules]: Matched module OpenFOAM/v2506-foss-2025a with regex OpenFOAM/v
Scales supported by EESSI_OPENFOAM_COM_LID_DRIVEN_CAVITY_1M: ('2_cores', '4_cores', '8_cores', '1cpn_2nodes', '1cpn_4nodes', '1_8_node', '1_4_node', '1_2_node', '1_node', '2_nodes')
Scales supported by EESSI_OPENFOAM_COM_LID_DRIVEN_CAVITY_8M: ('1_2_node', '1_node', '2_nodes', '4_nodes', '8_nodes', '16_nodes')
Scales supported by EESSI_OPENFOAM_COM_LID_DRIVEN_CAVITY_64M: ('4_nodes', '8_nodes', '16_nodes')

@satishskamath satishskamath 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!

@satishskamath
satishskamath merged commit c013c62 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.

4 participants