@@ -1417,7 +1417,7 @@ defaults:
14171417 cpv_noise_tf_per_slot : 400
14181418 cpv_push_dcs_ccdb : " http://alio2-cr1-flp199-ib:8084"
14191419vars :
1420- auto_stop_enabled : " {{ auto_stop_timeout != 'none' }}"
1420+ auto_stop_enabled : " {{ !strings.IsFalsy(auto_stop_timeout) }}"
14211421 ddsched_enabled : " {{ epn_enabled == 'true' && dd_enabled == 'true' }}"
14221422 odc_enabled : " {{ epn_enabled }}"
14231423 odc_topology_fullname : ' {{ epn_enabled == "true" ? odc.GenerateEPNTopologyFullname() : "" }}'
@@ -1447,7 +1447,7 @@ roles:
14471447 task :
14481448 load : readout-ctp
14491449 - name : " data-distribution"
1450- enabled : " {{dd_enabled == 'true' && (qcdd_enabled == 'false' && minimal_dpl_enabled == 'false' && dpl_workflow == 'none' && dpl_command == 'none' )}}"
1450+ enabled : " {{dd_enabled == 'true' && (qcdd_enabled == 'false' && minimal_dpl_enabled == 'false' && strings.IsFalsy( dpl_workflow) && strings.IsFalsy( dpl_command) )}}"
14511451 roles :
14521452 # stfb-standalone not supported on CTP machine
14531453 # if ctp_readout_enabled, we also assume stfb_standalone is false
@@ -1473,7 +1473,7 @@ roles:
14731473 task :
14741474 load : stfsender
14751475 - name : " data-distribution-dpl"
1476- enabled : " {{(qcdd_enabled == 'true' || minimal_dpl_enabled == 'true' || dpl_workflow != 'none' || dpl_command != 'none' ) && dd_enabled == 'true'}}"
1476+ enabled : " {{(qcdd_enabled == 'true' || minimal_dpl_enabled == 'true' || !strings.IsFalsy( dpl_workflow) || !strings.IsFalsy(dpl_command) ) && dd_enabled == 'true'}}"
14771477 defaults :
14781478 path_to_readout_proxy : " {{ Parent().Path }}.data-distribution-dpl.stfb:dpl-chan"
14791479 roles :
@@ -1497,7 +1497,7 @@ roles:
14971497 # NOTE: plain stfbuilder TT (not stfbuilder-senderoutput) because we want dpl-chan
14981498 load : stfbuilder
14991499 - name : " stfs" # this stfs is for any DPL workflow. We assume that it has a device dpl-output-proxy and a downstream channel
1500- enabled : " {{stfb_standalone == 'false' && (qcdd_enabled == 'true' || minimal_dpl_enabled == 'true' || dpl_workflow != 'none' || dpl_command != 'none' )}}"
1500+ enabled : " {{stfb_standalone == 'false' && (qcdd_enabled == 'true' || minimal_dpl_enabled == 'true' || !strings.IsFalsy( dpl_workflow) || !strings.IsFalsy(dpl_command) )}}"
15011501 vars :
15021502 dd_discovery_stfs_id : stfs-{{ ctp_readout_host }}-{{ uid.New() }}
15031503 stfs_input_channel_name : downstream
@@ -1515,13 +1515,13 @@ roles:
15151515 enabled : " {{ minimal_dpl_enabled == 'true' }}"
15161516 include : minimal-dpl
15171517 - name : dpl
1518- enabled : " {{ (flp_workflows_jit_enabled == 'false' || detector == 'TPC') && dpl_workflow != 'none' }}"
1518+ enabled : " {{ (flp_workflows_jit_enabled == 'false' || detector == 'TPC') && !strings.IsFalsy(dpl_workflow) }}"
15191519 include : " {{ dpl_workflow }}"
15201520 - name : dpl
1521- enabled : " {{ flp_workflows_jit_enabled == 'true' && detector != 'TPC' && dpl_workflow != 'none' && dpl_command == 'none' }}"
1521+ enabled : " {{ flp_workflows_jit_enabled == 'true' && detector != 'TPC' && !strings.IsFalsy( dpl_workflow) && strings.IsFalsy( dpl_command) }}"
15221522 include : " {{ flp_workflows_jit_enabled == 'true' ? dpl.GenerateFromUri(dpl_workflow) : '' }}"
15231523 - name : dpl
1524- enabled : " {{ flp_workflows_jit_enabled == 'true' && detector != 'TPC' && dpl_command != 'none' }}"
1524+ enabled : " {{ flp_workflows_jit_enabled == 'true' && detector != 'TPC' && !strings.IsFalsy(dpl_command) }}"
15251525 include : " {{ flp_workflows_jit_enabled == 'true' ? dpl.Generate(dpl_command) : '' }}"
15261526 # roc-ctp-emulator doesn't run on CTP
15271527 - name : drop-caches
@@ -1577,7 +1577,7 @@ roles:
15771577 task :
15781578 load : readout
15791579 - name : " data-distribution"
1580- enabled : " {{dd_enabled == 'true' && (qcdd_enabled == 'false' && minimal_dpl_enabled == 'false' && dpl_workflow == 'none' && dpl_command == 'none' )}}"
1580+ enabled : " {{dd_enabled == 'true' && (qcdd_enabled == 'false' && minimal_dpl_enabled == 'false' && strings.IsFalsy( dpl_workflow) && strings.IsFalsy( dpl_command) )}}"
15811581 roles :
15821582 - name : " stfb-standalone"
15831583 enabled : " {{stfb_standalone}}"
@@ -1612,7 +1612,7 @@ roles:
16121612 task :
16131613 load : stfsender
16141614 - name : " data-distribution-dpl"
1615- enabled : " {{(qcdd_enabled == 'true' || minimal_dpl_enabled == 'true' || dpl_workflow != 'none' || dpl_command != 'none' ) && dd_enabled == 'true'}}"
1615+ enabled : " {{(qcdd_enabled == 'true' || minimal_dpl_enabled == 'true' || !strings.IsFalsy( dpl_workflow) || !strings.IsFalsy(dpl_command) ) && dd_enabled == 'true'}}"
16161616 defaults :
16171617 path_to_readout_proxy : " {{ Parent().Path }}.data-distribution-dpl.stfb:dpl-chan"
16181618 roles :
@@ -1637,7 +1637,7 @@ roles:
16371637 # NOTE: plain stfbuilder TT (not stfbuilder-senderoutput) because we want dpl-chan
16381638 load : stfbuilder
16391639 - name : " stfs" # this stfs is for any DPL workflow. We assume that it has a device dpl-output-proxy and a downstream channel
1640- enabled : " {{stfb_standalone == 'false' && (qcdd_enabled == 'true' || minimal_dpl_enabled == 'true' || dpl_workflow != 'none' || dpl_command != 'none' )}}"
1640+ enabled : " {{stfb_standalone == 'false' && (qcdd_enabled == 'true' || minimal_dpl_enabled == 'true' || !strings.IsFalsy( dpl_workflow) || !strings.IsFalsy(dpl_command) )}}"
16411641 vars :
16421642 dd_discovery_stfs_id : stfs-{{ it }}-{{ uid.New() }}
16431643 stfs_input_channel_name : downstream
@@ -1655,13 +1655,13 @@ roles:
16551655 enabled : " {{ minimal_dpl_enabled == 'true' }}"
16561656 include : minimal-dpl
16571657 - name : dpl
1658- enabled : " {{ flp_workflows_jit_enabled == 'false' && dpl_workflow != 'none' }}"
1658+ enabled : " {{ flp_workflows_jit_enabled == 'false' && !strings.IsFalsy(dpl_workflow) }}"
16591659 include : " {{ dpl_workflow }}"
16601660 - name : dpl
1661- enabled : " {{ flp_workflows_jit_enabled == 'true' && dpl_workflow != 'none' && dpl_command == 'none' }}"
1661+ enabled : " {{ flp_workflows_jit_enabled == 'true' && !strings.IsFalsy( dpl_workflow) && strings.IsFalsy( dpl_command) }}"
16621662 include : " {{ flp_workflows_jit_enabled == 'true' ? dpl.GenerateFromUriOrFallbackToTemplate(dpl_workflow) : '' }}"
16631663 - name : dpl
1664- enabled : " {{ flp_workflows_jit_enabled == 'true' && dpl_command != 'none' }}"
1664+ enabled : " {{ flp_workflows_jit_enabled == 'true' && !strings.IsFalsy(dpl_command) }}"
16651665 include : " {{ flp_workflows_jit_enabled == 'true' ? dpl.Generate(dpl_command) : '' }}"
16661666 - name : o2-roc-ctp-emulators
16671667 enabled : " {{roc_ctp_emulator_enabled == 'true'}}"
@@ -1741,16 +1741,16 @@ roles:
17411741 value : " {{ qc_remote_machine }}"
17421742 roles :
17431743 - name : dpl
1744- enabled : " {{ qc_remote_jit_enabled == 'false' && qc_remote_workflow != 'none' }}"
1744+ enabled : " {{ qc_remote_jit_enabled == 'false' && !strings.IsFalsy(qc_remote_workflow) }}"
17451745 include : " {{ qc_remote_workflow }}"
17461746 - name : dpl
1747- enabled : " {{ qc_remote_jit_enabled == 'true' && qc_remote_workflow != 'none' && qc_dpl_command == 'none' }}"
1747+ enabled : " {{ qc_remote_jit_enabled == 'true' && !strings.IsFalsy( qc_remote_workflow) && strings.IsFalsy( qc_dpl_command) }}"
17481748 include : " {{ qc_remote_jit_enabled == 'true' ? dpl.GenerateFromUri(qc_remote_workflow) : '' }}"
17491749 - name : dpl
1750- enabled : " {{ qc_remote_jit_enabled == 'true' && qc_dpl_command != 'none' }}"
1750+ enabled : " {{ qc_remote_jit_enabled == 'true' && !strings.IsFalsy(qc_dpl_command) }}"
17511751 include : " {{ qc_remote_jit_enabled == 'true' ? dpl.Generate(qc_dpl_command) : '' }}"
17521752 - name : fairmq-shmmonitor
1753- enabled : " {{ fmq_cleanup_enabled == 'true' && qc_remote_workflow != 'none' }}"
1753+ enabled : " {{ fmq_cleanup_enabled == 'true' && !strings.IsFalsy(qc_remote_workflow) }}"
17541754 task :
17551755 load : " fairmq-shmmonitor"
17561756 trigger : DESTROY
@@ -1760,7 +1760,7 @@ roles:
17601760 # However if the {{detector}}_qc_remote_workflow is none, we deploy a ghost role that does nothing to preserve
17611761 # control tree state management.// FIXME: this is probably not needed anymore
17621762 - name : dpl-noop-subwf
1763- enabled : " {{ qc_remote_workflow == 'none' }}"
1763+ enabled : " {{ strings.IsFalsy( qc_remote_workflow) }}"
17641764 call :
17651765 func : testplugin.Noop()
17661766 trigger : CONFIGURE
@@ -1797,7 +1797,7 @@ roles:
17971797 # However if the {{detector}}_qc_remote_workflow is none, we deploy a ghost role that does nothing to preserve
17981798 # control tree state management.// FIXME: this is probably not needed anymore
17991799 - name : dpl-noop-subwf
1800- enabled : " {{ qc_remote_workflow == 'none' }}"
1800+ enabled : " {{ strings.IsFalsy( qc_remote_workflow) }}"
18011801 call :
18021802 func : testplugin.Noop()
18031803 trigger : CONFIGURE
@@ -1827,7 +1827,7 @@ roles:
18271827 # If the fwd_qc_remote_workflow is none, we deploy a ghost role that does nothing to preserve
18281828 # control tree state management. // FIXME: this is probably not needed anymore
18291829 - name : dpl-noop-subwf
1830- enabled : " {{ qc_remote_workflow == 'none' }}"
1830+ enabled : " {{ strings.IsFalsy( qc_remote_workflow) }}"
18311831 call :
18321832 func : testplugin.Noop()
18331833 trigger : CONFIGURE
@@ -1846,18 +1846,18 @@ roles:
18461846 value : " {{ qc_remote_machine }}"
18471847 roles :
18481848 - name : dpl
1849- enabled : " {{ qc_remote_jit_enabled == 'false' && qc_remote_workflow != 'none' }}"
1849+ enabled : " {{ qc_remote_jit_enabled == 'false' && !strings.IsFalsy(qc_remote_workflow) }}"
18501850 include : " {{ qc_remote_workflow }}"
18511851 - name : dpl
1852- enabled : " {{ qc_remote_jit_enabled == 'true' && qc_remote_workflow != 'none' && qc_dpl_command == 'none' }}"
1852+ enabled : " {{ qc_remote_jit_enabled == 'true' && !strings.IsFalsy( qc_remote_workflow) && strings.IsFalsy( qc_dpl_command) }}"
18531853 include : " {{ qc_remote_jit_enabled == 'true' ? dpl.GenerateFromUri(qc_remote_workflow) : '' }}"
18541854 - name : dpl
1855- enabled : " {{ qc_remote_jit_enabled == 'true' && qc_dpl_command != 'none' }}"
1855+ enabled : " {{ qc_remote_jit_enabled == 'true' && !strings.IsFalsy(qc_dpl_command) }}"
18561856 include : " {{ qc_remote_jit_enabled == 'true' ? dpl.Generate(qc_dpl_command) : '' }}"
18571857 # If the ctp_qc_remote_workflow is none, we deploy a ghost role that does nothing to preserve
18581858 # control tree state management. FIXME: this is probably not needed anymore
18591859 - name : dpl-noop-subwf
1860- enabled : " {{ qc_remote_workflow == 'none' }}"
1860+ enabled : " {{ strings.IsFalsy( qc_remote_workflow) }}"
18611861 call :
18621862 func : testplugin.Noop()
18631863 trigger : CONFIGURE
0 commit comments