-
Notifications
You must be signed in to change notification settings - Fork 77
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
Rewrite script to clean up dev-desktops #390
Comments
In #389 (comment), it was pointed out that the developer guide for |
Hi, I would like to tackle this issue, as a start in contributing to Rust-lang. I have a few questions / ideas that may be of use here regardless:
|
Also possibly relevant cleanup step: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#gc |
This depends on the particular checkout.
If you can implement a heuristic to detect if a directory is a cargo-managed project (this probably should not fire on cargo dirs inside rust-lang/rust checkouts because bootstrap has additional logic on top, as you don't want to delete bootstrap's self build via cargo, then you have to build bootstrap to run Additional space-saving techniques:
|
As a first step, I'd like to rewrite the script that we have now and make sure that the new implementation is well-tested and well-documented. It'll be much easier afterwards to add more features or improve its heuristics. 🙂 |
@nain-F49FF806 I'm more than happy to help with mentoring, reviews, or anything else that you might need. Feel free to reach out on Zulip as well. If we can break the implementation into small PRs that'd great! |
Hi @jdno is this task still open and not assigned? I would like to start to work on this as a start in contributing. |
@nain-F49FF806 are you working on this? |
@klaus82 Not atm. Not actively. I had intended to find some time to get to this but haven't been able to. Cheers. |
In #389, we created a cronjob that runs a Bash script to periodically clean up unused cache directories on the dev-desktops. While the script itself is relatively simple, it uses some advanced arguments for
find
and a lot of loops to go through all directories inside/home
. Given that the script performs destructive actions on the machine, we should make it more robust and easier to maintain by rewriting it in Rust.We specifically want to get these benefits from rewriting it:
Prior Art
I've considered rewriting the script as part of #389, but the priority wasn't high enough to dedicate the required time to the task. But the code snippet below can be used as inspiration or a starting point.
ansible/roles/dev-desktop/files/free_disk_space/src/main.rs
Resources
The text was updated successfully, but these errors were encountered: