[ 
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. 
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.


  was:
The CI {{build}} job takes about 12 minutes, and every test job waits for it. 
Most of that is the Maven build (10:26 in master run 
[46000557460|https://github.com/apache/ozone/actions/runs/46000557460]), 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, 3 times 
each:

||Option||Median||Runs||
|serial|8.9 min|481s, 536s, 544s|
|{{-T 1C}}|4.1 min|247s, 363s, 245s|
|{{-T 2C}}|4.1 min|245s, 252s, 240s|

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

The binary tarball and the shaded filesystem jar have the same size in both. 
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: build with {{-T 1C}} in CI. The {{repro}} check should catch 
any difference in the output.



> 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. 
> 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.



--
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