You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@eventmesh.apache.org by "samotleriche (via GitHub)" <gi...@apache.org> on 2023/12/28 23:16:48 UTC

Re: [PR] [ISSUE #1054] Build caching optimizations (eventmesh)

samotleriche commented on PR #4689:
URL: https://github.com/apache/eventmesh/pull/4689#issuecomment-1871618860

   @Pil0tXia the issue has been linked to the PR 🙂
   
   Regarding your two questions:
   
   1. This optimization allows subsequent builds to pull the outputs of a task from cache, rather than re-executing the task, if the task's inputs have not changed. The first build runs all the tests and the second build (the one linked which shows no tasks executed) is able to pull the results of the test task from cache.
   
   2 . The local build cache is a DirectoryBuildCache, which by default removes unused cache entries after 7 days ([ref](https://docs.gradle.org/current/dsl/org.gradle.caching.local.DirectoryBuildCache.html#org.gradle.caching.local.Dire[%E2%80%A6]e:removeUnusedEntriesAfterDays)), but can be configured via the removeUnusedEntriesAfterDays property. Typically the default is fine, but if you need to configure this, it is recommended to configure this via an init script, for the reasons described [here](https://docs.gradle.org/current/userguide/build_cache.html#sec:build_cache_configure_local).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org