Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stricter match condition for _fail strings #64

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

cresswellp
Copy link
Contributor

ecbuild_check_fortran triggers a string match for "_fail" against a filename held in ecbuild, which can cause an unintended match if the path to the ecbuild installation contains this string. This is easily done in an IFS build if the branch name contains this string, because the cloned ecbuild will sit inside a directory named after the IFS branch, e.g. .../user_cycle_fix_failures/source/ecbuild/...

The result is that any Fortran feature being checked for is accidentally removed from the list of features to check, resulting in an empty feature list and an instant build failure:
CRITICAL - [Fortran] Expected to find only one feature. Found 0 --

Making the match condition stricter against the files it's actually looking for solves the problem.

Copy link
Member

@wdeconinck wdeconinck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cresswellp for this bug fix! Sorry it escaped my attention!

@wdeconinck wdeconinck merged commit 5b95b66 into ecmwf:develop Oct 11, 2024
7 of 8 checks passed
wdeconinck added a commit that referenced this pull request Nov 18, 2024
* gh/release/3.9.0:
  Version 3.9.0
  Add downstream ci (#72)
  Fix ecbuild_disable_unused_feature
  Add workflow to check release version is correct (#54)
  Add ecbuild_override_compiler_flags macro
  Add utility to initialise overrideable compiler flags
  Add utility to purge compiler flags for a given language
  Add tests according to Github issue #65
  Enable distinction between enabled/disabled features
  Update ci action to v2 (#68)
  Stricter match condition for _fail strings (#64)
  CPP out LOC calls for NAG.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants