action #160826
openopenQA Project (public) - coordination #112862: [saga][epic] Future ideas for easy multi-machine handling: MM-tests as first-class citizens
openQA Project (public) - coordination #111929: [epic] Stable multi-machine tests covering multiple physical workers
Optimize gre_tunnel_preup.sh generation jinja template size:S
0%
Description
Observation¶
#160646-3 shows that we generate a lot of empty lines with https://gitlab.suse.de/openqa/salt-states-openqa/-/blob/master/openqa/openvswitch.sls?ref_type=heads#L96-128
This can be optimized by using {%-
and -%}
at a lot more places to avoid linebreak generation for e.g. if-statements of set commands. Care must be taken to not remove linebreaks where they are actually needed to produce valid yaml which results in a working shell script.
Acceptance criteria¶
- AC1: The rendered openvswitch state definition is more readable
Acceptance tests¶
- AT1-1:
salt 'worker29.oqa.prg2.suse.org' cp.get_template salt://openqa/openvswitch.sls /tmp/openvswitch
shows no redundant blank lines
Suggestions¶
- Add a
-
, e.g.{%- for remote in otherworkers -%}
https://progress.opensuse.org/issues/160826
Optimize gre_tunnel_preup.sh generation jinja template
Observation¶
#160646-3 shows that we generate a lot of empty lines with https://gitlab.suse.de/openqa/salt-states-openqa/-/blob/master/openqa/openvswitch.sls?ref_type=heads#L96-128
This can be optimized by using {%-
and -%}
at a lot more places to avoid linebreak generation for e.g. if-statements of set commands. Care must be taken to not remove linebreaks where they are actually needed to produce valid yaml which results in a working shell script.
Acceptance criteria¶
- AC1: The rendered openvswitch state definition is more readable
Acceptance tests¶
- AT1-1:
salt 'worker29.oqa.prg2.suse.org' cp.get_template salt://openqa/openvswitch.sls /tmp/openvswitch
shows no redundant blank lines
Suggestions¶
- Add a
-
, e.g.{%- for remote in otherworkers -%}
Updated by nicksinger 7 months ago
- Copied from action #160646: multiple multi-machine test failures, no GRE tunnels are setup between machines anymore at all size:M added
Updated by okurz 4 months ago
- Related to action #157606: Prevent missing gre tunnel connections in our salt states due to misconfiguration added