Skip to content

Commit 2e63a65

Browse files
Dana SinghDana Singh
authored andcommitted
#203 See if yaml is being parsed in flow.cylc
1 parent 35ca3f9 commit 2e63a65

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

flow.cylc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{# branch, the ppan site file should be specified. The ppan site comprises of gfdl specific tools. Other available #}
1414
{# sites include ppan, gfdl-ws, and generic. The generic.cylc site file is used for a portable flow.cylc. #}
1515
{# (Probably, we should use similar mechanisms where sensible, e.g. for shared items among workflows) #}
16-
{% set SITE = SITE %}
16+
{% set SITE = postprocess['settings']['site'] %}
1717

1818
{# Setting STALL_TIMEOUT here provides the ability to override the value if necessary #}
1919
{# A use case for overriding this value is exhibited in the fre-workflows pipeline test_cloud_runner.yaml #}

for_gh_runner/runscript.sh

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cd -
3232
# install/register cylc plugin
3333
pip install .
3434
cylc version --long
35-
exit 1
35+
#exit 1
3636
##################################
3737

3838
get_user_input () {
@@ -101,15 +101,21 @@ fre_pp_steps () {
101101
#Not sure if needed because if no global.cylc found, cylc uses default, which utilizes background jobs anyway ...
102102
#export CYLC_CONF_PATH=/mnt/cylc-src/${name}/generic-global-config/
103103

104-
## Configure the rose-suite and rose-app files for the workflow
105-
echo -e "\nRunning fre pp configure-yaml, combining separate yaml configs into one, then writing rose-suite/app config files ..."
106-
fre -vv pp configure-yaml -e ${expname} -p ${plat} -t ${targ} -y ${yamlfile}
107-
check_exit_status "CONFIGURE-YAML"
108-
109-
## Validate the configuration files
110-
echo -e "\nRunning fre pp validate, validating rose-suite/app config files ..."
111-
fre -vv pp validate -e ${expname} -p ${plat} -t ${targ}
112-
check_exit_status "VALIDATE"
104+
# ## Configure the rose-suite and rose-app files for the workflow
105+
# echo -e "\nRunning fre pp configure-yaml, combining separate yaml configs into one, then writing rose-suite/app config files ..."
106+
# fre -vv pp configure-yaml -e ${expname} -p ${plat} -t ${targ} -y ${yamlfile}
107+
# check_exit_status "CONFIGURE-YAML"
108+
echo -e "\nRunning fre yamltools combine-yamls"
109+
fre -vv yamltools combine-yamls -e ${expname} -p ${plat} -t ${targ} -y ${yamlfile} --use pp -o config.yaml
110+
check_exit_status "COMBINE-YAMLS"
111+
# move yaml to cylc-src
112+
mv config.yaml /mnt/cylc-src/${name}/
113+
#############
114+
115+
# ## Validate the configuration files
116+
# echo -e "\nRunning fre pp validate, validating rose-suite/app config files ..."
117+
# fre -vv pp validate -e ${expname} -p ${plat} -t ${targ}
118+
# check_exit_status "VALIDATE"
113119

114120
# Install
115121
echo -e "\nRunning fre pp install, installing workflow in ${HOME}/cylc-run/${name} ..."
@@ -121,6 +127,10 @@ fre_pp_steps () {
121127
cylc play --no-detach --debug -s 'STALL_TIMEOUT="PT0S"' ${name}
122128
#check_exit_status "PLAY" # if cylc play fails and this is not commented, log uploading does not work
123129

130+
#####
131+
cat /mnt/cylc-run/${name}/log/config/flow-processed.cylc
132+
#####
133+
124134
## SUMMARY
125135
echo -e "\nWorkflow ended, final task states from workflow-state are ..."
126136
cylc workflow-state -v ${name}

0 commit comments

Comments
 (0)