Skip to content

Commit

Permalink
ci: skip frameworks/17 mpi for auto/pkgconfig on Ubuntu
Browse files Browse the repository at this point in the history
The pkgconfig file in Debian and Ubuntu is definitely broken and we've
reported it upstream, but we don't really want to keep our image building
failing while we wait for that to be fixed.

Skip the auto/pkgconfig test if both: a) we're on Ubuntu, and b) the .pc
checksum matches a known-bad copy. I'm also CC'd to the bug to catch if it
gets fixed.

Bug: https://bugs.debian.org/1078026
  • Loading branch information
thesamesam committed Aug 19, 2024
1 parent 9f85279 commit ec6f66e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions test cases/frameworks/17 mpi/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ execpp = executable('execpp',

test('MPI C++', execpp, timeout: 20)

if method in ['auto', 'pkg-config']
if run_command('lsb_release', '--id', '--short', check: false).stdout().strip() == 'Ubuntu'
# https://bugs.debian.org/1078026
fs = import('fs')
message(fs.hash('/usr/lib/x86_64-linux-gnu/openmpi/lib/pkgconfig/ompi-fort.pc', 'md5'))
if run_command('md5sum', '/usr/lib/x86_64-linux-gnu/openmpi/lib/pkgconfig/ompi-fort.pc').stdout().strip() == '0892a93630e3d3359c43c58d5a82efc0'
#error('MESON_SKIP_TEST: openmpi pkgconfig file is broken on Debian/Ubuntu')
message('would skip')
endif
endif
endif

if add_languages('fortran', required : false)
fc = meson.get_compiler('fortran')
Expand Down
6 changes: 4 additions & 2 deletions test cases/frameworks/17 mpi/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"matrix": {
"options": {
"method": [
{ "val": "auto" },
{ "val": "pkg-config" },
{ "val": "auto",
"expect_skip_on_jobname": ["ubuntu"] },
{ "val": "pkg-config",
"expect_skip_on_jobname": ["ubuntu"] },
{ "val": "config-tool",
"expect_skip_on_jobname": ["fedora"] },
{
Expand Down

0 comments on commit ec6f66e

Please sign in to comment.