Skip to content

[SYSADMIN ACTION][Documentation:System] docs for add global submitty venv - #804

Merged
bmcutler merged 2 commits into
mainfrom
add-global-submitty-venv
Nov 24, 2026
Merged

bmcutler merged 2 commits into
mainfrom
add-global-submitty-venv

Conversation

@roye2

@roye2 roye2 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

PR #12141 adds a global Submitty Python Virtual Environment (venv) at /usr/local/submitty/venv, which is used by Submitty scripts, daemons, jobs, etc.

This is a PR with a Sysadmin action, since changes to the apache configuration file are necessary for the PR.

What is the New Behavior?

Documentation has been added for the Sysadmin Action for Submitty PR #12141.

image

What steps should a reviewer take to reproduce or test the bug or new feature?

Make sure the documentation makes sense and describes all aspects of the change that require sysadmin attention.

Other information

As of making this PR, the links to release 'v26.11.01' do not work because there is not such a release. I am assuming that the release that contains these changes will be named that. If I should handle this differently, please advise.

@github-project-automation github-project-automation Bot moved this to Seeking Reviewer in Submitty Development Nov 20, 2026
@roye2 roye2 changed the title [SYSADMIN ACTION] docs for add global submitty venv [SYSADMIN ACTION][Documentation:System] docs for add global submitty venv Nov 20, 2026
@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Nov 24, 2026
bmcutler added a commit to Submitty/Submitty that referenced this pull request Nov 24, 2026
### Why is this Change Important & Necessary?
Related to #10432

We currently install pip dependencies to the global system environment.
As of Ubuntu 24.04, this is considered bad practice to do as it can
break system dependencies causing unexpected issues. Thus, use of
virtual environments should be done before migrating to Ubuntu 24.04.

### What is the New Behavior?
I have added a global venv `/usr/local/submitty/venv` for all scripts,
daemons, etc to use. Given we were relying on a global environment
before, there shouldn't be any risk of sharing this global venv across
all scripts and daemons. In the future, we can consider splitting this
up more if that seems worthwhile.

### What steps should a reviewer take to reproduce or test the bug or
new feature?
Install the changes and verify correct behavior of various scripts,
daemons, and other actions which call down to python scripts. Updating
workers should definitely be tested (I have not done this yet).

### Automated Testing & Documentation
This definitely requires documentation updates and I have not made those
changes yet.

### Other information
This is in draft but any reviews are still welcome.

### TODO:

- [ ] Update documentation to tell sysadmins/shell users about the new
virtual environment [PR
#804](Submitty/submitty.github.io#804)
- [x] Consider if this deserves a sys admin action tag? If people wrote
things to call any of our scripts, they should be aware of the
dependency environment changing
- [x] Add to dev root bashrc to automatically put user in virtual
environment

---------

Co-authored-by: Nick Ciuica <nick.ciuica@gmail.com>
Co-authored-by: NicholasCiuica <183861504+NicholasCiuica@users.noreply.github.com>
Co-authored-by: roye2 <07eeroy@gmail.com>
Co-authored-by: Barb Cutler <bmcutler@users.noreply.github.com>
Co-authored-by: Emma Roy <emmaroy@moraine-154.dynamic.rpi.edu>
Co-authored-by: Emma Roy <emmaroy@midway-atoll-60.dynamic2.rpi.edu>
Co-authored-by: Emma Roy <emmaroy@pauling-170.dynamic.rpi.edu>
Co-authored-by: Emma Roy <emmaroy@caterpillar-89.dynamic2.rpi.edu>
Co-authored-by: Emma Roy <emmaroy@squat-thrust-90.dynamic2.rpi.edu>
Co-authored-by: Emma Roy <emmaroy@pauling-184.dynamic.rpi.edu>
@bmcutler
bmcutler merged commit fae60c2 into main Nov 24, 2026
1 of 4 checks passed
@bmcutler
bmcutler deleted the add-global-submitty-venv branch November 24, 2026 05:39
@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Done in Submitty Development Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants