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

chore: remove cache dir sanity check #612

Closed

Conversation

leovct
Copy link
Contributor

@leovct leovct commented Sep 9, 2024

The code currently checks that the cache directory must end with the _circuit_cache suffix. I think this is too restrictive, any operator should be able to set whatever name they want. What do you guys think?

@github-actions github-actions bot added the crate: zero_bin Anything related to the zero-bin subcrates. label Sep 9, 2024
@atanmarko
Copy link
Member

atanmarko commented Sep 9, 2024

@leovct It is a bit restrictive because we introduced the clean operation. Random folders for the circuits together with the circuit cleanup are a recipe for disaster.

@leovct
Copy link
Contributor Author

leovct commented Sep 9, 2024

@leovct It is a bit restrictive because we introduced the clean operation. Random folders for the circuits together with the circuit cleanup are a recipe for disaster.

I'll add my answer here for future discussions (if any).

I agree that it is easier for developers but cleanup operations are typically not the core responsibility of the application. This falls under the principle of "do one thing and do it well".

Instead, we can reuse existing tools such as rm in utility scripts or we can write better docs to document cache locations and recommended cleanup practices for different platforms.

@Nashtare Nashtare added this to the x Misc. milestone Sep 11, 2024
@Nashtare
Copy link
Collaborator

Nashtare commented Nov 5, 2024

@leovct closing this for now, we may revisit tooling later on

@Nashtare Nashtare closed this Nov 5, 2024
@leovct leovct deleted the chore/remove-cache-dir-sanity-check branch November 5, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: zero_bin Anything related to the zero-bin subcrates.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants