feat: Make Python Virtual Environment Persistent: Install Persistent Environment in Computing Unit #5901
Open
SarahAsad23 wants to merge 15 commits into
Open
feat: Make Python Virtual Environment Persistent: Install Persistent Environment in Computing Unit #5901SarahAsad23 wants to merge 15 commits into
SarahAsad23 wants to merge 15 commits into
Conversation
Contributor
Automated Reviewer SuggestionsBased on the
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5901 +/- ##
============================================
- Coverage 54.91% 54.56% -0.35%
+ Complexity 2956 2896 -60
============================================
Files 1117 1110 -7
Lines 43133 42951 -182
Branches 4648 4631 -17
============================================
- Hits 23685 23435 -250
- Misses 18054 18145 +91
+ Partials 1394 1371 -23
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
# Conflicts: # frontend/src/app/workspace/component/power-button/computing-unit-selection.component.spec.ts
kunwp1
requested changes
Jun 26, 2026
kunwp1
left a comment
Contributor
There was a problem hiding this comment.
Left some comments.
In the PR description, please mention that user cannot create a venv anymore from the CU modal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
This PR adds support for installing persistent Python Virtual Environments (PVEs) into a Computing Unit (CU). All PVEs associated with a user are displayed within the CU management interface, allowing users to select and install an environment when it is needed for workflow execution.
When a PVE is installed, the environment is recreated inside the CU using the package information stored in the database. Once installation completes, the environment becomes available for Python UDF execution within that CU.
If a PVE has already been installed in a CU, users may choose to Reinstall it. During reinstallation, the packages currently installed in the CU are compared against the packages stored in the persistent PVE definition, and any missing or updated packages are applied. This allows an existing CU environment to be synchronized with the latest persistent PVE definition without requiring a full reinstall.
Users may also make package changes directly within a CU after installation. These changes remain local to the CU and are not persisted to the PVE stored in the database. A warning message is displayed in the CU management interface to indicate that manual changes made within a CU are not reflected in the persistent PVE definition.
Note: Users can no longer create virtual environments from the CU modal anymore.
Any related issues, documentation, discussions?
Closes #5361.
How was this PR tested?
Tested Manually and test cases in computing-unit-selection.component.spec.
Was this PR authored or co-authored using generative AI tooling?
Co-authored using: Claude Code