2022/4/8: Original
2022/6/17: Revised to stress importance of not bundling features in a single PR
...
Coupled model: B-case runs (~100 years) for WC, cryosphere and BGC configurations
Component models: F, I and G cases, typically much shorter (e.g. 5 year F case with cyclic year 2010 forcing)
Updated periodically when climate changes are integrated, or monthly ( to check for unintended changes)
New features will be evaluated with respect to these reference solutions, with documentation on the import metrics
Note: E3SM Reference solutions and related documentation not yet ready!
Section 1: New Feature Request Process and Documentation Requirements
...
Before writing code: Complete the New Feature Overview Document. Include, as appropriate:
High-level description of code changes and/or new code, an overview of the design, infrastructure changes
Expected improvements and how these will be demonstrated
Describe needed updates to E3SM documentation
Expected impacts on computational performance and mass/energy budgets.
If relevant: describe papers that will be published
Before writing code: Document Review:
Reviewed by component lead or their delegate. Reviewer should:
Review document for completeness
Determine if there is sufficient benefit to E3SM to justify the E3SM integration and future maintenance costs.
For features not needed by the E3SM SFA, but which may be needed to support other DOE BER missions, the component lead should consult with E3SM leadership.
Determine if review by performance and infrastructure groups if needed and ensure they are done.
discourage and/or flag use of advanced language features or unnecessary complexity that may not be supported well by compilers or may cause performance degradation
Create one confluence page per document to allow for discussion during the review process
Confluence space for all new feature overview documents and their approval status.
After new feature is approved, begin work in an E3SM fork, following Development Getting Started Guide
Features which are not approved but are needed for other reasons can be maintained by the developer on their E3SM fork.
When work is completed:
Revise overview document to show improvements as originally proposed in overview document, and document simulation results from new feature PR guidelines. Include links to as yet to be constructed results archiving system
Submit PR with links to documentation, follow new feature PR process.
...
PR’s are divided into 4 categories which require different levels of documentation and simulation results before a PR can be submitted.
BFB : Bit(bit-for-bit (): BFB ) changes which do not include stealth features.
Roundoff: These are usually infrastructure and code cleanup changes, compiler changes and system updates which introduce changes for which strong evidence can be provided that the changes do not effect the simulated climate.
Stealth Features: These are new features that are turned off by default and BFB with the previous code when turned off.
Stealth features that are not BFB when turned off should be split into two PRs.
Climate Changing: PRs that result in larger than roundoff changes. These include new features turned on by default and also changes to default configurations which turn on stealth features.
...
New and stealth features: dont submit PR until Section1 approval of overview document
Submit the PR to the E3SM github site following Development Getting Started Guide . Links to the material outlined in Section 2 above should be in the first comment after the PR description.
For code with potential performance impacts: Performance group lead or delegate reviews supplied PACE data.
It is important not to bundle multiple features or fixes into a single PR.
Climate Changing PRs (new features and bug fixes)
Simulation group lead approves based on climate changes
Simulation group lead (or delegate) will be assigned as a reviewer as well as appropriate component lead and then verifies:
source code review was completed
component lead also approves
PR includes test (or is covered by existing tests)
climate changing evaluation process (from Section 2) completed and results archived
Updates main branch reference B case as needed.
PR contains a single feature ( to ensure multiple features are tested independently)
Stealth features
Component lead (or delegate) is assigned as a reviewer and verifies:
source code review
PR includes appropriate test
stealth-feature evaluation process (from Section 2) completed and results archived
Expanded BFB tests were run with feature turned on
PR contains a single feature ( to ensure multiple features are tested independently)
Roundoff level PRs
Component lead (or delegate) verifies:
source code review was completed
evidence to support roundoff level tests is sufficient, if not, follow component new feature climate evaluation procedures
no stealth features
BFB
component lead (or delegate) be assigned as a reviewer verifies:
source code review was completed
no stealth features
...