From e0a207ba225e014045c638a39faba916e414a366 Mon Sep 17 00:00:00 2001
From: Thomas Roeblitz <thomas.roblitz@uib.no>
Date: Fri, 5 Apr 2024 21:23:09 +0200
Subject: [PATCH 1/2] add pre_test hook for failing Highway tests on
 neoverse_v1

---
 eb_hooks.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/eb_hooks.py b/eb_hooks.py
index b2aa16a949..e24e80f395 100644
--- a/eb_hooks.py
+++ b/eb_hooks.py
@@ -402,6 +402,16 @@ def pre_test_hook(self,*args, **kwargs):
         PRE_TEST_HOOKS[self.name](self, *args, **kwargs)
 
 
+def pre_test_hook_exclude_failing_test_Highway(self, *args, **kwargs):
+    """
+    Pre-test hook for Highway: exclude failing TestAllShiftRightLanes/SVE_256 test on neoverse_v1
+    cfr. https://github.com/EESSI/software-layer/issues/469
+    """
+    cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
+    if self.name == 'Highway' and self.version in ['1.0.3'] and cpu_target == CPU_TARGET_NEOVERSE_V1:
+        self.cfg['runtest'] += ' ARGS="-E TestAllShiftRightLanes/SVE_256"'
+
+
 def pre_test_hook_ignore_failing_tests_ESPResSo(self, *args, **kwargs):
     """
     Pre-test hook for ESPResSo: skip failing tests, tests frequently timeout due to known bugs in ESPResSo v4.2.1
@@ -642,6 +652,7 @@ def inject_gpu_property(ec):
 PRE_TEST_HOOKS = {
     'ESPResSo': pre_test_hook_ignore_failing_tests_ESPResSo,
     'FFTW.MPI': pre_test_hook_ignore_failing_tests_FFTWMPI,
+    'Highway': pre_test_hook_exclude_failing_test_Highway,
     'SciPy-bundle': pre_test_hook_ignore_failing_tests_SciPybundle,
     'netCDF': pre_test_hook_ignore_failing_tests_netCDF,
     'PyTorch': pre_test_hook_increase_max_failed_tests_arm_PyTorch,

From 2c8a6b35b1595fe383c175162ad14148fef7bdd0 Mon Sep 17 00:00:00 2001
From: Thomas Roeblitz <thomas.roblitz@uib.no>
Date: Fri, 5 Apr 2024 21:26:17 +0200
Subject: [PATCH 2/2] add known issue for failing Highway tests

---
 eessi-2023.06-known-issues.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eessi-2023.06-known-issues.yml b/eessi-2023.06-known-issues.yml
index 569a0d9f56..875757559e 100644
--- a/eessi-2023.06-known-issues.yml
+++ b/eessi-2023.06-known-issues.yml
@@ -16,6 +16,9 @@
   - FFTW.MPI-3.3.10-gompi-2023b:
       - issue: https://github.com/EESSI/software-layer/issues/325
       - info: "Flaky FFTW tests, random failures"
+  - Highway-1.0.3-GCCcore-12.2.0.eb:
+    - issue: https://github.com/EESSI/software-layer/issues/469
+    - info: "failing SVE test due to wrong expected value"
   - netCDF-4.9.2-gompi-2023a.eb:
       - issue: https://github.com/EESSI/software-layer/issues/425
       - info: "netCDF intermittent test failures"