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

Fix for #56, propagating flags to fckit_test_downstream_fypp #58

Merged
merged 2 commits into from
Mar 18, 2025

Conversation

wdeconinck
Copy link
Member

This fixes #56

@codecov-commenter
Copy link

codecov-commenter commented Mar 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.17%. Comparing base (679ae3d) to head (6bac47c).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #58   +/-   ##
========================================
  Coverage    51.17%   51.17%           
========================================
  Files           58       58           
  Lines         4782     4782           
  Branches       449      449           
========================================
  Hits          2447     2447           
  Misses        2335     2335           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@DJDavies2 DJDavies2 left a comment

Choose a reason for hiding this comment

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

I think there needs to be a further update to src/tests/test_downstream_fypp/compile_flags.cmake on line 11:

set_source_files_properties( downstream_override.fypp PROPERTIES OVERRIDE_COMPILE_FLAGS "-DDOWNSTREAM_COMPILE_FLAGS='"DOWNSTREAM_OVERRIDE_COMPILE_FLAGS"' ${CMAKE_Fortran_FLAGS} ${ECBUILD_Fortran_FLAGS}" )

I.e. adding ECBUILD_Fortran_FLAGS to the end, same as for DOWNSTREAM_Fortran_FLAGS. Without this the downstream_override bit of the test fails in the same way as in the issue.

@wdeconinck
Copy link
Member Author

I have now added that. If it works, I will merge.

@wdeconinck wdeconinck merged commit ba1da1a into develop Mar 18, 2025
163 checks passed
wdeconinck added a commit that referenced this pull request Mar 25, 2025
* release/0.13.4:
  Version 0.13.4
  Expose fckit_mpi%finalize() (#59)
  Fix for #56, propagating flags to fckit_test_downstream_fypp (#58)
  Call ensurepip in fckit_install_venv (#57)
  FCKIT_VENV: Add support for python3.12 and greater (#54)
  Add support for COMPILE_OPTIONS to fckit_preprocess_fypp_sources (#55)
wdeconinck added a commit that referenced this pull request Mar 25, 2025
* release/0.13.4:
  Version 0.13.4
  Switch actions org from ecmwf-actions to ecmwf (#60)
  Expose fckit_mpi%finalize() (#59)
  Fix for #56, propagating flags to fckit_test_downstream_fypp (#58)
  Call ensurepip in fckit_install_venv (#57)
  FCKIT_VENV: Add support for python3.12 and greater (#54)
  Add support for COMPILE_OPTIONS to fckit_preprocess_fypp_sources (#55)
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.

fckit_test_downstream_fypp failure when I need to pass Fortran compiler flags
3 participants