pytogo / portforward

Kubernetes Port-Forward Go-Edition For Python
https://portforward.readthedocs.io
MIT License
17 stars 6 forks source link

Portforward 0.4.3 hanging forever with pytest #18

Closed alaeddine-13 closed 1 year ago

alaeddine-13 commented 1 year ago

Description

It looks like portforward when used within a pytest environment, it will hang forever. In Jina's CI tests, we use portforward to test deployed services. However, since the latest 0.4.3, the CI will hang forever right when portforward is called. Therefore, we had to limit the portforward version to 0.4.2

What I Did

in a pytest script, do portforwarding to any pod:

with portforward.forward(
    namespace, pod_name, port, port, config_path
):

this will hang forever

corka149 commented 1 year ago

Hi @alaeddine-13

thx for your report.

I found the issue and fix it. The version 0.4.4 will be released today.