Skip to content

Fix output of full_modulepath - #274

Merged
casparvl merged 1 commit into
EESSI:mainfrom
laraPPr:fix_full_modulepath
Jul 16, 2025
Merged

casparvl merged 1 commit into
EESSI:mainfrom
laraPPr:fix_full_modulepath

Conversation

@laraPPr

@laraPPr laraPPr commented Jul 2, 2025

Copy link
Copy Markdown
Collaborator

Noticed that module --location show PyTorch/2.1.2-foss-2023a was returning nothing in stdout. Which ment that the full modulepath was missing from the report-file

"full_modulepath": "['']",

This is because the module command prints to stderr when LMOD_REDIRECT=no which is the case for EESSI. This small fix makes sure that full_modulepath will be set either way.

@laraPPr laraPPr added the bug fix label Jul 2, 2025

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

Tested, works like a charm:

(eessi_test_venv) [casparl@tcn339 EESSI]$ cat reframe_runs/report_files/run-report-551.json | grep -i modulepath
              "echo \"FULL_MODULEPATH: $(module --location show LAMMPS/29Aug2024-foss-2023b-kokkos)\""
            "full_modulepath": "['']",
              "echo \"FULL_MODULEPATH: $(module --location show LAMMPS/2Aug2023_update2-foss-2023a-kokkos)\""
            "full_modulepath": "['']",
(eessi_test_venv) [casparl@tcn339 EESSI]$ cat reframe_runs/report_files/run-report-552.json | grep -i modulepath
              "echo \"FULL_MODULEPATH: $(module --location show LAMMPS/29Aug2024-foss-2023b-kokkos 2>&1)\""
            "full_modulepath": "['/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/modules/all/LAMMPS/29Aug2024-foss-2023b-kokkos.lua']",
              "echo \"FULL_MODULEPATH: $(module --location show LAMMPS/2Aug2023_update2-foss-2023a-kokkos 2>&1)\""
            "full_modulepath": "['/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/modules/all/LAMMPS/2Aug2023_update2-foss-2023a-kokkos.lua']",

The first run report is based on the main branch, the second one based on this feature branch. Nice how sometimes only 5 characters can fix things :)

@casparvl
casparvl merged commit 02d0578 into EESSI:main Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants