Skip to content

check_missing_installations.sh fails to capture missing installations correctly #236

@trz42

Description

@trz42

Seems that check-missing-installations.sh in combination with EESSI-pilot-install-software.sh fails to capture missing installations correctly:

[foo ~]$ cat fake-stack.yml
easyconfigs:
  - EasyBuild-4.6.2.eb
  - xxd-8.2.4220-GCCcore-10.2.0.eb
  - Nextflow-22.10.1.eb
[foo ~]$ ml --show-hidden av EasyBuild/4.6.2

--------------------------------------------------------------------------------------------------------- /cluster/modulefiles/all ----------------------------------------------------------------------------------------------------------
   EasyBuild/4.6.2 (H)

  Where:
   H:  Hidden Module

Use "module spider" to find all possible modules.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys".


[foo ~]$ ml --show-hidden av xxd/8.2.4220-GCCcore-10.2.0

--------------------------------------------------------------------------------------------------------- /cluster/modulefiles/all ----------------------------------------------------------------------------------------------------------
   xxd/8.2.4220-GCCcore-10.2.0

Use "module spider" to find all possible modules.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys".


[foo ~]$ ml --show-hidden av Nextflow/22.10.1
No modules found!
Use "module spider" to find all possible modules.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys".


[foo ~]$ eb --easystack fake-stack.yml --missing --experimental
== Temporary log file in case of crash /tmp/eb-7g6d1dfs/easybuild-_5z6vudw.log
== found valid index for /cluster/software/EasyBuild/4.7.0/easybuild/easyconfigs, so using it...

No missing modules!

== found valid index for /cluster/software/EasyBuild/4.7.0/easybuild/easyconfigs, so using it...
== found valid index for /cluster/software/EasyBuild/4.7.0/easybuild/easyconfigs, so using it...

No missing modules!

== found valid index for /cluster/software/EasyBuild/4.7.0/easybuild/easyconfigs, so using it...

2 out of 3 required modules missing:

* Java/11.0.16 (Java-11.0.16.eb)
* Nextflow/22.10.1 (Nextflow-22.10.1.eb)

== Temporary log file(s) /tmp/eb-7g6d1dfs/easybuild-_5z6vudw.log* have been removed.
== Temporary directory /tmp/eb-7g6d1dfs has been removed.

For each line (easyconfig file) in the easystack file the test is run (probably fine), which then prints several No missing modules! lines (also fine), but check_missing_installations.sh just greps for this line in the output of the command eb --easystack fake-stack.yml --missing --experimental and therefore does not catch the missing installation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions