samotleriche opened a new pull request, #4689:
URL: https://github.com/apache/eventmesh/pull/4689

   ### Motivation
   
   The motivation of this PR is to improve the build time by resolving caching 
issues.
   
   - build cache was not enabled.
   - spotlessApply runs on every build, modifying source code and causing cache 
misses.
   - spotless target included build directory, causing cache misses due to 
changing inputs.
   - WatchFileManagerTest edits a properties file in place causing a cache miss 
in subsequent tasks.
   
   ### Modifications
   
   - Enabled gradle build cache by setting org.gradle.caching = true in the 
gradle.properties file.
   - Removed checkstyleMain dependency on spotlessApply (should run 
spotlessApply as a separate task or integrate into CI).
   - Limited the target of spotlessJava to only the src java files.
   - Copied configuration.properties into a TempDir for testing the onChange 
method.
   
   These changes improved the build time for back-to-back builds with no 
changes from ~4 minutes 30 seconds down to ~15 seconds. 
   
   build scan before modifications: 
https://ge.solutions-team.gradle.com/s/wl6q5fikzjhnq#performance
   build scan after modifications: 
https://ge.solutions-team.gradle.com/s/cssmzbjx5v7js#performance
   
   ### Documentation
   
   - Does this pull request introduce a new feature? no
   - If yes, how is the feature documented? (not applicable / docs / JavaDocs / 
not documented) n/a
   - If a feature is not applicable for documentation, explain why? n/a
   - If a feature is not documented yet in this PR, please create a followup 
issue for adding the documentation
   


-- 
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: dev-unsubscr...@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@eventmesh.apache.org
For additional commands, e-mail: dev-h...@eventmesh.apache.org

Reply via email to