Skip to content

Enable cleanup of CUDA RPM leftovers#282

Open
jakirkham wants to merge 1 commit intoconda-forge:mainfrom
jakirkham:enable_rm_targets
Open

Enable cleanup of CUDA RPM leftovers#282
jakirkham wants to merge 1 commit intoconda-forge:mainfrom
jakirkham:enable_rm_targets

Conversation

@jakirkham
Copy link
Member

@jakirkham jakirkham commented Oct 1, 2024

Allow sudo for removing the contents of the CUDA targets. This will make it easier to cleanup after downloading the CUDA RPMs. Plus this will help with managing memory usage in CUDA CI jobs.

Needed for PR: conda-forge/conda-forge-ci-setup-feedstock#357

Comment on lines +28 to +30
echo 'conda ALL=NOPASSWD: /usr/bin/rm -rf /opt/conda/targets/x86_64-linux' >> /etc/sudoers
echo 'conda ALL=NOPASSWD: /usr/bin/rm -rf /opt/conda/targets/ppc64le-linux' >> /etc/sudoers
echo 'conda ALL=NOPASSWD: /usr/bin/rm -rf /opt/conda/targets/sbsa-linux' >> /etc/sudoers
Copy link
Member

Choose a reason for hiding this comment

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

You don't need sudo to delete these folders as they are owned by the user.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sometimes RPMs contents have weird permissions on them. So wanted to make this robust to that failure mode

Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like an acceptable answer to me.

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.

3 participants