Repository navigation
feat: Make Python Virtual Environment Persistent: Install Persistent Environment in Computing Unit - #5901
Merged
Conversation
SarahAsad23
marked this pull request as draft
June 23, 2026 06:52
Contributor
Automated Reviewer SuggestionsBased on the
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5901 +/- ##
============================================
- Coverage 55.25% 54.95% -0.30%
+ Complexity 2993 2959 -34
============================================
Files 1117 1117
Lines 43195 43237 +42
Branches 4657 4665 +8
============================================
- Hits 23866 23762 -104
- Misses 17930 18069 +139
- Partials 1399 1406 +7
*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
SarahAsad23
marked this pull request as ready for review
June 24, 2026 17:35
kunwp1
self-requested a review
June 26, 2026 00:55
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.
kunwp1
reviewed
Jun 27, 2026
kunwp1
approved these changes
Jun 28, 2026
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