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

Added support for clean target to remove gcluster binary and the ghpc… #3577

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nadig-google
Copy link

@nadig-google nadig-google commented Jan 22, 2025

This CL updates the Makefile to add a "clean" make target. Running "make clean" will remove the regular file "gcluster" and the symlink "ghpc" (links to gcluster).

This PR to removes the build targets from the following directories after checking if the files exist and if it has permissions to delete them:

  • current dir
  • ~/bin
  • /usr/local/bin

Submission Checklist

NOTE: Community submissions can take up to 2 weeks to be reviewed.

Please take the following actions before submitting this pull request.

  • Fork your PR branch from the Toolkit "develop" branch (not main)
  • Test all changes with pre-commit in a local branch #
  • Confirm that "make tests" passes all tests
  • Add or modify unit tests to cover code changes
  • Ensure that unit test coverage remains above 80%
  • Update all applicable documentation
  • Follow Cluster Toolkit Contribution guidelines #

@nadig-google nadig-google added the enhancement New feature or request label Jan 22, 2025
@nadig-google
Copy link
Author

Added label

Makefile Outdated
@@ -72,6 +73,25 @@ install-dev-deps: warn-terraform-version warn-packer-version check-pre-commit ch
pip install -r community/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/requirements.txt
pip install -r community/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/tests/requirements.txt

clean:
@echo "PATH: $$PATH"
@for binary_target in $(BINARY_TARGETS); do \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK it will not remove binaries installed into /usr/local/bin and ~/bin. PTAL at install target

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the feedback. I've updated the PR to remove the build targets from:

  • current dir
  • ~/bin
  • /usr/local/bin

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I'm not seeing the updated version, perhaps its stuck in your local branch?

@abbas1902 abbas1902 assigned nadig-google and unassigned abbas1902 Jan 22, 2025
@nadig-google nadig-google assigned mr0re1 and unassigned nadig-google Jan 23, 2025
@abbas1902 abbas1902 assigned nadig-google and unassigned mr0re1 Jan 23, 2025
@nadig-google nadig-google added the release-improvements Added to release notes under the "Improvements" heading. label Jan 23, 2025
@nadig-google nadig-google assigned mr0re1 and abbas1902 and unassigned nadig-google Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release-improvements Added to release notes under the "Improvements" heading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants