Steps to replicate the issue (include links if applicable):
- Install the latest versions of toolforge-cli and toolforge-builds-api on your local machine
- run toolforge build logs
What happens?:
you get this exception
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='api.svc.tools.eqiad1.wikimedia.cloud', port=30003): Max retries exceeded with url: /builds/v1/build/minikube-user-buildpacks-pipelinerun-54bmh/logs (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f48c31dfee0>, 'Connection to api.svc.tools.eqiad1.wikimedia.cloud timed out. (connect timeout=10)'))
What should have happened instead?:
It should have returned the log of the latest build.
Software version (skip for WMF-hosted wikis like Wikipedia):
My local machine is Ubuntu 20.04
how to fix
This is kind of issue has been solved in the past in the jobs-framework-cli repo by calling requests.Session's session.mount method. This is probably the part we need to take here too.