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

SHPC New Functionality - Reinstall #674

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ausbeth
Copy link

@Ausbeth Ausbeth commented Oct 9, 2024

Hi @vsoch, this is the reinstall functionality @muffato talked about. I want to show it to you before making further changes to the upgrade.

* Created reinstall file

* Update settings.yml

* reinstall functionality

* Update __init__.py

* Update reinstall.py

* Update reinstall.py

* Update reinstall.py

* cleaning up

* Adding boolean operations to uninstall function, and making the its message user friendly

* Making sure the module to reinstall exists before reinstalling

* fixing user messages

* Modifying uninstall function to keep container.

Also adding flaggers for reinstall (complete and all)

* flagger for complete reinstallation

* fixing bug

* fixing bug (install)

* fixing issue where keep_container is not being recognised

* fixing typo

* fixing bug why complete was not being recognised

* Reinstall all

* Changing tcl back to lmod in settings, rename refactoring and simplying code structure

* removing unnecessary arguements from reinstall

* updating help description

* Attempting to keep container when reinstalling

* removing boolean return values in uninstall function

* adding user message during reinstallation regarding keeping containers

* restoring software to view during reinstallation

* fixing logger messages

* rename

* testing error message

* fixing error message

* checking for invalid recipe

* Tests for Reinstall

* fixing bug

* fixing bug

* adding reinstall tests to test_client.sh

* testing

* testing

* Testing only reinstall functionality before adding it to client test

* fixing issue

* fixing issue

* fixing issue

* fixing issue

* fixing issue

* fixing issue

* fixing issue

* minor refactoring

* updating help message

* adding author

* Implementing Guoying and Matthieu's suggested changes

* Performing precommit locally and removing temp file

* TODO: fix test case ("lmod", "module.lua", "podman", False, False) for test_reinstall_specific_software_version

* fixing linting issue

* reverting

* Update shpc/client/reinstall.py

making comment clearer

Co-authored-by: Matthieu Muffato <[email protected]>

---------

Co-authored-by: Matthieu Muffato <[email protected]>
@vsoch
Copy link
Member

vsoch commented Oct 9, 2024

@Ausbeth I think the discussion led to a decision to start with this: #673 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants