MetOffice / MetOffice/fab

Failing tests when gfortran is not available

Open
#443 1 comment 0 reactions 0 assignees View on GitHub
bug Test suite
Dominant language
Python
Stars
9
Forks
9
Avg merge
12d 12h
Merged PRs (30d)
2

Description

While working on #414 and debugging some failing tests, I realised that we have at least 13 tests that require gfortran to be available (or maybe any other compiler, I didn't check the details).

We have gfortran in our CI, so we don't see that problem. But when I artificially disabled gfortran (install a failing gfortran script in your `$PATH` :)), I get 13 test failures.

Ideally, all these tests should be fixed to use compiler stubs (which can mark them as being available).

Contributor guide

Open the contributing guide

Research direction

Start by running the test suite with gfortran unavailable, as described in the issue, and identify the 13 failing tests. Inspect how those tests detect compiler availability and replace their dependency on a real compiler with compiler stubs. Done means the affected tests pass when gfortran is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, testing-qa
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.