Skip to content

Conversation

jgfouca
Copy link
Member

@jgfouca jgfouca commented Jul 28, 2025

It was dropping additional arguments

Fixes #7554

[BFB]

It was dropping additional arguments

[BFB]
@jgfouca jgfouca requested review from bartgol and mahf708 July 28, 2025 20:30
@jgfouca jgfouca self-assigned this Jul 28, 2025
@jgfouca
Copy link
Member Author

jgfouca commented Jul 28, 2025

Dang, it looks like the np>1 tests do not work!

@mahf708
Copy link
Contributor

mahf708 commented Jul 28, 2025

You mean they do NOT pass, but they do work, right?

And yep, that's precisely why we need those tests, because some of these diags are rank sensitive and can easily break ;)


The following tests FAILED:
	230 - zonal_avg_np2 (Failed)
	231 - zonal_avg_np3 (Failed)
	232 - zonal_avg_np4 (Failed)
CMake Error at /home/runner/_work/E3SM/E3SM/components/eamxx/cmake/ctest_script.cmake:76 (message):
  Test had fails

@jgfouca jgfouca requested a review from cjvogl July 28, 2025 21:08
@jgfouca
Copy link
Member Author

jgfouca commented Jul 28, 2025

@mahf708 , correct. They run but do not pass. I have added @cjvogl

@mahf708
Copy link
Contributor

mahf708 commented Jul 28, 2025

If you prefer, we can disable the np>1 tests for zonal_avg and make an issue to reenable them later. They never worked before. I do intend to introduce np>1 tests for other diagnostics (e.g., #7551). I can also take a look into the zonal_avg fails later (no rush to fix them right away)

@mahf708
Copy link
Contributor

mahf708 commented Jul 28, 2025

Actually, it shouldn't be a hard fix. Should I push? I think the scaled area inside zonal avg needs a comm-wide call for a sum to rescale it. (See horiz_avg for an example of how to do that)

@jgfouca
Copy link
Member Author

jgfouca commented Jul 28, 2025

@mahf708 , yes, plz push a fix if you have one.

@mahf708
Copy link
Contributor

mahf708 commented Jul 28, 2025

@mahf708 , yes, plz push a fix if you have one.

I take it back... I don't have an immediate fix, but I will look harder...

@cjvogl
Copy link
Contributor

cjvogl commented Jul 28, 2025

The "now uncovered" zonal average issue with np>1 is in the unit test itself (and thankfully not the diagnostic). I can migrate the fix from #7481 here or I'm happy with the approach of disabling the zonal average np>1 checks in this PR (and I'll re-enable them in #7481).

@jgfouca
Copy link
Member Author

jgfouca commented Jul 28, 2025

@cjvogl , I don't want to have to remember to re-enable something, so if you can migrate the fix (assuming it's small) that would be great.

@mahf708 mahf708 marked this pull request as draft July 29, 2025 00:49
@mahf708 mahf708 self-requested a review July 29, 2025 00:50
@mahf708 mahf708 marked this pull request as ready for review July 29, 2025 00:50
@mahf708 mahf708 added the CI: approved Allow gh actions PR testing on ghci-snl-* machines label Jul 29, 2025
@jgfouca
Copy link
Member Author

jgfouca commented Jul 29, 2025

Thanks, @cjvogl !

@jgfouca jgfouca added the EAMxx Issues related to EAMxx label Jul 29, 2025
jgfouca added a commit that referenced this pull request Jul 29, 2025
Fix the CreateDiagTest function

It was dropping additional arguments

Fixes #7554

[BFB]
@jgfouca jgfouca merged commit e251a8c into master Jul 29, 2025
24 of 37 checks passed
@jgfouca jgfouca deleted the jgfouca/fix_diag_cmake branch July 29, 2025 18:39
@cjvogl
Copy link
Contributor

cjvogl commented Jul 30, 2025

Thanks, @cjvogl !

Thanks for catching the CreateDiagTest bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: approved Allow gh actions PR testing on ghci-snl-* machines EAMxx Issues related to EAMxx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EAMxx: enable multi-rank testing for diagnostics
4 participants