Skip to content

Delete unused compilation caches #2029

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

Closed
3 tasks done
per1234 opened this issue Jan 5, 2023 · 0 comments · Fixed by #2033
Closed
3 tasks done

Delete unused compilation caches #2029

per1234 opened this issue Jan 5, 2023 · 0 comments · Fixed by #2033
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@per1234
Copy link
Contributor

per1234 commented Jan 5, 2023

Describe the request

Arduino CLI caches the objects produced by compiling a sketch program under the temporary folder:

  • arduino-core-cache/ - Core objects
  • arduino-sketch-<hash>/ - Objects from sketch source files and library dependencies

These folders are intentionally left behind in the temporary folder after an Arduino CLI process exits so that they can be reused for subsequent compilations as applicable.

The proposal is for Arduino CLI to identify caches that have not been used recently and remove them.

🙂 Disk space will not be taken up by caches that are likely of no further value.

Describe the current behavior

The operating system or user are responsible for cleanup of the files stored by Arduino CLI in the temporary folder. This cleanup is not guaranteed to occur (Windows does not do it automatically and some Linux distros do it only on boot, which may occur rarely).

🙁 A significant amount disk space may be used up by the accumulation of caches.
🙁 A large number of objects in the temporary folder may impact system performance.

Arduino CLI version

38a0dfd

Operating system

All

Operating system version

Any

Additional context

Originally proposed at https://forum.arduino.cc/t/cleanup-of-tmp-seems-inop-kubuntu-20-04/1072075/5


Additional reports:

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jan 5, 2023
@Bikappa Bikappa self-assigned this Jan 5, 2023
@Bikappa Bikappa mentioned this issue Jan 12, 2023
5 tasks
@per1234 per1234 added the conclusion: resolved Issue was resolved label Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants