Fix: Improve pip install reliability lf-act-venv 61/73561/3
authorAnil Belur <abelur@linuxfoundation.org>
Mon, 25 Aug 2025 13:43:53 +0000 (23:43 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 25 Aug 2025 22:53:43 +0000 (08:53 +1000)
commitc45aef3df0a903aa8e824afba8094f873da1f131
treee884271c933374ca058f680f04f66d676dea8741
parentc05412b71ea0db6250094160bedc41da791cad3c
Fix: Improve pip install reliability lf-act-venv

Enhance the lf-activate-venv function with robust error handling for
pip installations. Add trusted host configurations, proxy detection,
and fallback strategies to address common "Could not find a version"
errors caused by SSL certificate issues, firewall restrictions, and
network connectivity problems in CI/CD environments.

Changes include:
- Added trusted host flags for PyPI mirrors
- Implemented proxy detection and configuration
- Created fallback installation with verbose debugging
- Added individual package installation as final fallback
- Improved error messages with actionable troubleshooting guidance

Change-Id: Ice9471c0bbd4bda471259f7345298de7ce61b9a3
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jenkins-init-scripts/lf-env.sh
releasenotes/notes/improve-pip-install-network-reliability-b8f3e4c2d7a5946e.yaml [new file with mode: 0644]