Skip to content

Fix to codecov file path search#1460

Merged
adcroft merged 2 commits into
mom-ocean:dev/gfdlfrom
marshallward:codecov_io_path_fix
Aug 5, 2021
Merged

Fix to codecov file path search#1460
adcroft merged 2 commits into
mom-ocean:dev/gfdlfrom
marshallward:codecov_io_path_fix

Conversation

@marshallward
Copy link
Copy Markdown
Collaborator

The codecov.io upload script appears to rely on the filepath of source
codes at compile time, and was unable to find the output when called
from .testing or the work directories. In this patch, we now move to
.testing/build/symmetric (the gcov-enabled build) before running the
uploader script.

This is possibly required after the recent security alert connected to
the codecov.io uploader script. Sadly, our coverage report failures
went undetected for several months.

The -Z flag has also been added to the script, which returns a nonzero
error code if it fails, although it would not have caught the previous issue.

The codecov.io upload script appears to rely on the filepath of source
codes at compile time, and was unable to find the output when called
from .testing or the work directories.  In this patch, we now move to
`.testing/build/symmetric` (the gcov-enabled build) before running the
uploader script.

This is possibly required after the recent security alert connected to
the codecov.io uploader script.  Sadly, our coverage report failures
went undetected for several months.

The `-Z` flag has also been added to the script, which returns a nonzero
error code if it fails.  It's not yet clear to me if a missing file
registers as a fail, but it may help to detect future problems.
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 3, 2021

Codecov Report

Merging #1460 (508fbf4) into dev/gfdl (49aa47d) will increase coverage by 29.29%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##           dev/gfdl    #1460       +/-   ##
=============================================
+ Coverage          0   29.29%   +29.29%     
=============================================
  Files             0      234      +234     
  Lines             0    70594    +70594     
=============================================
+ Hits              0    20681    +20681     
- Misses            0    49913    +49913     
Impacted Files Coverage Δ
src/user/MOM_wave_interface.F90 0.83% <0.00%> (ø)
...EOS10/gsw_t_deriv_chem_potential_water_t_exact.f90 0.00% <0.00%> (ø)
src/user/seamount_initialization.F90 0.00% <0.00%> (ø)
...ameterizations/lateral/MOM_mixed_layer_restrat.F90 42.52% <0.00%> (ø)
...eterizations/lateral/MOM_lateral_mixing_coeffs.F90 31.75% <0.00%> (ø)
src/ALE/PCM_functions.F90 50.00% <0.00%> (ø)
src/user/Neverworld_initialization.F90 0.00% <0.00%> (ø)
...nitialization/MOM_tracer_initialization_from_Z.F90 0.00% <0.00%> (ø)
src/tracer/MOM_offline_aux.F90 0.00% <0.00%> (ø)
...fig_src/drivers/solo_driver/atmos_ocean_fluxes.F90 0.00% <0.00%> (ø)
... and 224 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49aa47d...508fbf4. Read the comment docs.

@adcroft adcroft merged commit ffe1900 into mom-ocean:dev/gfdl Aug 5, 2021
@marshallward marshallward deleted the codecov_io_path_fix branch February 3, 2022 14:19
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