Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Every ACME E3SM developer should be able to run the acmee3sm_developer test suite on at least one machine to which they have convenient access so that they can test their changes before submitting a pull request.

You have to first If you're not developing on a supported machine, follow the instructions in Installing the ACME Model E3SM on a cluster or HPC platform.  You can also use the Singularity container

Table of Contents

Adding more restart files.

The tests needs restart files not normally used in model runs.

  1. Populate restart files in to the inputdata directory (these do not get downloaded automatically by the tools as of beta10)  
    1. cd $ACMEHOME$E3SMHOME/inputdata * svn co https://svn-ccsm-inputdata.cgd.ucar.edu/trunk/inputdata/ccsm4_init

Installing individual tests

  1. Once the model is installed, you can immediately run individual tests.
    1. cd $ACMEHOME$E3SMHOME/cime/scripts
    2. ./create_test ERS_D.f10_f10.ICLM45BGC

Installing test baselines with first run of a test suite.

Baselines are similar to the input data directory in that there should ideally be one of them per machine, per compiler that all the ACME E3SM developers on that machine can read from.  There only needs to be, for example, one baseline made from ACME E3SM v0.2 and the pgi compiler on Titan.   The data sizes  can get large because history files are kept for all components for dozens of (short) runs.  All ACME E3SM developers on Titan can then compare against those baselines if they expect their changes to be BFB.

Baselines should be updated when an answer-changing or namelist-changing modification has been made to master.  That should be obvious to anyone following github comments but we may need another way to broadcast it.  Local developers then have to know the new path for the baseline to compare against.  How this will be managed is all still being worked out.Note: Baselines will accumulate over time so there needs to be some rule for how many to keep.  CSEG has settled on the 5 most recent (beta) tagsAll baselines have a name associated with name, so the full baseline path will be $BASELINE_ROOT/$baseline_name. The default name will be the current branch. Machines for which we maintain baselines as part of the nightly process should have up-to-date baselines for next and master branches.

The first run of acme_developer can generate baselines, all subsequent runs should compare against these baselines

  1. cd <ACME>/cime/scripts
  2. ./create_test acme_developer  -g-g \[ -b chg_baseline_name \] \[--wait\]
  3. cd <testroot>
  4. <ACME><E3SM>/cime/scripts/acmeTools/wait_for_tests */TestStatus
    1. Note: The wait_for_tests script requires a minimum python version number of 2.7.
  5. All tests should pass

Filter by label (Content by label)
showLabelsfalse
max5
spacesDocs
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "testing" , "kb-how-to-article" ) and type = "page" and space = "Docs"
labelstesting kb-how-to-article

Page Properties
hiddentrue


 
Related issues