[ 
https://issues.apache.org/jira/browse/HDDS-17950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chi-Hsuan Huang updated HDDS-17950:
-----------------------------------
    Description: 
The CI {{build}} job takes 8 to 12 minutes, and every test job waits for it. 
Maven builds the 62 modules one at a time on a 4-core runner.

Proposed change: add {{-T 1C}} to the build job in CI. In fork runs it cut the 
Maven build from about 8 to 4 minutes.


  was:
The CI {{build}} job takes 8 to 12 minutes, and every test job waits for it. 
Most of that is the Maven build, which builds the 62 modules one at a time on a 
4-core runner.

Running the same {{build.sh}} command with {{-T 1C}} on fork runners, in 2 
rounds:

||Option||Runs||Median||Range||
|serial|8|8.2 min|388s to 568s|
|{{-T 1C}}|8|4.1 min|241s to 363s|

Fork runs: 
[46150539000|https://github.com/chihsuan/ozone/actions/runs/46150539000], 
[46217743778|https://github.com/chihsuan/ozone/actions/runs/46217743778]

The parallel build is also more stable. 7 of 8 runs took about 4 minutes. The 
shaded filesystem jar is the longest step, so a slow run of it sets the total.

The {{repro}} check rebuilds without {{-T}} and compares the output. In a fork 
CI run with {{-T 1C}} only in the build job, all 799 files in 62 modules 
matched 
([46215347507|https://github.com/chihsuan/ozone/actions/runs/46215347507]). 
Maven warns that {{hadoop-maven-plugins}} (hdds-common, ozone-common) and 
{{maven-patch-plugin}} (rocks tools) are not marked thread-safe. ozone-common 
depends on hdds-common, so the two do not run at the same time.

Proposed change: add {{-T 1C}} to the build job in CI.



> Build in parallel in CI
> -----------------------
>
>                 Key: HDDS-17950
>                 URL: https://issues.apache.org/jira/browse/HDDS-17950
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: CI
>            Reporter: Chi-Hsuan Huang
>            Assignee: Chi-Hsuan Huang
>            Priority: Major
>
> The CI {{build}} job takes 8 to 12 minutes, and every test job waits for it. 
> Maven builds the 62 modules one at a time on a 4-core runner.
> Proposed change: add {{-T 1C}} to the build job in CI. In fork runs it cut 
> the Maven build from about 8 to 4 minutes.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to