You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2023/04/06 09:56:00 UTC
[jira] [Assigned] (HIVE-27225) Speedup build by skipping SBOM generation by default
[ https://issues.apache.org/jira/browse/HIVE-27225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stamatis Zampetakis reassigned HIVE-27225:
------------------------------------------
> Speedup build by skipping SBOM generation by default
> ----------------------------------------------------
>
> Key: HIVE-27225
> URL: https://issues.apache.org/jira/browse/HIVE-27225
> Project: Hive
> Issue Type: Improvement
> Components: Build Infrastructure
> Reporter: Stamatis Zampetakis
> Assignee: Stamatis Zampetakis
> Priority: Major
>
> A full build of Hive locally in my environment takes ~15 minutes.
> {noformat}
> mvn clean install -DskipTests -Pitests
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 14:15 min
> {noformat}
> Profiling the build shows that we are spending roughly 30% of CPU in org.cyclonedx.maven plugin which is used to generate SBOM artifacts (HIVE-26912).
> The SBOM generation does not need run in every single build and probably needs to be active only during the release build. To speed-up every-day builds I propose to activate the cyclonedx plugin only in the dist (release) profile.
> After this change, the default build drops from 14 minutes to 8.
> {noformat}
> mvn clean install -DskipTests -Pitests
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 08:19 min
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)