Skip to content

Commit 91b0ed5

Browse files
authored
Merge branch 'main' into extrae_5.0.0
2 parents cb7fcad + 68745a9 commit 91b0ed5

2 files changed

Lines changed: 49 additions & 12 deletions

File tree

.github/workflows/bot_build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Bot build script
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
check_symlinks:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Git clone software-layer and software-layer-scripts inside it
13+
run: |
14+
git clone https://github.com/EESSI/software-layer.git
15+
cd software-layer
16+
git clone https://github.com/EESSI/software-layer-scripts.git
17+
18+
- name: Run symlink commands
19+
run: |
20+
set -e
21+
cd software-layer
22+
23+
for file in $(ls software-layer-scripts | egrep -v 'easystacks|LICENSE|README.md|^bot'); do
24+
ln -s software-layer-scripts/${file}
25+
done
26+
27+
for file in $(ls software-layer-scripts/bot | grep -v '^build.sh'); do
28+
ln -s ../software-layer-scripts/bot/${file} bot/${file}
29+
done

eb_hooks.py

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,6 +1494,25 @@ def pre_test_hook_ignore_failing_tests_FFTWMPI(self, *args, **kwargs):
14941494
self.cfg['testopts'] = "|| echo ignoring failing tests"
14951495

14961496

1497+
def pre_test_hook_lammps_ignore_failure_arm_generic(self, *args, **kwargs):
1498+
"""
1499+
Ignore failing tests on ARM generic target for LAMMPS version 22Jul2025
1500+
"""
1501+
# Ignore failing ctest for LAMMPS/22Jul2025 on aarch64/generic
1502+
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
1503+
if cpu_target == CPU_TARGET_AARCH64_GENERIC:
1504+
if self.name == 'LAMMPS' and self.version == '22Jul2025':
1505+
# This command matches what is in
1506+
# https://github.com/easybuilders/easybuild-easyblocks/blob/71b010288084e1777fbdd0e3db319f0104134b1d/easybuild/easyblocks/l/lammps.py#L682
1507+
# If a test_cmd is already defined, the easyblock linked above should not overwrite it anymore
1508+
test_cmd = 'ctest '
1509+
test_cmd += '--no-tests=error '
1510+
test_cmd += '-LE unstable -E "TestMliapPyUnified|AtomicPairStyle:meam_spline|KSpaceStyle:scafacos.*" '
1511+
test_cmd += f' || echo "Ignoring failing tests when installing for {cpu_target}"'
1512+
self.log.debug(f"Running tests using test_cmd = '{test_cmd}' as test_cmd")
1513+
self.cfg['test_cmd'] = test_cmd
1514+
1515+
14971516
def pre_test_hook_ignore_failing_tests_SciPybundle(self, *args, **kwargs):
14981517
"""
14991518
Pre-test hook for SciPy-bundle: skip failing tests for selected SciPy-bundle versions
@@ -1975,18 +1994,6 @@ def post_easyblock_hook(self, *args, **kwargs):
19751994
print_warning(f"Not enabling the post_easybuild_hook, as it requires EasyBuild 5.1.1 or newer (you are using {EASYBUILD_VERSION}).")
19761995

19771996

1978-
def pre_run_shell_cmd_hook(cmd, work_dir=None, **kwargs):
1979-
"""Main pre_shell_cmd_hook: trigger custom funtions based on software name."""
1980-
1981-
# Ignore failing ctest for LAMMPS/22Jul2025 on aarch64/generic
1982-
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
1983-
if cpu_target == CPU_TARGET_AARCH64_GENERIC:
1984-
if bool(re.search('LAMMPS', work_dir)) and bool(re.search('22Jul2025', work_dir)):
1985-
if isinstance(cmd, str) and cmd.startswith('ctest') and '-LE unstable' in cmd:
1986-
cmd = cmd + f' || echo "Ignoring failing tests when installing for {cpu_target}"'
1987-
return cmd
1988-
1989-
19901997
PARSE_HOOKS = {
19911998
'casacore': parse_hook_casacore_disable_vectorize,
19921999
'CGAL': parse_hook_cgal_toolchainopts_precise,
@@ -2044,6 +2051,7 @@ def pre_run_shell_cmd_hook(cmd, work_dir=None, **kwargs):
20442051
'ESPResSo': pre_test_hook_ignore_failing_tests_ESPResSo,
20452052
'FFTW.MPI': pre_test_hook_ignore_failing_tests_FFTWMPI,
20462053
'Highway': pre_test_hook_exclude_failing_test_Highway,
2054+
'LAMMPS': pre_test_hook_lammps_ignore_failure_arm_generic,
20472055
'SciPy-bundle': pre_test_hook_ignore_failing_tests_SciPybundle,
20482056
'netCDF': pre_test_hook_ignore_failing_tests_netCDF,
20492057
'OpenBabel': pre_test_hook_ignore_failing_tests_OpenBabel_a64fx,

0 commit comments

Comments
 (0)