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 the mpaso-conservation_check testdef #6659

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

jonbob
Copy link
Contributor

@jonbob jonbob commented Oct 2, 2024

Add sed commands to modify env_archive.xml to correctly test the conservation am. As is, the test runs and makes the hist.am.conservationCheck files just fine, but does not run cprnc on them and include its results in the TestStatus.

[BFB]

@jonbob jonbob added mpas-ocean BFB PR leaves answers BFB Testing Anything related to unit/system tests labels Oct 2, 2024
@jonbob jonbob requested review from mark-petersen and xylar October 2, 2024 21:12
@jonbob jonbob self-assigned this Oct 2, 2024
Copy link

github-actions bot commented Oct 2, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://E3SM-Project.github.io/E3SM/pr-preview/pr-6659/
on branch gh-pages at 2024-10-02 21:14 UTC

Copy link
Contributor

@xylar xylar left a comment

Choose a reason for hiding this comment

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

I successfully ran the test:

./create_test --wait --walltime=1:00:00 ERS_Ld5_D.T62_oQU240.GMPAS-IAF.chrysalis_intel.mpaso-conservation_check

I see the modified mpaso section in env_archive.xml looks as expected:

    <comp_archive_spec compclass="ocn" compname="mpaso">
      <rest_file_extension>rst</rest_file_extension>
      <rest_file_extension>rst.am.timeSeriesStatsMonthly</rest_file_extension>
      <hist_file_extension>hist.am.conservationCheck\..*\.nc$</hist_file_extension>
      <rest_history_varname>unset</rest_history_varname>
      <rpointer>
        <rpointer_file>rpointer.ocn$NINST_STRING</rpointer_file>
        <rpointer_content>$MPAS_DATENAME</rpointer_content>
      </rpointer>
      <test_file_names>
        <tfile disposition="copy">rpointer.ocn</tfile>
        <tfile disposition="copy">casename.mpaso.rst.1976-01-01_00000.nc</tfile>
        <tfile disposition="copy">casename.mpaso.rst.am.timeSeriesStatsMonthly.1976-01-01_00000.nc</tfile>
        <tfile disposition="move">casename.mpaso.hist.am.conservationCheck.1976-01-01.nc</tfile>
      </test_file_names>
    </comp_archive_spec>

I also see that the outputs from the conservation check are successfully being compared:

$ head /lcrc/group/e3sm/ac.xasay-davis/scratch/chrys/ERS_Ld5_D.T62_oQU240.GMPAS-IAF.chrysalis_intel.mpaso-conservation_check.20241008_095746_8rndms/run/ERS_Ld5_D.T62_oQU240.GMPAS-IAF.chrysalis_intel.mpaso-conservation_check.20241008_095746_8rndms.mpaso.hist.am.conservationCheck.0001-01-01.nc.base.cprnc.out
 file 1=
 /lcrc/group/e3sm/ac.xasay-davis/scratch/chrys/ERS_Ld5_D.T62_oQU240.GMPAS-IAF.ch
 rysalis_intel.mpaso-conservation_check.20241008_095746_8rndms/run/ERS_Ld5_D.T62
 _oQU240.GMPAS-IAF.chrysalis_intel.mpaso-conservation_check.20241008_095746_8rnd
 ms.mpaso.hist.am.conservationCheck.0001-01-01.nc.base
 file 2=
 /lcrc/group/e3sm/ac.xasay-davis/scratch/chrys/ERS_Ld5_D.T62_oQU240.GMPAS-IAF.ch
 rysalis_intel.mpaso-conservation_check.20241008_095746_8rndms/run/ERS_Ld5_D.T62
 _oQU240.GMPAS-IAF.chrysalis_intel.mpaso-conservation_check.20241008_095746_8rnd
 ms.mpaso.hist.am.conservationCheck.0001-01-01.nc.rest


$ tail /lcrc/group/e3sm/ac.xasay-davis/scratch/chrys/ERS_Ld5_D.T62_oQU240.GMPAS-IAF.chrysalis_intel.mpaso-conservation_check.20241008_095746_8rndms/run/ERS_Ld5_D.T62_oQU240.GMPAS-IAF.chrysalis_intel.mpaso-conservation_check.20241008_095746_8rndms.mpaso.hist.am.conservationCheck.0001-01-01.nc.base.cprnc.out
               and      0 had differences in fill patterns
               and      0 had different dimension sizes
               and      0 had different data types
 A total number of      5 fields could not be analyzed
 A total number of      0 time-varying fields on file 1 were not found on file 2.
 A total number of      0 time-constant fields on file 1 were not found on file 2.
 A total number of      0 time-varying fields on file 2 were not found on file 1.
 A total number of      0 time-constant fields on file 2 were not found on file 1.
  diff_test: the two files seem to be IDENTICAL 

jonbob added a commit that referenced this pull request Oct 10, 2024
Fix the mpaso-conservation_check testdef

Add sed commands to modify env_archive.xml to correctly test the
conservation am. As is, the test runs and makes the
hist.am.conservationCheck files just fine, but does not run cprnc on
them and include its results in the TestStatus.

[BFB]
@jonbob
Copy link
Contributor Author

jonbob commented Oct 10, 2024

Passes:

  • ERP_Ld3.ne30pg2_r05_IcoswISC30E3r5.WCYCL1850.chrysalis_intel.allactive-pioroot1
  • ERS_Ld5_D.T62_oQU240.GMPAS-IAF.chrysalis_intel.mpaso-conservation_check

merged to next

@jonbob jonbob merged commit 5b923fa into master Oct 11, 2024
5 checks passed
@jonbob jonbob deleted the jonbob/mpaso/fix-conservation-test branch October 11, 2024 15:57
@jonbob
Copy link
Contributor Author

jonbob commented Oct 11, 2024

merged to master and expected DIFF blessed (for new required baseline from adding the conservationCheck am file to testing)

xylar added a commit to xylar/compass that referenced this pull request Oct 26, 2024
This merge updates the E3SM-Project submodule from [727ad81](https://github.com/E3SM-Project/E3SM/tree/727ad81) to [1442143](https://github.com/E3SM-Project/E3SM/tree/1442143).

This update includes the following MPAS-Ocean and MPAS-Frameworks PRs (check mark indicates bit-for-bit with previous PR in the list):
- [ ]  (ocn) E3SM-Project/E3SM#6509
- [ ]  (ocn) E3SM-Project/E3SM#6508
- [ ]  (fwk) E3SM-Project/E3SM#6575
- [ ]  (ocn) E3SM-Project/E3SM#6590
- [ ]  (fwk) E3SM-Project/E3SM#6643
- [ ]  (ocn) E3SM-Project/E3SM#6656
- [ ]  (ocn) E3SM-Project/E3SM#6672
- [ ]  (ocn) E3SM-Project/E3SM#6659
- [ ]  (ocn) E3SM-Project/E3SM#6497
- [ ]  (ocn) E3SM-Project/E3SM#6485
- [ ]  (ocn) E3SM-Project/E3SM#6566
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BFB PR leaves answers BFB mpas-ocean Testing Anything related to unit/system tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants