NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Back to Results
Component Level Testing in a Hierarchical ArchitectureThe Goddard Earth Observing System (GEOS) is an Earth system model consisting of a large suite of individual model components that can be coupled in a flexible manner to investigate a variety of Earth science issues. Specific GEOS model configurations are composed as a hierarchical collection of components based on the Earth System Modeling Framework (ESMF).

Regression testing of GEOS is currently limited to (1) full system tests that are poor at isolating specific defects and (2) a suite of unit tests which have very limited coverage. As part of our approach to improve upon the current testing situation, we have prototyped the capability to perform regression tests on individual GEOS components by leveraging and extending existing checkpoint/restart capabilities.

In our implementation, each ESMF component has 3 states: Import (what it needs to run), Export (which it needs to provide to other components), and Internal (the component state proper). By capturing, Import, Export and Internal states for a given component during a ull run of GEOS, a generic driver can then rerun the component offline and compare expected exports with those that have been saved.

The hierarchical structure of GEOS introduces an interesting wrinkle when trying to test components that in turn drive interacting child components. To fully isolate a parent component, we use the approach of software mocks, in which the exports of children are also saved during the initial capture run of GEOS. Then when testing the parent component, the children components are replaced by a generic mock component that produces exports from the previously saved data and ensures that that all interdependencies among children components are satisfied.
Document ID
20230016232
Acquisition Source
Goddard Space Flight Center
Document Type
Presentation
Authors
Tom Clune
(Goddard Space Flight Center Greenbelt, United States)
Natalie Patten
(Science Systems and Applications (United States) Lanham, Maryland, United States)
Ben Auer
(Science Systems and Applications (United States) Lanham, Maryland, United States)
Arlindo da Silva
(Goddard Space Flight Center Greenbelt, United States)
Date Acquired
November 8, 2023
Subject Category
Earth Resources and Remote Sensing
Meeting Information
Meeting: Workshop on Correctness and Reproducibility for Climate and Weather Software
Location: Boulder, CO
Country: US
Start Date: November 9, 2023
End Date: November 10, 2023
Sponsors: National Center for Atmospheric Research
Funding Number(s)
WBS: 802678.02.80.01.01
CONTRACT_GRANT: NNG17HP01C
Distribution Limits
Public
Copyright
Portions of document may include copyright protected material.
Technical Review
NASA Peer Committee
No Preview Available