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

Update default FMS to 2023.03 in ac/deps and CI testing #515

Merged
merged 4 commits into from
Nov 7, 2023

Conversation

marshallward
Copy link
Member

This PR updates our default FMS to 2023.03 in our autoconf builds, which includes our CI testing used in GitHub Actions.

There is also an upgrade to makedep which excludes directories (using the -s flag, for "skip"; all other good letters were taken). This was required to removed the programs in test_fms which require preprocessor macros. While we could have included them, we don't want to become obliged to maintain a list of required macros.

It also fixes a bug in .testing/Makefile which prevented the "target" (or regression) build from using the FMS2 framework API.

Makedep can now exclude prescribed directories in the directory tree
used to generate the file lists.

This is required for projects which may not follow normal development
processes, such as the FMS test programs.
The target (regression) configure step did not use a --with-framework
flag and would always build with FMS1, even if FRAMEWORK was set to
fms2.  This patch adds the flag to its configure step.

This patch also does some refactoring of the MOM_ENV and MOM_FCFLAGS
setup rules.  Values common to all rules are set externally, and
additional values for individual rules are appended.

Variable syntax also follows Makefile format (spaces around =) rather
than POSIX shell (no spaces).
The default FMS build in ac/deps is updated to 2023.03.

FMS source now includes a suite of test programs which require explicit
preprocessing macros, which can complicate out makedep-based build when
those macros are not present.  To avoid this, the new "skip" flag has
been added to the makedep build.

The skip flag should not cause errors or other issues in older versions
of FMS which do not have the excluded directory (though perhaps that
could or should change in the future).
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Merging #515 (904a3ed) into dev/gfdl (d85fe73) will decrease coverage by 9.72%.
The diff coverage is n/a.

❗ Current head 904a3ed differs from pull request most recent head a475aaa. Consider uploading reports for the commit a475aaa to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #515      +/-   ##
============================================
- Coverage     47.12%   37.41%   -9.72%     
============================================
  Files            41      270     +229     
  Lines          4586    78929   +74343     
  Branches        807    14684   +13877     
============================================
+ Hits           2161    29528   +27367     
- Misses         2243    43957   +41714     
- Partials        182     5444    +5262     

see 264 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@marshallward
Copy link
Member Author

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/21254 ✔️

@marshallward marshallward merged commit 715f53a into NOAA-GFDL:dev/gfdl Nov 7, 2023
@marshallward marshallward deleted the makedep_exclude branch May 8, 2024 14:58
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