Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop ugwp stoch phys fix #163

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
bea6b56
Updates to aerosol RTs - new dust and fcsav (#1170)
bbakernoaa May 19, 2022
6f7906a
Transition ufs-weather-model to WCOSS2 (#1214)
DusanJovic-NOAA May 20, 2022
2f05121
Update Intel/impi version to Intel 2021/2022 (#1221)
junwang-noaa May 22, 2022
6b6462b
Minor bugfixes for CCPP v6 (#1231)
grantfirl May 25, 2022
71c752a
Turn on HAFS RTs on WCOSS2; AQM radians to degrees; NRL Neptune model…
BinLiu-NOAA May 26, 2022
ec17713
sync ww3/dev/ufs-weather-model (#1228)
aliabdolali May 29, 2022
e9445fe
Add mesh based cap for use by S2SW and HAFSW (#1131)
DeniseWorthen May 31, 2022
66c7291
fix nstf setting for coupled model, update atm aerosol test to use P8…
DeniseWorthen Jun 2, 2022
a86d5a2
Add prognostic cumulus closure description in saSAS (#1187)
lisa-bengtsson Jun 3, 2022
dc1316c
fix fv3 hash (#1242)
BrianCurtis-NOAA Jun 3, 2022
4376018
Require specific package version in top-level CMakeLists.txt, rename…
DusanJovic-NOAA Jun 6, 2022
bfecf91
Bring exchange grid support to UFS (#1157)
uturuncoglu Jun 9, 2022
ff8a6d3
Add 2d domain decomposition to the inline post (#1211)
JesseMeng-NOAA Jun 13, 2022
830b507
Emergency fix: exponentiation instead of multiplication caused bad 2m…
SamuelTrahanNOAA Jun 14, 2022
455d8a9
Fixes for reproducibility, failed builds, and CI. More hrrr tests, sh…
SamuelTrahanNOAA Jun 17, 2022
8820762
update mom6 to its main branch 20220602 commit, Allow wave grid to be…
jiandewang Jun 22, 2022
43f31ca
Add valid time to the 6 tile cubed sphere grid history files (#1265)
DusanJovic-NOAA Jun 24, 2022
9fd9d1c
Fix atmaero resources and turn test on for cheyenne.intel (replaces P…
DeniseWorthen Jun 27, 2022
cd0d809
removed dell/cray requirement due to decommission (#1293)
jkbk2004 Jun 27, 2022
c849098
Remove WCOSS (Dell and Cray) support from regression tests; Ignore ch…
DusanJovic-NOAA Jun 29, 2022
d179ec3
add mynn surface scheme as opt_sfc=4 in NoahMP (#1224)
HelinWei-NOAA Jun 30, 2022
65cf401
Added coupling between GOCART aerosols and RRTMG&Thompson in CCPP phy…
ChunxiZhang-NOAA Jul 5, 2022
b97375c
Switch cpld_bmark_p8 test to rectilinear 1/2deg grid; add Mesh creati…
DeniseWorthen Jul 7, 2022
3e78c4f
Updating the namelist parameters lheatstrg and dt_inner, and ice clim…
ChunxiZhang-NOAA Jul 13, 2022
d3d2565
Add AQM Regression Test and documentation for AQM & Update upp submod…
BrianCurtis-NOAA Jul 15, 2022
aed4cab
32-bit physics with FV3_RAP (#1215)
SamuelTrahanNOAA Jul 19, 2022
d75bed7
Add C-grid capability for CICE6 (#1269)
DeniseWorthen Jul 20, 2022
bb29481
(1) update MOM6 to its main branch 20220629 updating (NCAR 20220603 c…
jiandewang Jul 21, 2022
4cc63ac
* Update CDEPS; Add coupled C48-5deg ocean+ice warm-start and restart…
binli2337 Jul 26, 2022
67eef06
Enable regression tests on Acorn (#1307)
DusanJovic-NOAA Jul 27, 2022
492855a
Update fv3atm to FMS2 io. (#1317)
DusanJovic-NOAA Jul 29, 2022
9ae617e
Updates for P8 (#1353)
JessicaMeixner-NOAA Aug 3, 2022
c5aa49f
Fix bug in state_diagnose to accept 4d variables. Update CCPP Framewo…
BrianCurtis-NOAA Aug 4, 2022
48a98a9
Add esmf managed threading test and fix inline post issues in P8 (#1305)
junwang-noaa Aug 9, 2022
f269e1b
Replace w3nco with w3emc/2.9.2 (#1328)
junwang-noaa Aug 11, 2022
02bfe1e
Change sphinx theme & pygments_style (#1354)
gspetro-NOAA Aug 11, 2022
1f001a1
(1) update MOM6 to its main 20220729 commit (GFDL-candidate-20220721)…
jiandewang Aug 12, 2022
6a09404
CCPP/physics v6 documentation updates + empty CCPP phase subroutine c…
grantfirl Aug 16, 2022
4640a44
Update inline post for RRFS and HAFS (#1360)
WenMeng-NOAA Aug 18, 2022
a221241
Update CDEPS component in the ufs-weather-model (#1372)
binli2337 Aug 22, 2022
5477338
update MOM6 to its main branch 20220820 (#1379)
jiandewang Aug 24, 2022
6ba0369
Update CICE6 to allow WW3-CICE6 coupling; add a cdeps test using C-gr…
DeniseWorthen Aug 30, 2022
639da9e
Update inline post for multiple domains (#1362)
DusanJovic-NOAA Sep 1, 2022
3c3548d
AQM updates (Was #1383) + Update to use .lua modulefiles (#1376) (#1399)
BrianCurtis-NOAA Sep 9, 2022
b10ddb3
Misc NRL bugfixes (#1384)
grantfirl Sep 12, 2022
1bba232
(1) update MOM6 to its main branch 20220902 commit (2) update GNU to …
jiandewang Sep 13, 2022
df5da59
Adding Fengsha dust emission scheme and upgrading PIO to 2.5.7 and sw…
BrianCurtis-NOAA Sep 16, 2022
b5acabf
Update documentation (#1398)
gspetro-NOAA Sep 16, 2022
52072c5
update mesh cap (#1366)
DeniseWorthen Sep 19, 2022
b004ce4
Moving nest inline post fix (#1414)
DusanJovic-NOAA Sep 20, 2022
2b1284d
Officially changed the ccpp-physics pointer to ufs-community/ccpp-phy…
ChunxiZhang-NOAA Sep 21, 2022
ff2f0af
update library and remove yaFyaml (#1425)
junwang-noaa Sep 29, 2022
8925cdb
Coupling merra2 aerosol climatology and GOCART forecasted aerosols wi…
ChunxiZhang-NOAA Sep 30, 2022
0385e29
Use saved routehandles in fv3 cap init phase (#1434)
DusanJovic-NOAA Oct 3, 2022
14db6bb
Add RRFS-A to weekly tests (#1418)
RatkoVasic-NOAA Oct 4, 2022
e6da626
Check-in Jenkins Docker ORT CI (#1411)
Oct 4, 2022
ea0b6e4
Update CMake build system for AQM (#1445)
BrianCurtis-NOAA Oct 7, 2022
2539086
NCAR/main PR #66 (Bugfix and optimization of prognostic closure for t…
Oct 11, 2022
87c8ea9
RRFS debug & 2threads variants fixed plus many boundary condition bug…
SamuelTrahanNOAA Oct 17, 2022
6b73f5d
small cloud tuning from Greg Thompson (#1410)
grantfirl Oct 19, 2022
5ac19d4
Sync WW3 develop with dev/ufs-weather-model, Oct 12th 2022 (#1454)
MatthewMasarik-NOAA Oct 26, 2022
5094e98
Bring external land component support to UFS (#1443)
uturuncoglu Oct 28, 2022
84b28ec
[FV3] Add a new RT for the SDF FV3_WoFS_v0 (#1460)
ChunxiZhang-NOAA Nov 1, 2022
5db3fac
[AQM] [FV3] [WW3] Enable CMAQ scavenging and wet removal in resolved …
BrianCurtis-NOAA Nov 3, 2022
a57a1dd
Improve radiative fluxes and cloud cover in FV3 for HR1 (#1481)
ChunxiZhang-NOAA Nov 8, 2022
ad8da86
Rt hires (#1471)
RatkoVasic-NOAA Nov 10, 2022
8d90fe7
Adjust GFS diagnostic Aerosol Optical Depth (AOD) output to the exact…
ChunxiZhang-NOAA Nov 14, 2022
cd35139
update cmeps with fix for mediator history files; use esmf-managed th…
DeniseWorthen Nov 16, 2022
d31ee42
[AQM] Implement output capabilities for production and bring pm25 as …
BrianCurtis-NOAA Nov 18, 2022
1c24230
update mom6 to its main branch 20221112 commit, add ci test in fv3atm…
jiandewang Nov 21, 2022
ecd7bb8
Couple convective clouds to radiation (#1496)
grantfirl Nov 22, 2022
4843fdd
Update CICE (#1490)
DeniseWorthen Nov 25, 2022
3a8533c
Bug fix for the NoahMP scheme (#1493)
ChunxiZhang-NOAA Nov 29, 2022
7a1ce44
Aqm bugfixes + New AQM Debug RT (#1505), INLINE_POST default (#1503),…
BrianCurtis-NOAA Dec 1, 2022
a514b51
Bug fix for the NoahMP tiled t2m and q2m (#1511)
ChunxiZhang-NOAA Dec 2, 2022
659bd98
Update Regression Test to include gfsv17 prototypes that are after pr…
lisa-bengtsson Dec 5, 2022
60699c7
adding hr_ave_chem_v1 (#1513)
JianpingHuang-NOAA Dec 7, 2022
7e98ecf
clean up additional deprecated control dependencies (#1525)
jkbk2004 Dec 8, 2022
ce86979
update fms to fms/2022.04 and add a coupled mixed-mode test (#1514)
binli2337 Dec 12, 2022
c81a2f1
Merge HAFSv1 related developments back to the develop branch (#1518)
BinLiu-NOAA Dec 15, 2022
3610672
Refactor surface restart logic in FV3GFS_io.F90 to not use hard-coded…
SamuelTrahanNOAA Dec 20, 2022
edc063e
Develop ugwp improvements (#1488)
mdtoyNOAA Dec 22, 2022
5c5827d
Convert all regression tests to use ESMF managed threading (#1523)
DusanJovic-NOAA Dec 23, 2022
92d2d43
Add optional 'time_unlimited' logical flag to model_configure (#1535)
DusanJovic-NOAA Dec 28, 2022
5d66bca
clean up gitaction yml (#1552)
jkbk2004 Jan 3, 2023
2b99f09
use ungridded dimensions for stokes drift exchange (#1527)
DeniseWorthen Jan 4, 2023
a0bbece
MYNNsfc uniform real kind (#1522)
Jan 6, 2023
e50f701
Bring in calculations for point source emissions in AQM (#1560)
BrianCurtis-NOAA Jan 9, 2023
de1546f
Faster, safer, compilation options targeted for HAFS operational upgr…
SamuelTrahanNOAA Jan 12, 2023
e051e0e
HAFSv1 needed HYCOM, UPP, g2tmpl, ugwp, and moving nesting related up…
BinLiu-NOAA Jan 17, 2023
c5badea
Compile CICE with safe CPU instructions (#1563)
DavidHuber-NOAA Jan 20, 2023
70de7ef
update CICE with latest consortium/main (#1562)
DeniseWorthen Jan 23, 2023
863ffdd
Create ESMF field attributes using the same kind as field data values…
DusanJovic-NOAA Jan 25, 2023
0febb7f
Platform-594 AutoRT Jenkins (#1580)
kbooker79 Jan 26, 2023
c22aaad
Bug fix for cloud effective radius for convective clouds (HR1) (#1582)
ChunxiZhang-NOAA Jan 30, 2023
130f857
update CMEPS (#1570)
DeniseWorthen Feb 1, 2023
30b847d
RRTMGP refactoring (#1571)
Feb 7, 2023
0c8e74c
Hpc stack update (Issue 1465) (#1596)
zach1221 Feb 9, 2023
16277fa
(1) update MOM6 to 20230206 main branch (2) remove cpld_esmfthread_P8…
jiandewang Feb 14, 2023
74ec1da
Six new winter weather diagnostics, new precip ice density for RUC, N…
ericaligo-NOAA Feb 17, 2023
a863389
Update CDEPS component; update documentation FAQ about setting resour…
binli2337 Feb 22, 2023
23a4116
Change MOM6 and FV3atm restart filename format (#1599)
DeniseWorthen Feb 27, 2023
94cc62a
NCAR-main PR#956 (#1604)
Mar 3, 2023
b388eb9
Faster compile and HAFS app to be compiled with 64bit (#1578)
SadeghTabas-NOAA Mar 7, 2023
495c5fd
Combined PR: hpc-stack locations, Disable Fused Multiply Add, and Ena…
SamuelTrahanNOAA Mar 9, 2023
daa7a5d
update WW3 with its develop branch (#1625)
JessicaMeixner-NOAA Mar 13, 2023
e3ad808
Fix wave init (#1547)
pjpegion Mar 14, 2023
018e396
Combo for ccpp/physics #41 and #45 and ccpp/framework submodule point…
grantfirl Mar 15, 2023
10ceadd
Bring in changes from production/AQM.v7 (#1656)
BrianCurtis-NOAA Mar 21, 2023
36d6e16
Lightning threat indexes (#1642)
SamuelTrahanNOAA Mar 24, 2023
889254a
Smoke, dust, and MYNN updates (#1658)
SamuelTrahanNOAA Mar 27, 2023
85dc0fd
Write restart files using the write grid component. Combined with WW3…
DusanJovic-NOAA Mar 28, 2023
7267be0
Update CICE with latest Consortium/main (#1672)
DeniseWorthen Mar 29, 2023
20e21f6
Merge latest RUC LSM into community develop (#1646)
tanyasmirnova Mar 31, 2023
587ff4f
update CMEPS to allow bilinear ATM<->WAV mapping for global coupled a…
DeniseWorthen Apr 3, 2023
42a3ef0
Fixed issue with level of dividing streamline (rdxzb) being overwritt…
mdtoyNOAA Apr 5, 2023
b912da1
Updated rt.sh and test results
mdtoyNOAA Apr 5, 2023
046c62e
Added back CCPP header in physics/drag_suite.F90
mdtoyNOAA Apr 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 9 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,33 @@ assignees: ''
---

## Description
<!--
Provide a clear and concise description of what the bug is.
Also give a description of what behavior you expected to happen.
-->


### To Reproduce:
<!--
What compilers/machines are you seeing this with?
Give explicit steps to reproduce the behavior.
1. do this
2. then that
3. then, oops, look at the bug
-->


## Additional context
<!--
Add any other context about the problem here.
Directly reference any issues or PRs in this or other repositories that this is related to, and describe how they are related. Example:
- needs to be fixed also in noaa-emc/nems/issues/<issue_number>
- needed for noaa-emc/fv3atm/pull/<pr_number>
-->


## Output

<!--
**Screenshots**
If applicable, drag and drop screenshots to help explain your problem.

Expand All @@ -37,5 +43,6 @@ If applicable, include relevant output logs.
Either drag and drop the entire log file here (if a long log) or

```
paste the code here (if a short section of log)
paste the code in this type of section (if a short section of log)
```
-->
9 changes: 8 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,22 @@ assignees: ''
---

## Description
<!--
Provide a clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
-->

## Solution
<!--
Add a clear and concise description of what you want to happen.
-->

## Alternatives
<!--
If applicable, add a description of any alternative solutions or features you've considered.
-->

## Related to
Directly reference any issues or PRs in this or other repositories that this is related to, and describe how they are related. Example:
<!--Directly reference any issues or PRs in this or other repositories that this is related to, and describe how they are related. Example:
- required to support noaa-emc/nems/issues/<issue_number>
- needed by noaa-emc/fv3atm/pull/<pr_number>
-->
128 changes: 78 additions & 50 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,80 @@
# PR Checklist

- [ ] This PR is up-to-date with the top of all sub-component repositories except for those sub-components which are the subject of this PR. Please consult the ufs-weather-model [wiki](https://github.com/ufs-community/ufs-weather-model/wiki/Making-code-changes-in-the-UFS-weather-model-and-its-subcomponents) if you are unsure how to do this.

- [ ] This PR has been tested using a branch which is up-to-date with the top of all sub-component repositories except for those sub-components which are the subject of this PR

- [ ] An Issue describing the work contained in this PR has been created either in the subcomponent(s) or in the ufs-weather-model. The Issue should be created in the repository that is most relevant to the changes in contained in the PR. The Issue and the dependent sub-component PR
are specified below.

- [ ] Results for one or more of the regression tests change and the reasons for the changes are understood and explained below.

- [ ] New or updated input data is required by this PR. If checked, please work with the code managers to update input data sets on all platforms.

## Instructions: All subsequent sections of text should be filled in as appropriate.

The information provided below allows the code managers to understand the changes relevant to this PR, whether those changes are in the ufs-weather-model repository or in a subcomponent repository. Ufs-weather-model code managers will use the information provided to add any applicable labels, assign reviewers and place it in the Commit Queue. Once the PR is in the Commit Queue, it is the PR owner's responsiblity to keep the PR up-to-date with the develop branch of ufs-weather-model.

## Description

<!--
Provide a detailed description of what this PR does. What bug does it fix, or what feature does it add? Is a change of answers expected from this PR? Are any library updates included in this PR (modulefiles etc.)?

### Issue(s) addressed

Link the issues to be closed with this PR, whether in this repository, or in another repository.
(Remember, issues must always be created before starting work on a PR branch!)
- fixes #<issue_number>
- fixes noaa-emc/fv3atm/issues/<issue_number>

## Testing

How were these changes tested? What compilers / HPCs was it tested with? Are the changes covered by regression tests? (If not, why? Do new tests need to be added?) Have regression tests and unit tests (utests) been run? On which platforms and with which compilers? (Note that unit tests can only be run on tier-1 platforms)

- [ ] hera.intel
- [ ] hera.gnu
- [ ] orion.intel
- [ ] cheyenne.intel
- [ ] cheyenne.gnu
- [ ] gaea.intel
- [ ] jet.intel
- [ ] wcoss_cray
- [ ] wcoss_dell_p3
- [ ] opnReqTest for newly added/changed feature
- [ ] CI

## Dependencies

If testing this branch requires non-default branches in other repositories, list them. Those branches should have matching names (ideally).

Do PRs in upstream repositories need to be merged first?
If so add the "waiting for other repos" label and list the upstream PRs
- waiting on noaa-emc/nems/pull/<pr_number>
- waiting on noaa-emc/fv3atm/pull/<pr_number>
-->

### Top of commit queue on: TBD
<!-- Please have sub-component Code Managers ready for merging sub-component PR's on the date above and the day after the date above -->

### Input data additions/changes
- [ ] No changes are expected to input data.
- [ ] There will be new input data. <!-- Add "input data change" Label -->
- [ ] Input data will be updated. <!-- Add "New Input Data Req'd" Label -->

### Anticipated changes to regression tests:
- [ ] No changes are expected to any regression test. <!-- Add "No Baseline Change" Label -->
- [ ] Changes are expected to the following tests: <!-- Add "Baseline Change" Label -->
<!-- Please insert what RT's change and why you expect them to change -->

## Subcomponents involved:
- [ ] AQM
- [ ] CDEPS
- [ ] CICE
- [ ] CMEPS
- [ ] CMakeModules
- [ ] FV3
- [ ] GOCART
- [ ] HYCOM
- [ ] MOM6
- [ ] NOAHMP
- [ ] WW3
- [ ] stochastic_physics
- [ ] none

### Combined with PR's (If Applicable):

## Commit Queue Checklist:
<!--
Please complete all items in list. Make sure to attach logs from RT testing in comment, not in repository. Once all boxes are checked, please add the label "Ready for Commit Queue".
-->
- [ ] Link PR's from all sub-components involved
- [ ] Confirm reviews completed in sub-component PR's
- [ ] Add all appropriate labels to this PR.
- [ ] Run full RT suite on either Hera/Cheyenne with both Intel/GNU compilers
- [ ] Add list of any failed regression tests to "Anticipated changes to regression tests" section.

## Linked PR's and Issues:
<!--
Please link dependent pull requests.
EXAMPLE: Depends on NOAA-EMC/fv3atm/pull/<pullrequest_number>

Please link the related issues to be closed with this PR, whether in this repository, or in another repository.
EXAMPLE: Closes NOAA-EMC/fv3atm/issues/<issue_number>
-->

## Testing Day Checklist:
<!--
Please consult the ufs-weather-model [wiki](https://github.com/ufs-community/ufs-weather-model/wiki/Making-code-changes-in-the-UFS-weather-model-and-its-subcomponents) if you are unsure how to do this.
-->
- [ ] This PR is up-to-date with the top of all sub-component repositories except for those sub-components which are the subject of this PR.
- [ ] Move new/updated input data on RDHPCS Hera and propagate input data changes to all supported systems.

### Testing Log (for CM's):
- RDHPCS
- Intel
- [ ] Hera
- [ ] Orion
- [ ] Jet
- [ ] Gaea
- [ ] Cheyenne
- GNU
- [ ] Hera
- [ ] Cheyenne
- WCOSS2
- [ ] Dogwood/Cactus
- [ ] Acorn
- CI
- [ ] Completed
- opnReqTest
- [ ] N/A
- [ ] Log attached to comment
99 changes: 1 addition & 98 deletions .github/workflows/aux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ env:
app: Accept:application/vnd.github.v3+json
base_url: $GITHUB_API_URL/repos/$GITHUB_REPOSITORY/actions/runs
AUTH: ${{ secrets.GITHUB_TOKEN }}
aws_instance_id: ${{ secrets.AWS_INSTANCE_ID }}
no_instances: 10


jobs:
pre:
Expand All @@ -26,17 +23,6 @@ jobs:
path: ~/id_file
key: helperid-${{ github.event.workflow_run.id }}

- name: Delete run-ci label
run: |
head_sha=${{ github.event.workflow_run.head_sha }}
url=$GITHUB_API_URL/repos/$GITHUB_REPOSITORY
pr_number=$(curl -sS -H $app $url/pulls \
| jq -r '.[] | select(.head.sha == "'"$head_sha"'") | .number')
echo "pr_number is $pr_number"
curl -sS -X DELETE -H $app -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
$url/issues/$pr_number/labels/run-ci


repocheck:
name: Repo check
runs-on: ubuntu-20.04
Expand All @@ -48,7 +34,6 @@ jobs:
git clone -q ${{ github.event.workflow_run.head_repository.html_url }} .
git checkout -q $head_sha
git submodule -q update --init --recursive

cd ${{ github.workspace }}/tests/ci
url=$GITHUB_API_URL/repos/$GITHUB_REPOSITORY
pr_number=$(curl -sS -H $app $url/pulls \
Expand All @@ -58,93 +43,11 @@ jobs:
echo "pr_uid is $pr_uid"
comment="$(./repo_check.sh $pr_uid 2>/dev/null)"
echo "comment is $comment"

if [[ -n $comment ]]; then
curl -sS -X POST -H $app -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
$url/issues/$pr_number/comments -d '{"body": "'"${comment}"'"}'
echo -n "failure" >~/repocheck_file
else
echo -n "success" >~/repocheck_file
fi

- uses: actions/cache@v2
with:
path: ~/repocheck_file
key: repocheck-${{ github.event.workflow_run.id }}


startrunner:
name: Start runners
needs: repocheck
runs-on: ubuntu-20.04
outputs:
started: ${{ steps.ec2.outputs.started }}

steps:
- uses: actions/checkout@v2

- name: Check all builds are complete and successful
id: current
run: |
cd ${{ github.workspace }}/tests/ci
eval url=$base_url/${{ github.event.workflow_run.id }}/jobs
b_r=$(echo -n $url | ./check_status.py build)
if [ $b_r == 'success' ]; then
echo "::set-output name=check::pass"
elif [ $b_r == 'failure' ]; then
echo "::set-output name=check::fail"
fi

- name: Check all previous runs finish using ec2
id: previous
if: steps.current.outputs.check == 'pass'
run: |
cd ${{ github.workspace }}/tests/ci
eval url=$base_url
echo -n $url | ./check_status.py ec2 ${{ github.run_id }}

- uses: aws-actions/configure-aws-credentials@v1
if: steps.current.outputs.check == 'pass'
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Start ec2 instances
id: ec2
if: steps.current.outputs.check == 'pass'
run: |
no_stopped=0
while [ $no_stopped -lt $no_instances ]; do
sleep 20
no_stopped=$(aws ec2 describe-instances --instance-ids $aws_instance_id \
| jq -r '.Reservations[].Instances[].State.Name' | grep stopped | wc -l)
echo "no_stopped: $no_stopped"
done
aws ec2 start-instances --instance-ids $aws_instance_id
echo "::set-output name=started::yes"


stoprunner:
name: Stop runners
needs: startrunner
runs-on: ubuntu-20.04
if: needs.startrunner.outputs.started == 'yes'

steps:
- uses: actions/checkout@v2

- name: Check all tests are complete
run: |
cd ${{ github.workspace }}/tests/ci
eval url=$base_url/${{ github.event.workflow_run.id }}
echo $url | ./check_status.py test

- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Stop ec2 instances
run: aws ec2 stop-instances --instance-ids $aws_instance_id

Loading