Skip to content

Commit ce4b9f7

Browse files
committed
add more info on tests; add new possible error in debugging
1 parent f9029d2 commit ce4b9f7

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

docs/conversion/check-metadata.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ cd <casedir>
6161
<td markdown>Dimension is either invalid or not implemented in CAM</td>
6262
<td markdown>Confirm that the dimension is valid and that you selected the correct one (e.g. `vertical_layer_dimension` vs `vertical_interface_dimension`. If it's valid and still missing, consult with the other CAM SEs</td>
6363
</tr>
64+
<tr markdown>
65+
<td markdown>`parse_source.ParseInternalError: Duplicate Group variable <variable>`</td>
66+
<td markdown>You have multiple variables (with different standard names) that have the same local name</td>
67+
<td markdown>Change the local name of one (or more) of the variables in your Fortran and metadata</td>
68+
</tr>
6469
<tr markdown>
6570
<td markdown>Some other misc error</td>
6671
<td markdown>You've run into either a bug or just a weird scenario</td>

docs/development/cam-testing.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,34 @@ For running Intel tests*:
1919
env CAM_FC=intel ./test_driver.sh -f
2020
```
2121

22+
*Note: you may also have to include the environment variable `CAM_ACCOUNT` on derecho, which is your account key
23+
2224
!!! Note "test_driver.sh default"
2325
By default, `test_driver.sh` will compare against the baselines in `/glade/campaign/cesm/community/amwg/sima_baselines/latest_<CAM_FC>`. If you wish to compare against different baselines, specify the path to those baselines with the environment variable `BL_TESTDIR`
2426

2527
!!! Note "Running test_driver.sh with no baseline comparison"
2628
If you do not wish to compare to baselines, don't use the `BL_TESTDIR` environment variable and use the flag `--no-bl-compare`
2729

30+
2831
Running the script will produce a directory in your scratch space labeled `aux_sima_<CAM_FC>_<timestamp>`, where `<CAM_FC>` is the compiler you chose, and `<timestamp>` is the timestamp (starting with the date) of when the tests were started, along with a job submitted to the local batch system.
2932

3033
Inside the directory you should see an executable labeled `cs.status.*`. Running that command after the submitted job has finished will display the test results. **Everything should be labeled `PASS`. Any other label indicates that a test may have failed, and should be investigated.** Expected failures can be found in the `$CAM-SIMA/test/existing-test-failures.txt` file.
3134

32-
Finally, the tests themselves are listed in `<CAM-SIMA>/cime_config/testdefs/testlist_cam.xml`. Any files that need to be included in order for the tests to run properly are located in `<CAM-SIMA/cime_config/testdefs/testmods_dirs/cam/outfrq_XXX`, where `XXX` is the name of the test. Additional information on the CIME testing system, which is what this testing infrastructure is built on, can be found [online here](https://esmci.github.io/cime/versions/master/html/users_guide/testing.html).
35+
#### Inspecting test output
36+
If you have an unexpected FAIL or PEND or DIFF, you will want to investigate further. Start by navigating into the test directory, for example:
37+
```
38+
cd SMS_Ln9.ne5pg3_ne5pg3_mg37.FTJ16.derecho_intel.cam-outfrq_se_cslam.GC.aux_sima_intel_20241223100339
39+
```
40+
41+
If you have familiarity with CAM cases, the setup and directory structure will be familiar.
42+
43+
- A good place to start is the `TestStatus.log` file, which will include almost all test output (including build failures and information on where to look for other failures)
44+
- Build logs for each component are in the `bld` directory. If you look at the filenames and one or more doesn't have the `.gz` end tag, those are likely culprits for having the error.
45+
- Run logs are in the `run` directory. Similar to the build logs, log files that aren't zipped up are candidates for containing errors. The `atm.log.*` and `cesm.log.*` files are likely going to contain the information about the error you're seeking.
46+
- Refer to the procedures for [checking metadata](../conversion/check-metadata.md) and [running CAM-SIMA](../conversion/run-cam-sima.md) for additional debugging help
3347

34-
*Note: you may also have to include the environment variable `CAM_ACCOUNT` on derecho, which points to your account key
48+
#### Additional test info
49+
The tests themselves are listed in `<CAM-SIMA>/cime_config/testdefs/testlist_cam.xml`. Any files that need to be included in order for the tests to run properly are located in `<CAM-SIMA/cime_config/testdefs/testmods_dirs/cam/outfrq_XXX`, where `XXX` is the name of the test. Additional information on the CIME testing system, which is what this testing infrastructure is built on, can be found [online here](https://esmci.github.io/cime/versions/master/html/users_guide/testing.html).
3550

3651
### Archiving baselines
3752
If your PR changes answers, then after you have run the tests, merged your PR, and created a tag (see [tag workflow](git-basics.md#tagging-a-commit)), you will need to archive your baselines for the next person.

0 commit comments

Comments
 (0)