zabetak opened a new pull request, #4205: URL: https://github.com/apache/hive/pull/4205
### What changes were proposed in this pull request? Run SBOM generation only during release (dist profile) to speed-up every-day builds. ### Why are the changes needed? The SBOM generation is costly and profiling shows that it consumes ~30% of CPU. Moreover, it is not necessary to run it in every build; it is sufficient to run it only during the release. After the changes here the time for the default build drops from 14 minutes to 8 (measured locally). ### Does this PR introduce _any_ user-facing change? Developers will notice a significantly faster build. ### How was this patch tested? Before ``` mvn clean install -DskipTests -Pitests [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14:15 min ``` After ``` mvn clean install -DskipTests -Pitests [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 08:19 min ``` After with dist profile activated ``` mvn clean install -DskipTests -Pitests -Pdist INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13:32 min ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
