Skip to content

Commit

Permalink
Adding second wait to add compiler test to debug fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ragingra committed Apr 25, 2024
1 parent fa0dc4c commit 42bddc9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/test-add-compiler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,24 @@ jobs:
architecture=${{ matrix.architecture }} \
version=${{ matrix.version }}
- name: 'Wait as long as the file ${HOME}/pause file is present'
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}
run: |
while [ -f "${HOME}/pause" ] ; do
echo "${HOME}/pause present, sleeping for 60 seconds..."
sleep 60
done
echo "${HOME}/pause absent, continuing workflow."
- name: 'Run add_compiler plan'
timeout-minutes: 30
timeout-minutes: 50
run: |
bundle exec bolt plan run peadm_spec::add_compiler -v \
--inventoryfile spec/fixtures/litmus_inventory.yaml \
--modulepath spec/fixtures/modules \
architecture=${{ matrix.architecture }}
architecture=${{ matrix.architecture }} \
--stream \
--log-level debug
- name: 'Wait as long as the file ${HOME}/pause file is present'
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}
Expand Down
8 changes: 8 additions & 0 deletions spec/acceptance/peadm_spec/plans/add_compiler.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@
$target.set_var('certname', $fqdn.first['stdout'].chomp)
}

$primary_host = $t.filter |$n| { $n.vars['role'] == 'primary' }
run_task('peadm::puppet_runonce', $primary_host)

$common_params = {
avail_group_letter => 'A',
}

$arch_params =
case $architecture {
'standard': {{
primary_host => $t.filter |$n| { $n.vars['role'] == 'primary' },
primary_postgresql_host => $t.filter |$n| { $n.vars['role'] == 'primary' },
compiler_host => $t.filter |$n| { $n.vars['role'] == 'unconfigured-compiler' },
}}
'large': {{
primary_host => $t.filter |$n| { $n.vars['role'] == 'primary' },
primary_postgresql_host => $t.filter |$n| { $n.vars['role'] == 'primary' },
Expand Down
3 changes: 3 additions & 0 deletions spec/acceptance/peadm_spec/plans/provision_test_cluster.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
'extra-large-with-dr': {
['primary', 'primary-pdb-postgresql', 'compiler', 'replica', 'replica-pdb-postgresql', 'compiler']
}
'standard-with-extra-compiler': {
['primary', 'unconfigured-compiler']
}
'large-with-extra-compiler': {
['primary', 'compiler', 'unconfigured-compiler']
}
Expand Down

0 comments on commit 42bddc9

Please sign in to comment.