E3SM-Project / polaris

Testing and analysis for OMEGA, MPAS-Ocean, MALI and MPAS-Seaice
BSD 3-Clause "New" or "Revised" License
6 stars 13 forks source link

Conda environment version awareness in load scripts #155

Closed sbrus89 closed 9 months ago

sbrus89 commented 10 months ago

It would be convenient if the load script would recognize if an existing environment is outdated relative to a checked-out branch. This would avoid recreating the environment unnecessarily out of caution to prevent problems with changed dependencies (or running into dependency issues due to not recreating the environment when it is necessary).

I'm just raising this as a discussion topic in case others have input.

xylar commented 10 months ago

I think this is a great idea.

The first change would be to update the alpha/beta/rc version every time a dependency changes, rather than just for spack changes like currently happens.

The second would be to check if the code version is the same as the version in the load script and complain if it isn't. That should be pretty easy.