From 7d70383970fc24ac1691a5cc35216bd8b65deac3 Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Thu, 12 Oct 2023 22:46:49 +0200 Subject: [PATCH] list missing modules (if any) --- .github/workflows/pr_analysis.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_analysis.yml b/.github/workflows/pr_analysis.yml index 4ab1121c6e..02e8436796 100644 --- a/.github/workflows/pr_analysis.yml +++ b/.github/workflows/pr_analysis.yml @@ -68,4 +68,17 @@ jobs: export EESSI_OS_TYPE=linux env | grep ^EESSI | sort source configure_easybuild - eb --missing --easystack ${{matrix.EASYSTACK_FILE}} | grep '^* ' + eb --missing --easystack ${{matrix.EASYSTACK_FILE}} > ${EB_MISSING_OUT} + grep '.* out of .* required modules missing:' ${EB_MISSING_OUT} + exit_code=$? + if [[ ${exit_code} -eq 0 ]]; then + # there may be multiple sections with the above search string + # we grab all lines listing missing modules and print a list of + # unique modules only + MISSING_MODULES=$(grep '^* ' ${EB_MISSING_OUT} | sort -u) + echo "found $(echo ${MISSING_MODULES} | wc -l) modules missing:" + echo "${MISSING_MODULES}" + else + echo "no modules missing" + fi +