You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cleanup: Rename setup-runner-pyenv.sh and remove stale conda/pyenv from VMs #1924
After #1898 (Python standardization to deadsnakes PPA):
Misleading filename: `autobot-infrastructure/shared/scripts/setup-runner-pyenv.sh` — content is now deadsnakes PPA install, but filename still says "pyenv". Should be renamed to `setup-runner-python.sh` (check for references first).
Stale installations on VMs: After deploying updated Ansible playbooks, old Python installations remain on disk:
.20: conda at `/home/autobot/miniconda3/` (~2-5 GB)
.20: pyenv at `/home/autobot/.pyenv/` (~500 MB)
Old bashrc entries for pyenv PATH/init
These are inert (systemd now uses venv PATH) but waste disk space and could cause confusion.
Proposed Fix
Rename script file + update any references
Add Ansible cleanup tasks (optional, after verifying new venv works):
Remove `~/.pyenv/` directory
Remove conda installation
Clean up bashrc pyenv/conda blocks
Impact
Low — cosmetic/disk cleanup only, no functional impact.
Activity
chore(infra): rename setup-runner-pyenv.sh to setup-runner-python.sh (#…
chore(infra): rename setup-runner-pyenv.sh + legacy cleanup (#1924)
mrveiss commentedon Mar 20, 2026
Merged in PR #1931. Renamed setup-runner-pyenv.sh to setup-runner-python.sh, added cleanup-legacy-python.sh.