[ 
https://issues.apache.org/jira/browse/METRON-2247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16923072#comment-16923072
 ] 

Dale Richardson commented on METRON-2247:
-----------------------------------------

{{Approximate 3 minute 40 second speed up in RPM packaging by bypassing 
rpmlint}}

 Current code:

{{mvn package -DskipTests -T 3C -P HDP-2.5.0.0,mpack}}

{{cd metron-deployment}}

{{time env SKIP_RPMLINT=1 mvn clean package -Pbuild-rpms -T 2C}}

...

 

[*INFO*] 
*------------------------------------------------------------------------*

[*INFO*] *Reactor Summary:*[*INFO*] 

[*INFO*] metron-deployment 0.7.2 ............................ *SUCCESS* [  
0.968 s]

[*INFO*] metron-rpm 0.7.2 ................................... *SUCCESS* [13:39 
min]

[*INFO*] 
*------------------------------------------------------------------------*

[*INFO*] *BUILD SUCCESS*

[*INFO*] 
*------------------------------------------------------------------------*

[*INFO*] Total time: 13:40 min (Wall Clock)

[*INFO*] Finished at: 2019-09-05T15:55:37+10:00

[*INFO*] 
*------------------------------------------------------------------------*

 real 13m41.866suser 0m14.425ssys 0m11.570s

 

 

{{After skip_rpm functionality signalled via an environment variable.}}

 

{{mvn package -DskipTests -T 3C -P HDP-2.5.0.0,mpack}}

{{cd metron-deployment}}

{{time env SKIP_RPMLINT=1 mvn clean package -Pbuild-rpms -T 2C}}

{{...}}
{{[INFO] 
------------------------------------------------------------------------}}
{{[INFO] Reactor Summary:}}
{{[INFO] }}
{{[INFO] metron-deployment 0.7.2 ............................ SUCCESS [ 0.764 
s]}}
{{[INFO] metron-rpm 0.7.2 ................................... SUCCESS [09:59 
min]}}
{{[INFO] 
------------------------------------------------------------------------}}
{{[INFO] BUILD SUCCESS}}
{{[INFO] 
------------------------------------------------------------------------}}
{{[INFO] Total time: 10:00 min (Wall Clock)}}
{{[INFO] Finished at: 2019-09-05T15:24:46+10:00}}
{{[INFO] 
------------------------------------------------------------------------}}

{{real 10m1.348s}}
{{user 0m11.553s}}
{{sys 0m8.246s}}

> rpm-docker: Provide an option to bypass running rpmlint
> -------------------------------------------------------
>
>                 Key: METRON-2247
>                 URL: https://issues.apache.org/jira/browse/METRON-2247
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: Dale Richardson
>            Assignee: Dale Richardson
>            Priority: Minor
>
> I notice that a large chunk of the time that an rpmbuild process takes is 
> spent running rpmlint.  For people using the full dev process to spin up a 
> Metron cluster, running rpmlint is like running unit-testing - the assumption 
> is that the author of the code you are running has already done these tests.
> I propose that running rpmlint should remain as part of a full dev build, but 
> that it would be useful to provide an argument that you pass to vagrant that 
> will cause the running of rpmlint to be skipped.  This could speed up the 
> process of standing up a full dev cluster for those people who want it.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to