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

Testing: Reduce output for diagnostic errors #1245

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

marshallward
Copy link
Collaborator

This patch fixes an issue with excessive output from the new diagnostic
test.

Previously, the grep based output used to detect a new diagnostic was
send to stdout, which produced enormous amounts of output. This patch
moves that output to /dev/null. It also trims the output from any
diagnostic regressions to the first 20 lines.

This patch also replaces a few unnecessarily recursive deletes (rm -rf)
with non-recursive delets (rm -f).

This patch fixes an issue with excessive output from the new diagnostic
test.

Previously, the `grep` based output used to detect a new diagnostic was
send to stdout, which produced enormous amounts of output.  This patch
moves that output to /dev/null.  It also trims the output from any
diagnostic regressions to the first 20 lines.

This patch also replaces a few unnecessarily recursive deletes (rm -rf)
with non-recursive delets (rm -f).
@codecov-io
Copy link

Codecov Report

Merging #1245 (7778e46) into dev/gfdl (42a9eaf) will decrease coverage by 0.05%.
The diff coverage is 32.03%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl    #1245      +/-   ##
============================================
- Coverage     46.08%   46.03%   -0.06%     
============================================
  Files           214      224      +10     
  Lines         69399    71047    +1648     
============================================
+ Hits          31984    32704     +720     
- Misses        37415    38343     +928     
Impacted Files Coverage Δ
...g_src/external/GFDL_ocean_BGC/FMS_coupler_util.F90 0.00% <0.00%> (ø)
...fig_src/external/GFDL_ocean_BGC/generic_tracer.F90 0.00% <0.00%> (ø)
...c/external/GFDL_ocean_BGC/generic_tracer_utils.F90 0.00% <0.00%> (ø)
config_src/external/ODA_hooks/kdtree.f90 0.00% <0.00%> (ø)
config_src/external/ODA_hooks/ocean_da_core.F90 0.00% <0.00%> (ø)
config_src/external/ODA_hooks/ocean_da_types.F90 0.00% <0.00%> (ø)
config_src/external/ODA_hooks/write_ocean_obs.F90 0.00% <0.00%> (ø)
config_src/solo_driver/MESO_surface_forcing.F90 0.00% <0.00%> (ø)
config_src/solo_driver/user_surface_forcing.F90 0.00% <0.00%> (ø)
src/ALE/MOM_regridding.F90 31.47% <0.00%> (-0.17%) ⬇️
... and 229 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 9446236...7778e46. Read the comment docs.

Copy link
Collaborator

@adcroft adcroft left a comment

Choose a reason for hiding this comment

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

Brilliant!

@adcroft adcroft merged commit 543144f into mom-ocean:dev/gfdl Nov 9, 2020
@marshallward marshallward deleted the make_diag_minlog branch January 18, 2021 12:43
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.

3 participants