Chi-Hsuan Huang created HDDS-17950:
--------------------------------------
Summary: 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
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.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]