Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
ci: Build products in parallel in pipelines
Browse files Browse the repository at this point in the history
Currently, within the deployment and daily pipeline, products are
build sequentially instead of in parallel which is slow. This patch
adds building all products in parallel within the pipelines. In the
deployment pipeline, all products are built with default log level
and in the daily pipeline all products are built with all log levels
(all in parallel).

Signed-off-by: Haaris Farooq <[email protected]>
  • Loading branch information
Haaris Farooq authored and leandro-arm committed Aug 9, 2024
1 parent a6a4be9 commit 68c1a0f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .gitlab/pipelines/daily-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ check-ut:
stage: unit-testing
allow_failure: true

build-products-all-log-levels:
extends: .build-products-all-log-levels
build-products-all-products-all-log-levels:
extends: .build-products-all-products-all-log-levels
stage: build
allow_failure: true

Expand Down
2 changes: 1 addition & 1 deletion .gitlab/pipelines/deployment-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ check-ut:

build-products:
extends:
- .build-products
- .build-products-all-products
- .git-strategy-on-mr
stage: build
dependencies:
Expand Down
29 changes: 20 additions & 9 deletions .gitlab/templates/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,38 @@
else
export LOG_LEVEL="--log-level=$BUILD_PRODUCTS_LOG_LEVEL"
fi
if [ -z $BUILD-PRODUCT ]; then
export PRODUCT=""
else
export PRODUCT="-p $BUILD_PRODUCT"
fi
script:
- |
python3 tools/check_build.py --build-output-dir ./build \
${LOG_LEVEL}
${LOG_LEVEL} ${PRODUCT}
artifacts:
when: on_failure
expire_in: 2 days
paths:
- build/*.txt

.build-products-all-log-levels:
.build-products-all-products:
extends: .build-products
parallel:
matrix:
- BUILD_PRODUCT:
[host, juno, morello, n1sdp, rcar, rdfremont, rdv1, rdv1mc, rdn1e1, rdn2,
sgi575, sgm775, sgm776, synquacer, tc2]

.build-products-all-products-all-log-levels:
extends: .build-products
parallel:
matrix:
- BUILD_PRODUCTS_LOG_LEVEL:
- DEBUG
- INFO
- WARN
- ERROR
- CRIT
- DISABLED
- BUILD_PRODUCT:
[host, juno, morello, n1sdp, rcar, rdfremont, rdv1, rdv1mc, rdn1e1, rdn2,
sgi575, sgm775, sgm776, synquacer, tc2]
BUILD_PRODUCTS_LOG_LEVEL:
[DEBUG, INFO, WARN, ERROR, CRIT, DISABLED]

.build-optee:
image: ${CI_REGISTRY_IMAGE}/optee-build:latest
Expand Down

0 comments on commit 68c1a0f

Please sign in to comment.