Skip to content

Commit 1590a02

Browse files
committed
feat(workflow): enhance test-upgrade-legacy with SSH config and grouping
- Added SSH configuration setup to ensure stable connections. - Grouped preparation and conversion steps for better readability in logs.
1 parent d8d2c7e commit 1590a02

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/test-upgrade-legacy.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,23 @@ jobs:
111111
- name: Convert one compiler to legacy
112112
timeout-minutes: 120
113113
run: |
114+
echo ::group::prepare
115+
mkdir -p $HOME/.ssh
116+
echo 'Host *' > $HOME/.ssh/config
117+
echo ' ServerAliveInterval 150' >> $HOME/.ssh/config
118+
echo ' ServerAliveCountMax 2' >> $HOME/.ssh/config
119+
bundle exec rake spec_prep
120+
echo ::endgroup::
114121
primary=$(yq '.groups[].targets[] | select(.vars.role == "primary") | .uri' spec/fixtures/litmus_inventory.yaml)
115122
compiler=$(yq '.groups[].targets[] | select(.vars.role == "compiler") | .uri' spec/fixtures/litmus_inventory.yaml | head -n 1)
123+
echo ::group::convert_compiler_to_legacy
116124
bundle exec bolt plan run peadm::convert_compiler_to_legacy \
117125
--inventoryfile spec/fixtures/litmus_inventory.yaml \
118126
--modulepath spec/fixtures/modules \
119127
--no-host-key-check \
120128
primary_host=$primary \
121129
legacy_hosts=$compiler
130+
echo ::endgroup::
122131
- name: Upgrade PE on test cluster
123132
timeout-minutes: 120
124133
run: |

0 commit comments

Comments
 (0)