updating branch toward develop #128
GitHub Actions / Test Results
failed
Jan 23, 2025 in 0s
1 fail, 7 pass in 10s
Annotations
Check warning on line 0 in test_setup
github-actions / Test Results
test_setup_xml (test_setup) failed
ci/scripts/tests/test-results.xml [took 0s]
Raw output
assert 5 > 5
+ where 5 = <built-in method count of str object at 0x5635189828c0>('fv3-cpu')
+ where <built-in method count of str object at 0x5635189828c0> = '<?xml version="1.0"?>\n<!DOCTYPE workflow\n[\n\t<!--\n\tPROGRAM\n\t\tMain workflow manager for Global Forecast System\n\n\tNOTES:\n\t\tThis workflow was automatically generated at 2025-01-23 14:17:47.482347\n\t-->\n\t<!ENTITY PSLOT "C48_ATM">\n\t<!ENTITY ROTDIR "/home/runner/work/global-workflow/global-workflow/ci/scripts/tests/testdata/RUNDIR/C48_ATM">\n\t<!ENTITY JOBS_DIR "/home/runner/work/global-workflow/global-workflow/jobs/rocoto">\n\t<!ENTITY MAXTRIES "2">\n]>\n\n<workflow realtime="F" scheduler="slurm" cyclethrottle="3" taskthrottle="25">\n\n\t<log verbosity="10"><cyclestr>/home/runner/work/global-workflow/global-workflow/ci/scripts/tests/testdata/RUNDIR/C48_ATM/logs/@Y@m@[email protected]</cyclestr></log>\n\n\t<!-- Define the cycles -->\n\t<cycledef group="gfs">202103231200 202103231200 06:00:00</cycledef>\n\n<task name="gfs_stage_ic" cycledefs="gfs" maxtries="&MAXTRIES;">\n\n\t<command>/home/runner/work/global-workflow/global-workflow/jobs/rocoto/stage_ic.sh</command>\n\n\t<jobname><cyclestr>C48_ATM_gfs_stage_ic_@H</cyclestr></jobname>\n\t<account>fv3-cpu</account>\n\t<queue>batch</queue>\n\t<partition>service</partition>\n\t<walltime>00:15:00</walltime>\n\t<nodes>1:ppn=1:tpp=1<...ve>\n\n\t<join><cyclestr>/home/runner/work/global-workflow/global-workflow/ci/scripts/tests/testdata/RUNDIR/C48_ATM/logs/@Y@m@d@H/gfs_cleanup.log</cyclestr></join>\n\n\t<envar><name>RUN_ENVIR</name><value>emc</value></envar>\n\t<envar><name>HOMEgfs</name><value>/home/runner/work/global-workflow/global-workflow</value></envar>\n\t<envar><name>EXPDIR</name><value>/home/runner/work/global-workflow/global-workflow/ci/scripts/tests/testdata/RUNDIR/C48_ATM</value></envar>\n\t<envar><name>NET</name><value>gfs</value></envar>\n\t<envar><name>RUN</name><value>gfs</value></envar>\n\t<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar>\n\t<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar>\n\t<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar>\n\t<envar><name>COMROOT</name><value>/home/runner/work/global-workflow/global-workflow/ci/scripts/tests/testdata/RUNDIR</value></envar>\n\t<envar><name>DATAROOT</name><value>/scratch1/NCEPDEV/stmp2/runner/RUNDIRS/C48_ATM/gfs.<cyclestr>@Y@m@d@H</cyclestr></value></envar>\n\n\t<dependency>\n\t\t<and>\n\t\t\t<taskdep task="gfs_arch"/>\n\t\t</and>\n\t</dependency>\n\n</task>\n\n</workflow>\n'.count
def test_setup_xml():
setup_xml_script = Executable(os.path.join(HOMEgfs, "workflow/setup_xml.py"))
setup_xml_script.add_default_arg(f"{RUNDIR}/{pslot}")
setup_xml_script()
assert (setup_xml_script.returncode == 0)
cfg = Configuration(f"{RUNDIR}/{pslot}")
base = cfg.parse_config('config.base')
assert base.ACCOUNT == account
assert "UNKNOWN" not in base.values()
with open(f"{RUNDIR}/{pslot}/{pslot}.xml", 'r') as file:
contents = file.read()
> assert contents.count(account) > 5
E assert 5 > 5
E + where 5 = <built-in method count of str object at 0x5635189828c0>('fv3-cpu')
E + where <built-in method count of str object at 0x5635189828c0> = '<?xml version="1.0"?>\n<!DOCTYPE workflow\n[\n\t<!--\n\tPROGRAM\n\t\tMain workflow manager for Global Forecast System\n\n\tNOTES:\n\t\tThis workflow was automatically generated at 2025-01-23 14:17:47.482347\n\t-->\n\t<!ENTITY PSLOT "C48_ATM">\n\t<!ENTITY ROTDIR "/home/runner/work/global-workflow/global-workflow/ci/scripts/tests/testdata/RUNDIR/C48_ATM">\n\t<!ENTITY JOBS_DIR "/home/runner/work/global-workflow/global-workflow/jobs/rocoto">\n\t<!ENTITY MAXTRIES "2">\n]>\n\n<workflow realtime="F" scheduler="slurm" cyclethrottle="3" taskthrottle="25">\n\n\t<log verbosity="10"><cyclestr>/home/runner/work/global-workflow/global-workflow/ci/scripts/tests/testdata/RUNDIR/C48_ATM/logs/@Y@m@[email protected]</cyclestr></log>\n\n\t<!-- Define the cycles -->\n\t<cycledef group="gfs">202103231200 202103231200 06:00:00</cycledef>\n\n<task name="gfs_stage_ic" cycledefs="gfs" maxtries="&MAXTRIES;">\n\n\t<command>/home/runner/work/global-workflow/global-workflow/jobs/rocoto/stage_ic.sh</command>\n\n\t<jobname><cyclestr>C48_ATM_gfs_stage_ic_@H</cyclestr></jobname>\n\t<account>fv3-cpu</account>\n\t<queue>batch</queue>\n\t<partition>service</partition>\n\t<walltime>00:15:00</walltime>\n\t<nodes>1:ppn=1:tpp=1<...ve>\n\n\t<join><cyclestr>/home/runner/work/global-workflow/global-workflow/ci/scripts/tests/testdata/RUNDIR/C48_ATM/logs/@Y@m@d@H/gfs_cleanup.log</cyclestr></join>\n\n\t<envar><name>RUN_ENVIR</name><value>emc</value></envar>\n\t<envar><name>HOMEgfs</name><value>/home/runner/work/global-workflow/global-workflow</value></envar>\n\t<envar><name>EXPDIR</name><value>/home/runner/work/global-workflow/global-workflow/ci/scripts/tests/testdata/RUNDIR/C48_ATM</value></envar>\n\t<envar><name>NET</name><value>gfs</value></envar>\n\t<envar><name>RUN</name><value>gfs</value></envar>\n\t<envar><name>CDATE</name><value><cyclestr>@Y@m@d@H</cyclestr></value></envar>\n\t<envar><name>PDY</name><value><cyclestr>@Y@m@d</cyclestr></value></envar>\n\t<envar><name>cyc</name><value><cyclestr>@H</cyclestr></value></envar>\n\t<envar><name>COMROOT</name><value>/home/runner/work/global-workflow/global-workflow/ci/scripts/tests/testdata/RUNDIR</value></envar>\n\t<envar><name>DATAROOT</name><value>/scratch1/NCEPDEV/stmp2/runner/RUNDIRS/C48_ATM/gfs.<cyclestr>@Y@m@d@H</cyclestr></value></envar>\n\n\t<dependency>\n\t\t<and>\n\t\t\t<taskdep task="gfs_arch"/>\n\t\t</and>\n\t</dependency>\n\n</task>\n\n</workflow>\n'.count
test_setup.py:43: AssertionError
Loading