Skip to content

feat: Make Python Virtual Environment Persistent: Add Environments to Left Panel #5577

Open
SarahAsad23 wants to merge 11 commits into
apache:mainfrom
SarahAsad23:add-pve-panel
Open

feat: Make Python Virtual Environment Persistent: Add Environments to Left Panel #5577
SarahAsad23 wants to merge 11 commits into
apache:mainfrom
SarahAsad23:add-pve-panel

Conversation

@SarahAsad23

@SarahAsad23 SarahAsad23 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

This PR introduces persistent Python Virtual Environments (PVEs) by moving them out of the Computing Unit (CU) lifecycle and storing them in the database.

Previously, PVEs were managed through Computing Units and existed only within the CU they were created in. As a result, PVEs were lost when the corresponding CU was terminated. This PR adds a new python_virtual_environments table to persist PVE configurations and introduces a dedicated dashboard interface for managing them.

Users can now create, view, update, and delete their own Python virtual environments through a new "Environments" page in the dashboard sidebar. PVE definitions are stored as user-owned resources in the database and can be managed independently of Computing Units.

Screenshot 2026-06-08 at 6 39 55 PM Screenshot 2026-06-08 at 6 40 19 PM

Any related issues, documentation, discussions?

Related discussions and issues: #5360, #5361.

How was this PR tested?

Tested manually and tests added to PveResourceSpec.

Was this PR authored or co-authored using generative AI tooling?

Co-authored using: Claude Code

@github-actions github-actions Bot added engine ddl-change Changes to the TexeraDB DDL frontend Changes related to the frontend GUI platform Non-amber Scala service paths labels Jun 9, 2026
@SarahAsad23 SarahAsad23 marked this pull request as draft June 9, 2026 00:12
@codecov-commenter

codecov-commenter commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 47.82609% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.15%. Comparing base (564ccdb) to head (de5d222).

Files with missing lines Patch % Lines
...esource/pythonvirtualenvironment/PveResource.scala 0.00% 30 Missing ⚠️
...virtual-environment/virtual-environment.service.ts 0.00% 4 Missing ⚠️
...exera/service/resource/AccessControlResource.scala 0.00% 1 Missing ⚠️
...resource/pythonvirtualenvironment/PveManager.scala 96.42% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5577      +/-   ##
============================================
- Coverage     52.17%   52.15%   -0.03%     
+ Complexity     2482     2478       -4     
============================================
  Files          1068     1068              
  Lines         41311    41380      +69     
  Branches       4439     4448       +9     
============================================
+ Hits          21556    21583      +27     
- Misses        18490    18530      +40     
- Partials       1265     1267       +2     
Flag Coverage Δ *Carryforward flag
access-control-service 64.28% <0.00%> (-0.33%) ⬇️
agent-service 33.76% <ø> (ø) Carriedforward from 5619875
amber 53.22% <46.55%> (-0.07%) ⬇️
computing-unit-managing-service 1.65% <ø> (ø)
config-service 56.06% <ø> (ø)
file-service 38.32% <ø> (ø)
frontend 46.43% <60.00%> (+<0.01%) ⬆️
pyamber 90.72% <ø> (ø) Carriedforward from 5619875
python 90.75% <ø> (ø) Carriedforward from 5619875
workflow-compiling-service 58.69% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@SarahAsad23 SarahAsad23 marked this pull request as ready for review June 9, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ddl-change Changes to the TexeraDB DDL engine frontend Changes related to the frontend GUI platform Non-amber Scala service paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants