|
1 | 1 | ---
|
2 |
| -name: "Test add_replica plan" |
| 2 | +name: "Add Replica test" |
3 | 3 |
|
4 | 4 | on:
|
5 | 5 | workflow_dispatch:
|
|
15 | 15 | version:
|
16 | 16 | description: 'PE version to install'
|
17 | 17 | 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' |
19 | 23 |
|
20 | 24 | env:
|
21 | 25 | HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
|
22 | 26 | HONEYCOMB_DATASET: litmus tests
|
23 | 27 |
|
24 | 28 | 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 }}" |
27 | 31 | runs-on: ubuntu-20.04
|
28 | 32 | env:
|
29 | 33 | BOLT_GEM: true
|
|
41 | 45 |
|
42 | 46 | steps:
|
43 | 47 | - name: 'Start SSH session'
|
| 48 | + if: ${{ github.event.inputs.ssh-debugging == 'true' }} |
44 | 49 | uses: luchihoratiu/debug-via-ssh@main
|
45 | 50 | with:
|
46 | 51 | NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
|
|
83 | 88 | echo STEP_START=$(date +%s) >> $GITHUB_ENV
|
84 | 89 | echo ::endgroup::
|
85 | 90 |
|
86 |
| - - name: 'Provision test cluster' |
| 91 | + - name: 'Provision test cluster (specified architecture with added DR)' |
87 | 92 | timeout-minutes: 15
|
88 | 93 | run: |
|
89 | 94 | echo ::group::prepare
|
@@ -140,15 +145,15 @@ jobs:
|
140 | 145 | echo ::endgroup::
|
141 | 146 |
|
142 | 147 | - name: 'Run add_replica plan'
|
143 |
| - timeout-minutes: 10 |
| 148 | + timeout-minutes: 30 |
144 | 149 | run: |
|
145 | 150 | 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 \ |
147 | 152 | --inventoryfile spec/fixtures/litmus_inventory.yaml \
|
148 | 153 | --modulepath spec/fixtures/modules
|
149 |
| - |
| 154 | +
|
150 | 155 | - name: 'Wait as long as the file ${HOME}/pause file is present'
|
151 |
| - if: ${{ always() }} |
| 156 | + if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }} |
152 | 157 | run: |
|
153 | 158 | while [ -f "${HOME}/pause" ] ; do
|
154 | 159 | echo "${HOME}/pause present, sleeping for 60 seconds..."
|
|
0 commit comments