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 cab1667
Show file tree
Hide file tree
Showing 2 changed files with 16 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
3 changes: 3 additions & 0 deletions spec/acceptance/peadm_spec/plans/add_compiler.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
$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',
}
Expand Down

0 comments on commit cab1667

Please sign in to comment.