Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a flag to prevent the compass package from being reinstalled with the load script #396

Merged
merged 2 commits into from
May 29, 2022

Conversation

xylar
Copy link
Collaborator

@xylar xylar commented May 23, 2022

This merge adds a check for an environment variable $NO_COMPASS_REINSTALL before reinstalling compass in edit mode from the current branch.

This is used in calls to compass setup within a matrix build. Without this change, some runs might get disrupted because the compass executable or package is not available for a short time during reinstallation.

@xylar xylar added dependencies and deployment Changes relate to creating conda and Spack environments, and creating a load script utility Utility script(s) outside of the compass package labels May 23, 2022
@xylar xylar self-assigned this May 23, 2022
@xylar
Copy link
Collaborator Author

xylar commented May 23, 2022

Testing

I ran a matrix on Anvil. I ran into some issues but none appear to be related to compass not being available.

I also tested setting the environment variable manually, then sourced the load script, and verified that the package was not reinstalled, as desired.

@xylar xylar merged commit 2f81eef into MPAS-Dev:master May 29, 2022
@xylar xylar deleted the matrix_no_compass_reunstall branch May 29, 2022 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies and deployment Changes relate to creating conda and Spack environments, and creating a load script utility Utility script(s) outside of the compass package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant