Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bot/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ COMMON_ARGS+=("--mode" "run")
[[ ! -z ${HTTPS_PROXY} ]] && COMMON_ARGS+=("--https-proxy" "${HTTPS_PROXY}")
[[ ! -z ${REPOSITORY} ]] && COMMON_ARGS+=("--repository" "${REPOSITORY}")

# pass through '--contain' to avoid leaking in scripts into the container session
# note, --pass-through can be used multiple times if needed
COMMON_ARGS+=("--pass-through" "--contain")

# make sure to use the same parent dir for storing tarballs of tmp
PREVIOUS_TMP_DIR=${PWD}/previous_tmp

Expand Down
21 changes: 21 additions & 0 deletions create_lmodsitepackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,31 @@
end
end

local function eessi_scipy_2022b_test_failures_message(t)
local cpuArch = os.getenv("EESSI_SOFTWARE_SUBDIR")
local graceArch = 'aarch64/nvidia/grace'
local fullModuleName = 'SciPy-bundle/2023.02-gfbf-2022b'
local moduleVersionArchMatch = t.modFullName == fullModuleName and cpuArch == graceArch
if moduleVersionArchMatch and not os.getenv("EESSI_IGNORE_MODULE_WARNINGS") then
-- Print a message on loading SciPy-bundle version == 2023.02 informing about the higher number of
-- test failures and recommend using other versions available via EESSI.
-- A message and not a warning as the exit code would break CI runs otherwise.
local simpleName = string.match(t.modFullName, "(.-)/")
local advice = 'The module ' .. t.modFullName .. ' will be loaded. However, note that\\n'
advice = advice .. 'during its building for the CPU microarchitecture ' .. graceArch .. ' from a\\n'
advice = advice .. 'total of 52.730 unit tests a larger number (46) than usually (2-4) failed. If\\n'
advice = advice .. 'you encounter issues while using ' .. t.modFullName .. ', please,\\n'
advice = advice .. 'consider using one of the other versions of ' .. simpleName .. ' that are also provided\\n'
advice = advice .. 'for the same CPU microarchitecture.\\n'
LmodMessage("\\n", advice)
end
end

-- Combine both functions into a single one, as we can only register one function as load hook in lmod
-- Also: make it non-local, so it can be imported and extended by other lmodrc files if needed
function eessi_load_hook(t)
eessi_espresso_deprecated_message(t)
eessi_scipy_2022b_test_failures_message(t)
-- Only apply CUDA and cu*-library hooks if the loaded module is in the EESSI prefix
-- This avoids getting an Lmod Error when trying to load a CUDA or cu* module from a local software stack
if from_eessi_prefix(t) then
Expand Down