Skip to content

Commit 8226dff

Browse files
reidmvtimidri
andcommitted
Update add_replica Github Actions workflow
Update the Github Actions workflow for peadm::add_replica to support optional ssh-debugging and to use the latest LTS by default Co-authored-by: Dimitri Tischenko <[email protected]>
1 parent d111ff2 commit 8226dff

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/test-add-replica.yaml

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: "Test add_replica plan"
2+
name: "Add Replica test"
33

44
on:
55
workflow_dispatch:
@@ -15,15 +15,19 @@ on:
1515
version:
1616
description: 'PE version to install'
1717
required: true
18-
default: '2019.8.5'
18+
default: '2019.8.7'
19+
ssh-debugging:
20+
description: 'Boolean; whether or not to pause for ssh debugging'
21+
required: true
22+
default: 'false'
1923

2024
env:
2125
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
2226
HONEYCOMB_DATASET: litmus tests
2327

2428
jobs:
25-
smoke-test:
26-
name: "${{ matrix.architecture }}, ${{ matrix.image }}, PE ${{ matrix.version }}"
29+
test-add-replica:
30+
name: "PE ${{ matrix.version }} ${{ matrix.architecture }} on ${{ matrix.image }}"
2731
runs-on: ubuntu-20.04
2832
env:
2933
BOLT_GEM: true
@@ -41,6 +45,7 @@ jobs:
4145

4246
steps:
4347
- name: 'Start SSH session'
48+
if: ${{ github.event.inputs.ssh-debugging == 'true' }}
4449
uses: luchihoratiu/debug-via-ssh@main
4550
with:
4651
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
@@ -83,7 +88,7 @@ jobs:
8388
echo STEP_START=$(date +%s) >> $GITHUB_ENV
8489
echo ::endgroup::
8590
86-
- name: 'Provision test cluster'
91+
- name: 'Provision test cluster (specified architecture with added DR)'
8792
timeout-minutes: 15
8893
run: |
8994
echo ::group::prepare
@@ -140,15 +145,15 @@ jobs:
140145
echo ::endgroup::
141146
142147
- name: 'Run add_replica plan'
143-
timeout-minutes: 10
148+
timeout-minutes: 30
144149
run: |
145150
buildevents cmd $TRACE_ID $STEP_ID 'bolt plan run peadm_spec::add_replica' -- \
146-
bundle exec bolt plan run peadm_spec::add_replica \
151+
bundle exec bolt plan run peadm_spec::add_replica -v \
147152
--inventoryfile spec/fixtures/litmus_inventory.yaml \
148153
--modulepath spec/fixtures/modules
149-
154+
150155
- name: 'Wait as long as the file ${HOME}/pause file is present'
151-
if: ${{ always() }}
156+
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}
152157
run: |
153158
while [ -f "${HOME}/pause" ] ; do
154159
echo "${HOME}/pause present, sleeping for 60 seconds..."

0 commit comments

Comments
 (0)