Skip to content

Commit

Permalink
[fdb] add v5.11.17 (#848)
Browse files Browse the repository at this point in the history
Adds fdb release 5.11.17 (backport of spack/spack#40571)
Does not run system test on tsa as a result of error 'UCX WARN transports', which is unrelated to FDB.

Co-authored-by: Dominic Hofer <[email protected]>
  • Loading branch information
victoria-cherkas and Dominic Hofer authored Oct 30, 2023
1 parent 39f9b28 commit 3d9ffbc
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
21 changes: 21 additions & 0 deletions repos/c2sm/packages/fdb/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.pkg.builtin.fdb import Fdb as SpackFdb


class Fdb(SpackFdb):
"""FDB (Fields DataBase) is a domain-specific object store developed at
ECMWF for storing, indexing and retrieving GRIB data."""

version("5.11.17",
sha256=
"375c6893c7c60f6fdd666d2abaccb2558667bd450100817c0e1072708ad5591e")

depends_on("[email protected]:", type="build", when="@5.11.6:")

def setup_build_environment(self, env):
env.set('CTEST_OUTPUT_ON_FAILURE', 1)
6 changes: 6 additions & 0 deletions test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def test_eccodes(self):
def test_fckit(self):
spack_info('fckit')

def test_fdb(self):
spack_info('fdb')

def test_fdb_fortran(self):
spack_info('fdb-fortran')

Expand Down Expand Up @@ -289,6 +292,9 @@ def test_eccodes(self):
def test_fckit(self):
spack_spec('fckit')

def test_fdb(self):
spack_info('fdb')

def test_fdb_fortran(self):
spack_spec('fdb-fortran')

Expand Down
11 changes: 11 additions & 0 deletions test/system_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,17 @@ def test_install_default(self):
spack_install_and_test('fckit')


@pytest.mark.no_tsa # FDB tests fail on tsa due to 'ucp_context'
class FdbTest(unittest.TestCase):

def test_install_5_11_17_gcc(self):
spack_install_and_test('fdb @5.11.17 %gcc')

def test_install_5_11_17_nvhpc(self):
# tests fail because compiler emitted warnings.
spack_install(f'fdb @5.11.17 %{nvidia_compiler}')


class FdbFortranTest(unittest.TestCase):

def test_install(self):
Expand Down

0 comments on commit 3d9ffbc

Please sign in to comment.