-
Notifications
You must be signed in to change notification settings - Fork 172
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
Added Unit Tests for CI Codes #2581
Changes from 34 commits
a62a9f0
959edf5
002c985
0243294
233c614
eb3589c
060f2a8
2f9662d
b01504d
a6508f5
ce9af99
060aed6
336cbc4
0a3561d
c36ef99
4e89645
c59c997
cb3c3e5
2dfe779
ed29a28
b22801a
f868628
dfdcf7a
ca60b13
c29acdf
74fe7ee
10b0489
58ad853
ca985a2
316d2ee
0cb4a6d
2534fed
89d6058
100c893
d540011
a53445b
6fc76b2
eafc6cc
6ed8e71
e81512b
14b1622
5901d51
9fe4f62
2f3cd87
9bb3b24
7f7f705
b201a6e
4566503
2ad0c1c
6659215
33de358
2b4e774
12ee2db
73b0f11
0fc0ec8
4ed0fa6
7282787
b63adea
92971b0
8c5dbd6
0d68041
6425410
b5cbcda
4ae1854
fc7549e
e6ad4fa
9581a14
9ee2e6a
656eb92
2adbcac
d5f4103
553404b
05797cd
2cc2fe2
7407f4e
a9de59d
1363144
242f8b7
bd7ca33
5dc1dc9
e81e260
6fd980d
62576d6
b3dff2c
c7809b4
28278ba
b20137b
06ef59e
01d2295
848e220
2f7f1a2
f90eab1
f0c907a
c432eda
1aa135c
cfc85d7
d4d3933
fc44f85
bb76df3
4132ee9
99f9ada
30b074d
4100aad
46d52bf
eba677e
e846040
788ef8c
b9cb187
ada04dd
2d01f6a
7ca0a7a
366c381
257c033
3502963
205d367
07f9c31
8285280
f45caca
b457a9f
e1b4907
a3ff0b6
5c726dd
75f44b4
1cad3a2
92d2208
08b7b9f
e48fedd
65343f9
3c9bb58
c7282dc
c1adce8
3e256dc
55c28f4
d0bfa61
df915d4
1387d78
5da70e4
b7eeae8
526e6f4
494690d
d30d11f
4e882f7
fc15469
892ece9
236e5f6
f553a33
9d329bb
371d532
8b527c8
acc8d3c
6bcc3b5
8d638ee
fd4aa91
fab6843
c511207
c25dda8
6d3a462
c52bfc2
dd5e58c
01bc144
f59819d
7102f0d
7c14d55
1f599e3
d2db0be
7965a9b
e18ee96
8b8fe34
2b3a122
f6d5dd6
69b226e
5300dc2
c5b6386
f513eeb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CI Unit Tests | ||
on: | ||
pull_request: | ||
TerrenceMcGuinness-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
jobs: | ||
|
||
ci_pytest: | ||
runs-on: ubuntu-latest | ||
TerrenceMcGuinness-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
permissions: | ||
checks: write | ||
pull-requests: write | ||
TerrenceMcGuinness-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y perl libxml-libxml-perl libxml-libxslt-perl libdatetime-perl | ||
python -m pip install --upgrade pip | ||
pip install pytest wxflow | ||
# If you have a requirements.txt file, you can install all dependencies using: | ||
# pip install -r requirements.txt | ||
|
||
- name: Install Rocoto | ||
run: | | ||
git clone https://github.com/christopherwharrop/rocoto.git | ||
cd rocoto | ||
./INSTALL | ||
echo "$(pwd)/bin" >> $GITHUB_PATH | ||
TerrenceMcGuinness-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Run tests | ||
run: python -m pytest ci/scripts/tests/test_rocotostat.py -v --junitxml ci/scripts/tests/test-results.xml | ||
|
||
- name: Publish Test Results | ||
if: always() | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
WalterKolczynski-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
with: | ||
files: ci/scripts/tests/test-results.xml | ||
job_summary: true | ||
comment_mode: off | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file should not be added to the repo. It is a binary file and we do not have git-lfs resources. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The corresponding database files (now in specific test directories) are in final states so no calls to schedulers are being made by the unit tests. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import sys | ||
import os | ||
|
||
script_dir = os.path.dirname(os.path.abspath(__file__)) | ||
sys.path.append(os.path.join(os.path.dirname(script_dir), 'utils')) | ||
|
||
from rocotostat import rocoto_statcount, rocotostat_summary, CommandNotFoundError | ||
from wxflow import which | ||
|
||
workflow_file = os.path.join(script_dir, "workflow.xml") | ||
database_file = os.path.join(script_dir, "database.db") | ||
|
||
try: | ||
rocotostat = which("rocotostat") | ||
except CommandNotFoundError: | ||
raise CommandNotFoundError("rocotostat not found in PATH") | ||
rocotostat.add_default_arg(['-w', workflow_file, '-d', database_file]) | ||
|
||
|
||
def test_rocoto_statcount(): | ||
|
||
result = rocoto_statcount(rocotostat) | ||
|
||
assert result['SUCCEEDED'] == 20 | ||
assert result['FAIL'] == 0 | ||
assert result['DEAD'] == 0 | ||
assert result['RUNNING'] == 0 | ||
assert result['SUBMITTING'] == 0 | ||
assert result['QUEUED'] == 0 | ||
WalterKolczynski-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
||
def test_rocoto_summary(): | ||
|
||
result = rocotostat_summary(rocotostat) | ||
|
||
assert result['CYCLES_TOTAL'] == 1 | ||
assert result['CYCLES_DONE'] == 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,284 @@ | ||
<?xml version="1.0"?> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason to commit this file? Especially since the comment says, the workflow was automatically generated at .... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generalized XML files (no proper names) and tested on neutral laptop. |
||
<!DOCTYPE workflow | ||
[ | ||
<!-- | ||
PROGRAM | ||
Main workflow manager for Global Forecast System | ||
|
||
NOTES: | ||
This workflow was automatically generated at 2024-05-01 14:24:16.515689 | ||
--> | ||
<!ENTITY PSLOT "C48_ATM_0ad155f1"> | ||
<!ENTITY ROTDIR "/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT/C48_ATM_0ad155f1"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not going to be static, another reason why this file does not belong in the repo. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed all proper names and are used only with databases that are "static" in that they are in final states that are being tested agains with known values. |
||
<!ENTITY JOBS_DIR "/work2/noaa/stmp/CI/ORION/2555/gfs/jobs/rocoto"> | ||
<!ENTITY MAXTRIES "2"> | ||
]> | ||
|
||
<workflow realtime="F" scheduler="slurm" cyclethrottle="3" taskthrottle="25"> | ||
|
||
<log verbosity="10"><cyclestr>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/EXPDIR/C48_ATM_0ad155f1/logs/@Y@m@[email protected]</cyclestr></log> | ||
|
||
<!-- Define the cycles --> | ||
<cycledef group="gfs">202103231200 202103231200 24:00:00</cycledef> | ||
|
||
<task name="gfsstage_ic" cycledefs="gfs" maxtries="&MAXTRIES;"> | ||
|
||
<command>/work2/noaa/stmp/CI/ORION/2555/gfs/jobs/rocoto/stage_ic.sh</command> | ||
|
||
<jobname><cyclestr>C48_ATM_0ad155f1_gfsstage_ic_@H</cyclestr></jobname> | ||
<account>nems</account> | ||
<queue>batch</queue> | ||
<partition>orion</partition> | ||
<walltime>00:15:00</walltime> | ||
<nodes>1:ppn=1:tpp=1</nodes> | ||
<native>--export=NONE</native> | ||
|
||
<join><cyclestr>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT/C48_ATM_0ad155f1/logs/@Y@m@d@H/gfsstage_ic.log</cyclestr></join> | ||
|
||
<envar><name>RUN_ENVIR</name><value>emc</value></envar> | ||
<envar><name>HOMEgfs</name><value>/work2/noaa/stmp/CI/ORION/2555/gfs</value></envar> | ||
<envar><name>EXPDIR</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/EXPDIR/C48_ATM_0ad155f1</value></envar> | ||
<envar><name>NET</name><value>gfs</value></envar> | ||
<envar><name>CDUMP</name><value>gfs</value></envar> | ||
<envar><name>RUN</name><value>gfs</value></envar> | ||
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar> | ||
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar> | ||
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar> | ||
<envar><name>COMROOT</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT</value></envar> | ||
<envar><name>DATAROOT</name><value>/work/noaa/stmp/mterry/RUNDIRS/C48_ATM_0ad155f1</value></envar> | ||
|
||
<dependency> | ||
<and> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/gfs_ctrl.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/gfs_data.tile1.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/gfs_data.tile2.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/gfs_data.tile3.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/gfs_data.tile4.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/gfs_data.tile5.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/gfs_data.tile6.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/sfc_data.tile1.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/sfc_data.tile2.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/sfc_data.tile3.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/sfc_data.tile4.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/sfc_data.tile5.nc</cyclestr></datadep> | ||
<datadep><cyclestr>/work/noaa/global/glopara/data/ICSDIR/prototype_ICs/workflow_C48_refactored/@Y@m@d@H/atmos/sfc_data.tile6.nc</cyclestr></datadep> | ||
</and> | ||
</dependency> | ||
|
||
</task> | ||
|
||
<task name="gfsfcst" cycledefs="gfs" maxtries="&MAXTRIES;"> | ||
|
||
<command>/work2/noaa/stmp/CI/ORION/2555/gfs/jobs/rocoto/fcst.sh</command> | ||
|
||
<jobname><cyclestr>C48_ATM_0ad155f1_gfsfcst_@H</cyclestr></jobname> | ||
<account>nems</account> | ||
<queue>batch</queue> | ||
<partition>orion</partition> | ||
<walltime>03:00:00</walltime> | ||
<nodes>1:ppn=40:tpp=1</nodes> | ||
<native>--export=NONE</native> | ||
|
||
<join><cyclestr>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT/C48_ATM_0ad155f1/logs/@Y@m@d@H/gfsfcst.log</cyclestr></join> | ||
|
||
<envar><name>RUN_ENVIR</name><value>emc</value></envar> | ||
<envar><name>HOMEgfs</name><value>/work2/noaa/stmp/CI/ORION/2555/gfs</value></envar> | ||
<envar><name>EXPDIR</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/EXPDIR/C48_ATM_0ad155f1</value></envar> | ||
<envar><name>NET</name><value>gfs</value></envar> | ||
<envar><name>CDUMP</name><value>gfs</value></envar> | ||
<envar><name>RUN</name><value>gfs</value></envar> | ||
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar> | ||
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar> | ||
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar> | ||
<envar><name>COMROOT</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT</value></envar> | ||
<envar><name>DATAROOT</name><value>/work/noaa/stmp/mterry/RUNDIRS/C48_ATM_0ad155f1</value></envar> | ||
|
||
<dependency> | ||
<and> | ||
<taskdep task="gfsstage_ic"/> | ||
</and> | ||
</dependency> | ||
|
||
</task> | ||
|
||
<metatask name="gfsatmos_prod"> | ||
|
||
<var name="grp">_f000-f006 _f009-f015 _f018-f024 _f027-f033 _f036-f042 _f045-f051 _f054-f060 _f063-f069 _f072-f078 _f081-f087 _f090-f096 _f099-f105 _f108-f114 _f117-f120</var> | ||
<var name="dep">f006 f015 f024 f033 f042 f051 f060 f069 f078 f087 f096 f105 f114 f120</var> | ||
<var name="lst">f000_f003_f006 f009_f012_f015 f018_f021_f024 f027_f030_f033 f036_f039_f042 f045_f048_f051 f054_f057_f060 f063_f066_f069 f072_f075_f078 f081_f084_f087 f090_f093_f096 f099_f102_f105 f108_f111_f114 f117_f120</var> | ||
|
||
<task name="gfsatmos_prod#grp#" cycledefs="gfs" maxtries="&MAXTRIES;"> | ||
|
||
<command>/work2/noaa/stmp/CI/ORION/2555/gfs/jobs/rocoto/atmos_products.sh</command> | ||
|
||
<jobname><cyclestr>C48_ATM_0ad155f1_gfsatmos_prod#grp#_@H</cyclestr></jobname> | ||
<account>nems</account> | ||
<queue>batch</queue> | ||
<partition>orion</partition> | ||
<walltime>00:15:00</walltime> | ||
<nodes>1:ppn=24:tpp=1</nodes> | ||
<native>--export=NONE</native> | ||
|
||
<join><cyclestr>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT/C48_ATM_0ad155f1/logs/@Y@m@d@H/gfsatmos_prod#grp#.log</cyclestr></join> | ||
|
||
<envar><name>RUN_ENVIR</name><value>emc</value></envar> | ||
<envar><name>HOMEgfs</name><value>/work2/noaa/stmp/CI/ORION/2555/gfs</value></envar> | ||
<envar><name>EXPDIR</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/EXPDIR/C48_ATM_0ad155f1</value></envar> | ||
<envar><name>NET</name><value>gfs</value></envar> | ||
<envar><name>CDUMP</name><value>gfs</value></envar> | ||
<envar><name>RUN</name><value>gfs</value></envar> | ||
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar> | ||
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar> | ||
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar> | ||
<envar><name>COMROOT</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT</value></envar> | ||
<envar><name>DATAROOT</name><value>/work/noaa/stmp/mterry/RUNDIRS/C48_ATM_0ad155f1</value></envar> | ||
<envar><name>FHRLST</name><value>#lst#</value></envar> | ||
<envar><name>COMPONENT</name><value>atmos</value></envar> | ||
|
||
<dependency> | ||
<datadep age="120"><cyclestr>&ROTDIR;/gfs.@Y@m@d/@H//model_data/atmos/master/[email protected]#dep#</cyclestr></datadep> | ||
</dependency> | ||
|
||
</task> | ||
|
||
</metatask> | ||
|
||
<task name="gfstracker" cycledefs="gfs" maxtries="&MAXTRIES;"> | ||
|
||
<command>/work2/noaa/stmp/CI/ORION/2555/gfs/jobs/rocoto/tracker.sh</command> | ||
|
||
<jobname><cyclestr>C48_ATM_0ad155f1_gfstracker_@H</cyclestr></jobname> | ||
<account>nems</account> | ||
<queue>batch</queue> | ||
<partition>orion</partition> | ||
<walltime>00:10:00</walltime> | ||
<nodes>1:ppn=1:tpp=1</nodes> | ||
<memory>4G</memory> | ||
<native>--export=NONE</native> | ||
|
||
<join><cyclestr>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT/C48_ATM_0ad155f1/logs/@Y@m@d@H/gfstracker.log</cyclestr></join> | ||
|
||
<envar><name>RUN_ENVIR</name><value>emc</value></envar> | ||
<envar><name>HOMEgfs</name><value>/work2/noaa/stmp/CI/ORION/2555/gfs</value></envar> | ||
<envar><name>EXPDIR</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/EXPDIR/C48_ATM_0ad155f1</value></envar> | ||
<envar><name>NET</name><value>gfs</value></envar> | ||
<envar><name>CDUMP</name><value>gfs</value></envar> | ||
<envar><name>RUN</name><value>gfs</value></envar> | ||
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar> | ||
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar> | ||
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar> | ||
<envar><name>COMROOT</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT</value></envar> | ||
<envar><name>DATAROOT</name><value>/work/noaa/stmp/mterry/RUNDIRS/C48_ATM_0ad155f1</value></envar> | ||
|
||
<dependency> | ||
<metataskdep metatask="gfsatmos_prod"/> | ||
</dependency> | ||
|
||
</task> | ||
|
||
<task name="gfsgenesis" cycledefs="gfs" maxtries="&MAXTRIES;"> | ||
|
||
<command>/work2/noaa/stmp/CI/ORION/2555/gfs/jobs/rocoto/genesis.sh</command> | ||
|
||
<jobname><cyclestr>C48_ATM_0ad155f1_gfsgenesis_@H</cyclestr></jobname> | ||
<account>nems</account> | ||
<queue>batch</queue> | ||
<partition>orion</partition> | ||
<walltime>00:25:00</walltime> | ||
<nodes>1:ppn=1:tpp=1</nodes> | ||
<memory>10G</memory> | ||
<native>--export=NONE</native> | ||
|
||
<join><cyclestr>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT/C48_ATM_0ad155f1/logs/@Y@m@d@H/gfsgenesis.log</cyclestr></join> | ||
|
||
<envar><name>RUN_ENVIR</name><value>emc</value></envar> | ||
<envar><name>HOMEgfs</name><value>/work2/noaa/stmp/CI/ORION/2555/gfs</value></envar> | ||
<envar><name>EXPDIR</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/EXPDIR/C48_ATM_0ad155f1</value></envar> | ||
<envar><name>NET</name><value>gfs</value></envar> | ||
<envar><name>CDUMP</name><value>gfs</value></envar> | ||
<envar><name>RUN</name><value>gfs</value></envar> | ||
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar> | ||
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar> | ||
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar> | ||
<envar><name>COMROOT</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT</value></envar> | ||
<envar><name>DATAROOT</name><value>/work/noaa/stmp/mterry/RUNDIRS/C48_ATM_0ad155f1</value></envar> | ||
|
||
<dependency> | ||
<metataskdep metatask="gfsatmos_prod"/> | ||
</dependency> | ||
|
||
</task> | ||
|
||
<task name="gfsarch" cycledefs="gfs" maxtries="&MAXTRIES;"> | ||
|
||
<command>/work2/noaa/stmp/CI/ORION/2555/gfs/jobs/rocoto/arch.sh</command> | ||
|
||
<jobname><cyclestr>C48_ATM_0ad155f1_gfsarch_@H</cyclestr></jobname> | ||
<account>nems</account> | ||
<queue>batch</queue> | ||
<partition>service</partition> | ||
<walltime>06:00:00</walltime> | ||
<nodes>1:ppn=1:tpp=1</nodes> | ||
<memory>4096M</memory> | ||
<native>--export=NONE</native> | ||
|
||
<join><cyclestr>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT/C48_ATM_0ad155f1/logs/@Y@m@d@H/gfsarch.log</cyclestr></join> | ||
|
||
<envar><name>RUN_ENVIR</name><value>emc</value></envar> | ||
<envar><name>HOMEgfs</name><value>/work2/noaa/stmp/CI/ORION/2555/gfs</value></envar> | ||
<envar><name>EXPDIR</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/EXPDIR/C48_ATM_0ad155f1</value></envar> | ||
<envar><name>NET</name><value>gfs</value></envar> | ||
<envar><name>CDUMP</name><value>gfs</value></envar> | ||
<envar><name>RUN</name><value>gfs</value></envar> | ||
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar> | ||
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar> | ||
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar> | ||
<envar><name>COMROOT</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT</value></envar> | ||
<envar><name>DATAROOT</name><value>/work/noaa/stmp/mterry/RUNDIRS/C48_ATM_0ad155f1</value></envar> | ||
|
||
<dependency> | ||
<and> | ||
<taskdep task="gfstracker"/> | ||
<taskdep task="gfsgenesis"/> | ||
<metataskdep metatask="gfsatmos_prod"/> | ||
</and> | ||
</dependency> | ||
|
||
</task> | ||
|
||
<task name="gfscleanup" cycledefs="gfs" maxtries="&MAXTRIES;"> | ||
|
||
<command>/work2/noaa/stmp/CI/ORION/2555/gfs/jobs/rocoto/cleanup.sh</command> | ||
|
||
<jobname><cyclestr>C48_ATM_0ad155f1_gfscleanup_@H</cyclestr></jobname> | ||
<account>nems</account> | ||
<queue>batch</queue> | ||
<partition>orion</partition> | ||
<walltime>00:15:00</walltime> | ||
<nodes>1:ppn=1:tpp=1</nodes> | ||
<memory>4096M</memory> | ||
<native>--export=NONE</native> | ||
|
||
<join><cyclestr>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT/C48_ATM_0ad155f1/logs/@Y@m@d@H/gfscleanup.log</cyclestr></join> | ||
|
||
<envar><name>RUN_ENVIR</name><value>emc</value></envar> | ||
<envar><name>HOMEgfs</name><value>/work2/noaa/stmp/CI/ORION/2555/gfs</value></envar> | ||
<envar><name>EXPDIR</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/EXPDIR/C48_ATM_0ad155f1</value></envar> | ||
<envar><name>NET</name><value>gfs</value></envar> | ||
<envar><name>CDUMP</name><value>gfs</value></envar> | ||
<envar><name>RUN</name><value>gfs</value></envar> | ||
<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar> | ||
<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar> | ||
<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar> | ||
<envar><name>COMROOT</name><value>/work2/noaa/stmp/CI/ORION/2555/RUNTESTS/COMROOT</value></envar> | ||
<envar><name>DATAROOT</name><value>/work/noaa/stmp/mterry/RUNDIRS/C48_ATM_0ad155f1</value></envar> | ||
|
||
<dependency> | ||
<and> | ||
<taskdep task="gfsarch"/> | ||
</and> | ||
</dependency> | ||
|
||
</task> | ||
|
||
</workflow> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Help me understand why mixing
-
and_
in filenames?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Help you understand? OK: CI Unit Tests, does that help?