Skip to content

Autoconf: Update deps m4 macros#477

Merged
marshallward merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
marshallward:m4_deps_fix
Sep 1, 2023
Merged

Autoconf: Update deps m4 macros#477
marshallward merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
marshallward:m4_deps_fix

Conversation

@marshallward
Copy link
Copy Markdown
Member

This patch updates the macros used in the ac/deps directory. It includes a bugfix in the library testing, and also bundles the macro for testing Fortran links to C libraries. Both of these macros were already in ac/m4 but unused by ac/deps.

No problems were observed in any recent FMS builds, although in principle they could have been affected by these errors. The issues were only detected when the macros were used in an unrelated project (LM3 land model).

These issues are due to code duplication in ac/m4 and ac/deps/m4. This separation was intended to draw a clear logical separation between MOM6 and its FMS dependency, and only provide what is required by each respective build. But perhaps there are some flaws in this thinking, and may warrant further discussion.

This patch updates the macros used in the `ac/deps` directory.  It
includes a bugfix in the library testing, and also bundles the macro for
testing Fortran links to C libraries.  Both of these macros were already
in `ac/m4` but unused by `ac/deps`.

No problems were observed in any recent FMS builds, although in
principle they could have been affected by these errors.  The issues
were only detected when the macros were used in an unrelated project
(LM3 land model).

These issues are due to code duplication in `ac/m4` and `ac/deps/m4`.
This separation was intended to draw a clear logical separation between
MOM6 and its FMS dependency, and only provide what is required by each
respective build.  But perhaps there are some flaws in this thinking,
and may warrant further discussion.
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 29, 2023

Codecov Report

Merging #477 (e7d9317) into dev/gfdl (72fbee0) will increase coverage by 0.00%.
The diff coverage is n/a.

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

@@            Coverage Diff            @@
##           dev/gfdl     #477   +/-   ##
=========================================
  Coverage     38.04%   38.05%           
=========================================
  Files           270      270           
  Lines         77627    77627           
  Branches      14284    14284           
=========================================
+ Hits          29536    29538    +2     
+ Misses        42775    42773    -2     
  Partials       5316     5316           

see 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@marshallward
Copy link
Copy Markdown
Member Author

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

@marshallward marshallward merged commit 9f7f86d into NOAA-GFDL:dev/gfdl Sep 1, 2023
@marshallward marshallward deleted the m4_deps_fix branch May 8, 2024 14:53
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