Skip to content

Commit

Permalink
feat(kitchen): use workaround to prevent opensuse-leap-15 SCP failures
Browse files Browse the repository at this point in the history
* Workaround to avoid intermittent failures on `opensuse-leap-15`:
  - SCP did not finish successfully (255):  (Net::SCP::Error)
* Based on:
  - https://stackoverflow.com/a/47880689
  • Loading branch information
myii committed Sep 7, 2019
1 parent 121b5cc commit e815ba7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ ssf_node_anchors:
# release phase via. `pre-commit_semantic-release.sh`
# An alternative method could be to use:
# `git describe --abbrev=0 --tags`
title: 'ci(travis): use `dist: bionic`'
# yamllint disable-line rule:line-length
title: 'ci: use `dist: bionic` & apply `opensuse-leap-15` SCP error workaround'
body: '* Automated using https://github.com/myii/ssf-formula/pull/22'
github:
owner: saltstack-formulas
Expand Down
6 changes: 6 additions & 0 deletions ssf/files/default/kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ platforms:
{%- elif os == 'centos' and os_ver == 6 %}
run_command: /sbin/init
{%- endif %}
{%- if [os, os_ver] == ['opensuse/leap', 15] %}
# Workaround to avoid intermittent failures on `opensuse-leap-15`:
# => SCP did not finish successfully (255): (Net::SCP::Error)
transport:
max_ssh_sessions: 1
{%- endif %}
{%- endif %}
{%- endfor %}

Expand Down

0 comments on commit e815ba7

Please sign in to comment.