From 63685df30b8d3285573656371d1840cf19a0b377 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Mon, 27 Jun 2022 19:15:11 +0000 Subject: [PATCH] Pin pykube-ng and fix the CI This change tries to fix the following issue: kubernetes.config.config_exception.ConfigException: Invalid kube-config file. No configuration found. This change also provides input to the wsdump test to prevent the command from hanging when testing the console stream connection. Change-Id: I4880e0420b7a66639258aa84a8d61b5620313ee3 --- playbooks/zuul-operator-functional/test.yaml | 5 +++-- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/playbooks/zuul-operator-functional/test.yaml b/playbooks/zuul-operator-functional/test.yaml index 46bb568..798bf27 100644 --- a/playbooks/zuul-operator-functional/test.yaml +++ b/playbooks/zuul-operator-functional/test.yaml @@ -164,9 +164,10 @@ delay: 1 - name: connect to console-stream - command: | - wsdump -r --eof-wait 5 -t '{"uuid":"{{ _job_uuid.stdout_lines[0] }}","logfile":"console.log"}' {{ zuul_ws_url }}/api/tenant/local/console-stream + shell: | + (sleep 60; echo "") | wsdump -r -t '{"uuid":"{{ _job_uuid.stdout_lines[0] }}","logfile":"console.log"}' {{ zuul_ws_url }}/api/tenant/local/console-stream register: console_stream + failed_when: false - name: show console stream debug: diff --git a/requirements.txt b/requirements.txt index d2ad579..69276c5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,4 @@ kopf<1.31.0 kubernetes jinja2 pymysql -pykube-ng +pykube-ng<22.6.0