Skip to content

Commit 8a08b00

Browse files
committed
Merge branch 'develop' of https://github.com/ufs-community/ufs-weather-model into ideal-periodic
2 parents b9c8de3 + 241dd8e commit 8a08b00

File tree

459 files changed

+44052
-61195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

459 files changed

+44052
-61195
lines changed

.github/linters/.python-lint

Lines changed: 473 additions & 0 deletions
Large diffs are not rendered by default.

.github/linters/.yaml-lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
3+
extends: default
4+
5+
rules:
6+
braces:
7+
level: warning
8+
max-spaces-inside: 1
9+
brackets:
10+
level: warning
11+
max-spaces-inside: 1
12+
colons:
13+
level: warning
14+
commas: disable
15+
comments: disable
16+
comments-indentation: disable
17+
document-start: disable
18+
empty-lines:
19+
level: warning
20+
hyphens:
21+
level: warning
22+
indentation:
23+
level: warning
24+
indent-sequences: consistent
25+
line-length: disable
26+
truthy: disable
27+
trailing-spaces: disable
28+

.github/pull_request_template.md

Lines changed: 125 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,146 @@
11
<!-- INSTRUCTIONS:
2-
- Please fill out all sections of this PR and complete the checklist below
3-
- Please be as descriptive as possible, this is really important.
4-
- Please "fill in" checkboxes. Use [X] for a filled in checkbox or leave it [ ] for an empty checkbox
5-
- Please use github markup as much as possible in linking
6-
i.e.:
7-
* Linking to UFSWM PR's and issues add - #<pr/issue number>
8-
* Linking to a subcomponent PR and issues add - <Group>/<Fork>/pull/<number> or - <Group>/<Fork>/issues/<number>
2+
- PLEASE READ/FOLLOW THE DIRECTIONS IN EACH SECTION
3+
- Complete the 'Commit Queue Requirements' below
4+
- Please use github markup as much as possible (https://docs.github.com/en/get-started/writing-on-github)
5+
- Please leave your PR in a draft state until all underlying work is completed.
96
-->
107
## Commit Queue Requirements:
11-
<!-- Please note: PRs will be scheduled in the Commit Queue in the order received and only after all
12-
pre-requisite testing is complete and all PR requirements (e.g. Issues created and noted, Subcomponent
13-
PRs reviewed and accepted) are met. -->
8+
<!--
9+
- Please complete the items that follow this.
10+
- Please "check off" completed items. Use [X] for a filled in checkbox or leave it [ ] for an empty checkbox
11+
- Your PR will not be considered until all requirements are met.
12+
- THIS IS YOUR RESPONSIBILITY
13+
-->
1414
- [ ] Fill out all sections of this template.
1515
- [ ] All sub component pull requests have been reviewed by their code managers.
16-
- [ ] Run the full RT suite (compared to current baselines) on either Hera/Derecho/Hercules AND have committed the log to my PR branch.
17-
- [ ] Add list of all failed regression tests in "Regression Tests" section.
18-
19-
## PR Information
16+
- [ ] Run the full Intel+GNU RT suite (compared to current baselines) on either Hera/Derecho/Hercules
17+
- [ ] Commit 'test_changes.list' from previous step
18+
---
19+
## Description:
20+
<!--
21+
Please provide a detailed verbose description of what this PR does
22+
-->
2023

21-
### Description
22-
<!-- Provide a detailed description of what this PR does in the space provided below-->
2324

24-
### Commit Message
25+
### Commit Message:
2526
<!--
26-
Please provide the following concise information:
27-
Description of all changes - 1 line
28-
Please list all individual issue titles addressed with github links at the end in parenthesis (using #<number> or <group>/<fork>/issues/<number>).
27+
Please provide concise information for The UFS-WM and/or each sub-component:
28+
Please delete what is not needed.
2929
-->
30+
```
31+
* UFSWM -
32+
* AQM -
33+
* CDEPS -
34+
* CICE -
35+
* CMEPS -
36+
* CMakeModules -
37+
* FV3 -
38+
* ccpp-physics -
39+
* atmos_cubed_sphere -
40+
* GOCART -
41+
* HYCOM -
42+
* MOM6 -
43+
* NOAHMP -
44+
* WW3 -
45+
* fire_behavior
46+
* stochastic_physics -
47+
```
3048

49+
### Priority:
50+
<!--
51+
Please provide the priority you would prefer this pull request to have.
52+
* Critical Bugfix: Model is wrong.
53+
* High: Time-sensitive project.
54+
* Normal.
55+
Please delete the ones that are not applicable
56+
-->
57+
* Critical Bugfix: Reason
58+
* High: Reason
59+
* Normal
3160

32-
### Priority
33-
- [ ] Critical Bugfix (This PR contains a critical bug fix and should be prioritized.)
34-
- [ ] High (This PR contains a feature or fix needed for a time-sensitive project (eg, retrospectives, implementations))
35-
- [ ] Normal
36-
37-
### Blocking Dependencies
38-
<!-- If there are any PR's that are needed to be completed before this one, please add links
39-
to them here -->
61+
## Git Tracking
62+
### UFSWM:
63+
<!--
64+
Please add the UFS-WM github issue here if there is one
65+
Please delete the one that is not applicable.
66+
-->
67+
* Closes #
68+
* None
4069

41-
### Git Issues Fixed By This PR
42-
<!-- Example: - Closes #1698 or - Closes NOAA-EMC/fv3atm/issues/729 -->
70+
### Sub component Pull Requests:
71+
<!--
72+
Please provide a list of sub-components involved with this pull request.
73+
Please provide links to the sub-component pull requests as shown below.
74+
Please delete what is not needed.
75+
Example:
76+
* FV3: NOAA-EMC/fv3atm#734
77+
* ccpp-physics: ufs-community/ccpp-physics#33
78+
* WW3: NOAA-EMC/WW3#321
79+
-->
80+
* AQM:
81+
* CDEPS:
82+
* CICE:
83+
* CMEPS:
84+
* CMakeModules:
85+
* FV3:
86+
* ccpp-physics:
87+
* atmos_cubed_sphere:
88+
* GOCART:
89+
* HYCOM:
90+
* MOM6:
91+
* NOAHMP:
92+
* WW3:
93+
* fire_behavior:
94+
* stochastic_physics:
95+
* None
4396

97+
### UFSWM Blocking Dependencies:
98+
<!--
99+
If there are any UFSWM PR's that are needed to be completed before this one, please add links
100+
to them here
101+
Please delete what is not needed.
102+
-->
103+
* Blocked by #
104+
* None
44105

106+
---
45107
## Changes
46-
47-
### Subcomponent (with links)
48-
<!-- (add links to subcomponent PR's here) -->
49-
<!-- Example:
50-
[X] FV3
51-
- NOAA-EMC/fv3atm/pull/734
52-
- NOAA-EMC/fv3atm/pull/735
108+
### Regression Test Changes (Please commit test_changes.list):
109+
<!--
110+
Please let us know if this PR creates new baselines, changes baselines or not.
111+
Please delete what is not needed.
112+
Please make sure you have properly submitted test_changes.list
53113
-->
54-
- [ ] AQM
55-
- [ ] CDEPS
56-
- [ ] CICE
57-
- [ ] CMEPS
58-
- [ ] CMakeModules
59-
- [ ] FV3
60-
- [ ] GOCART
61-
- [ ] HYCOM
62-
- [ ] MOM6
63-
- [ ] NOAHMP
64-
- [ ] WW3
65-
- [ ] stochastic_physics
66-
- [ ] none
114+
* PR Adds New Tests/Baselines.
115+
* PR Updates/Changes Baselines.
116+
* No Baseline Changes.
67117

68-
### Input data
69-
- [ ] No changes are expected to input data.
70-
- [ ] Changes are expected to input data:
71-
- [ ] New input data.
72-
- [ ] Updated input data.
73-
74-
### Regression Tests:
75-
- [ ] No changes are expected to any regression test.
76-
- [ ] Changes are expected to the following tests:
77-
<details><summary>FAILED REGRESSION TESTS</summary>
78-
<!-- List failed regression tests here or add "None" -->
79-
80-
</details>
118+
### Input data Changes:
119+
<!--
120+
If there are any changes to input-data for a test, please provide information here.
121+
Please delete what is not needed.
122+
-->
123+
* None.
124+
* New input data.
125+
* Updated input data.
81126

82-
### Libraries
83-
<!-- Library updates take time. If this PR needs updates to libraries, please make sure to accomplish the following tasks -->
84-
- [ ] Not Needed
85-
- [ ] Needed
86-
- [ ] Create separate issue in [JCSDA/spack-stack](https://github.com/JCSDA/spack-stack) asking for update to library. Include library name, library version.
87-
- [ ] Add issue link from JCSDA/spack-stack following this item <!-- for example: "- JCSDA/spack-stack/issue/1757" -->
127+
### Library Changes/Upgrades:
128+
<!-- Library updates take time. Please provide library and version information here.
129+
** SPECIAL INSTRUCTIONS **
130+
If this PR needs updates to libraries please make sure to accomplish the following tasks:
131+
- Create separate issue in (https://github.com/JCSDA/spack-stack) asking for update to library. Include library name, library version.
132+
- Add issue link from JCSDA/spack-stack following this item <!-- for example: "* JCSDA/spack-stack#1757"
88133
134+
Please delete what is not needed.
135+
-->
136+
* Required
137+
* Library names w/versions:
138+
* Git Stack Issue (JCSDA/spack-stack#)
139+
* No Updates
140+
141+
---
89142
<!-- STOP!!! THE FOLLOWING IS FOR CODE MANAGERS ONLY. PLEASE DO NOT FILL OUT -->
90-
### Testing Log:
143+
## Testing Log:
91144
- RDHPCS
92145
- [ ] Hera
93146
- [ ] Orion
@@ -98,8 +151,5 @@ Please list all individual issue titles addressed with github links at the end i
98151
- WCOSS2
99152
- [ ] Dogwood/Cactus
100153
- [ ] Acorn
101-
- CI
102-
- [ ] Completed
103-
- opnReqTest
104-
- [ ] N/A
105-
- [ ] Log attached to comment
154+
- [ ] CI
155+
- [ ] opnReqTest (complete task if unnecessary)

.github/workflows/aux.yml

Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
name: Helpers
1+
name: Repo Check
22
on:
3-
workflow_run:
4-
workflows: ["Pull Request Tests"]
5-
types:
6-
- requested
3+
#workflow_run:
4+
# workflows: ["Pull Request Tests"]
5+
# types:
6+
# - requested
7+
pull_request:
8+
branches:
9+
- develop
710
env:
811
app: Accept:application/vnd.github.v3+json
912
base_url: $GITHUB_API_URL/repos/$GITHUB_REPOSITORY/actions/runs
@@ -15,39 +18,42 @@ jobs:
1518
runs-on: ubuntu-20.04
1619

1720
steps:
18-
- name: Share helper id
19-
run: echo -n ${{ github.run_id }} >~/id_file
21+
- name: Share helper id
22+
run: echo -n ${{ github.run_id }} >~/id_file
2023

21-
- uses: actions/cache@v2
22-
with:
23-
path: ~/id_file
24-
key: helperid-${{ github.event.workflow_run.id }}
24+
- uses: actions/cache@v4
25+
with:
26+
path: ~/id_file
27+
key: helperid-${{ github.event.workflow_run.id }}
2528

2629
repocheck:
2730
name: Repo check
2831
runs-on: ubuntu-20.04
2932

3033
steps:
31-
- name: Check up-to-dateness and post comment
32-
run: |
33-
head_sha=${{ github.event.workflow_run.head_sha }}
34-
git clone -q ${{ github.event.workflow_run.head_repository.html_url }} .
35-
git checkout -q $head_sha
36-
git submodule -q update --init --recursive
37-
cd ${{ github.workspace }}/tests/ci
38-
url=$GITHUB_API_URL/repos/$GITHUB_REPOSITORY
39-
pr_number=$(curl -sS -H $app $url/pulls \
40-
| jq -r '.[] | select(.head.sha == "'"$head_sha"'") | .number')
41-
echo "pr_number is $pr_number"
42-
pr_uid=${{ github.event.workflow_run.head_repository.owner.login }}
43-
echo "pr_uid is $pr_uid"
44-
comment="$(./repo_check.sh $pr_uid 2>/dev/null)"
45-
echo "comment is $comment"
46-
if [[ -n $comment ]]; then
47-
curl -sS -X POST -H $app -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
48-
$url/issues/$pr_number/comments -d '{"body": "'"${comment}"'"}'
49-
echo -n "failure" >~/repocheck_file
50-
else
51-
echo -n "success" >~/repocheck_file
52-
fi
53-
34+
- name: Check up-to-dateness and post comment
35+
run: |
36+
trap 'echo "exit-code=$?" >> "$GITHUB_OUTPUT"' EXIT
37+
head_sha=${{ github.event.pull_request.head.sha }}
38+
head_brc=${{ github.event.pull_request.head.ref }}
39+
head_url=${{ github.event.pull_request.head.repo.html_url }}
40+
git clone -q -b $head_brc $head_url .
41+
git checkout -q $head_sha
42+
git submodule -q update --init --recursive
43+
cd ${{ github.workspace }}/tests/ci
44+
url=$GITHUB_API_URL/repos/$GITHUB_REPOSITORY
45+
pr_number=$(curl -sS -H $app $url/pulls \
46+
| jq -r '.[] | select(.head.sha == "'"$head_sha"'") | .number')
47+
echo "pr_number is $pr_number"
48+
pr_uid=${{ github.event.pull_request.head.repo.owner.login }}
49+
echo "pr_uid is $pr_uid"
50+
./repo_check.sh
51+
#comment="$(./repo_check.sh 2>/dev/null)"
52+
#echo "comment is $comment"
53+
#if [[ -n $comment ]]; then
54+
# curl -sS -X POST -H $app -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
55+
# $url/issues/$pr_number/comments -d '{"body": "'"${comment}"'"}'
56+
# echo -n "failure" >~/repocheck_file
57+
#else
58+
# echo -n "success" >~/repocheck_file
59+
#fi

.github/workflows/build_test.yml renamed to .github/workflows/build_test._yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
current: ${{ steps.check.outputs.current }}
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020

2121
- name: Wait for caching source
2222
run: sleep 30
2323

24-
- uses: actions/cache@v2
24+
- uses: actions/cache@v4
2525
with:
2626
path: ~/id_file
2727
key: helperid-${{ github.run_id }}

0 commit comments

Comments
 (0)