Open viniciusdc opened 3 months ago
This will also need to be removed as its now legacy https://github.com/nebari-dev/nebari-slurm/blob/main/roles/jupyterhub/templates/jupyterhub_config.py#L233
Also, this would be something nice to be tested, in order to make sure the environments are being properly being re-created
Context
The current Ansible task for managing conda environments gradually accumulates old packages, leading to non-reproducible states. This issue is particularly noticeable with deployments migrated from pre-2024.3.1 Nebari Slurm versions, where outdated packages such as Gator remain in the JupyterLab environments.
https://github.com/nebari-dev/nebari-slurm/blob/4ff70836391720b0a48d7e7d3a6ab954c576d541/roles/conda_environment/tasks/main.yaml#L2-L21
The mamba env update command in the task above only updates the existing environment without removing outdated packages that are no longer needed. Over time, this results in an environment that includes outdated dependencies, making it non-reproducible and prone to issues.
Suggested Ansible Tasks:
Value and/or benefit
Implementing this solution will prevent the accumulation of outdated packages and ensure that environments remain clean, reproducible, and free from legacy issues.
Anything else?
No response