Skip to content

Commit 8f9e21a

Browse files
tests: Workaround pylibssh Failed to open session
Workaround ansible pylibssh issue which causes test failures pylibsshext.errors.LibsshChannelException: Failed to open_session: [-2] PR ansible/pylibssh#756 is under review but workaround it in the meantime.
1 parent a38790f commit 8f9e21a

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ jobs:
254254
source .venv/bin/activate
255255
256256
# Install system tests requirements
257-
pip3 install -r ./requirements.txt
257+
pip3 install -r ./requirements.txt -c ./constraints.txt
258258
259259
# Install yq to parse yaml files
260260
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64

.github/workflows/static-code-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
pip3 install virtualenv
7575
python3 -m venv .venv
7676
source .venv/bin/activate
77-
pip3 install -r ./requirements.txt
77+
pip3 install -r ./requirements.txt -c ./constraints.txt
7878
pip3 install flake8 pycodestyle isort mypy black
7979
8080
- name: flake8

src/tests/system/constraints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Workaround SSH_AGAIN and install from https://github.com/ansible/pylibssh/pull/756
2+
ansible-pylibssh@git+https://github.com/justin-stephenson/pylibssh@7afce6da8ca691e07a5027bfb6751b8ffc8ca748

src/tests/system/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
--constraint constraints.txt
12
flaky
23
pytest
34
git+https://github.com/next-actions/pytest-importance

0 commit comments

Comments
 (0)