Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a virtual environment for helix-scripts/ #1371

Closed
1 of 3 tasks
dougbu opened this issue Nov 6, 2023 · 2 comments
Closed
1 of 3 tasks

Use a virtual environment for helix-scripts/ #1371

dougbu opened this issue Nov 6, 2023 · 2 comments
Assignees

Comments

@dougbu
Copy link
Member

dougbu commented Nov 6, 2023

Our Helix Python code is quite dependent on the Python packages installed along w/ the OS in most Linux distributions. In addition, cloud-init is a consistent Python-based package installed in most Linux systems in Azure. We do not currently separate ourselves from that default installation at all. Worse, even if we chose the newest python3 executable on a system (see #436), we end up sharing common package directories w/ the system.

The first step in #1363 is to move our Python use into a virtual environment. This will allow us to installer newer python3 executables pip and other Python packages based on our own requirements, not the stability requirements of most OS vendors.

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Moved our team's Python infrastructure into a venv, isolating us from the system. This should have minimal impact on customers because existing python3 executables and system-installed Python packages are not changing. However, if you use python3 in your pipelines and Helix jobs, some Python packages may be missing. Please let us know if you hit issues and are unable to use a venv (preferably in the Helix work item folder or build root).

@dougbu
Copy link
Member Author

dougbu commented Nov 29, 2023

done in !35082 😁

@dougbu dougbu closed this as completed Nov 29, 2023
@garath
Copy link
Member

garath commented Dec 5, 2023

Looks like this broke at least one customer. See build 2329162. Teams FR converation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants