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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 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 

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