Commit Graph

25 Commits

Author SHA1 Message Date
Liu Shilong
59b89ee7c3
[ci] Enable reproducible build for arm64 and armhf. (#15190)
Fix armhf and arm64 build issue.
Revert #7517. Because armhf and arm64 agents are ready.

Microsoft ADO (number only): 23765181
2023-05-23 10:27:43 -07:00
Liu Shilong
1d0a5ed9bf [ci] Fix build issue for vs vhdx image. #14427
Why I did it
sonic-slave-stretch build failed for mmh3 version update to 3.10 on Mar 24.

How I did it
Enable reproducible build for vhdx image.

How to verify it
2023-03-28 18:35:13 +08:00
Liu Shilong
0cc6f1ca82 [ci] Fix docker hang issue and change template reference branch (#13894)
Why I did it
Azure pipeline change.
Use common template to make it easy to change common steps.
Fix docker hang issue.

How I did it
2023-02-22 18:36:50 +08:00
Liu Shilong
d046712b25
[ci] Kill hanged docker build process to avoid build timeout issue. (#13726) (#13731)
Why I did it
Docker build has a low rate of hanging up.
It hangs on different steps. So, it looks like a bug in docker daemon.

How I did it
Start a daemon process to scan running time more than 1 hours, and kill the process.

How to verify it
2023-02-20 18:16:25 +08:00
zitingguo-ms
e377b03a94
Publish docker saiserverv2 in 202012 branch (#12903)
# Why I did it
Publish docker saiserverv2 in the build pipeline.

# How I did it
Add docker saiserverv2 target in the build template.

# How to verify it
Run test in #12836 and the target has been built out successfully.

Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
2022-12-02 16:01:40 +08:00
Liu Shilong
54de99ba23
[build] Add version files to docker image dependencies (#11192)
* [build] Add version files to docker image dependencies

* [ci] Support to skip vstest using include/exclude config file. (#11086)

example:
├── folderA
│  ├──  fileA (skip vstest)
│  ├──  fileB
│  └──  fileC
If we want to skip vstest when changing /folderA/fileA, and not skip vstest when changing fileB or fileC.

vstest-include:
^folderA/fileA

vstest-exclude:
^folderA
2022-06-21 20:28:50 +08:00
xumia
fc727f0538 [Ci]: check if there is a sonic dirty version issue (#10445)
Why I did it
[Ci]: check if there is a sonic dirty version issue
If there is a dirty version issue in PR build, the build will be failed.
2022-04-11 23:10:06 +00:00
Shilong Liu
4533e64fb4 [CI] Fix Azure pipeline set -e not work. (#9282)
In azure pipeline template 'set -e' not works as expected.
2021-11-20 00:45:00 +00:00
Guohan Lu
bf1ed42588 [ci]: build centec arm64 to sonicbld-arm64 pool
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-10-29 09:10:13 -07:00
xumia
027a35d7e5
[ci]: Change to build marvell-armhf on armhf pool (#8467) 2021-10-25 07:38:18 -07:00
Shilong Liu
040d5f343d Add pipeline to build vhdx image. (#8665)
* Add pipeline to build vhdx image
2021-10-06 09:04:57 -07:00
xumia
568def48cf
Disable nephos docker syncd rpc temporarily (#8015)
Why I did it
Disable the nephos docker syncd rpc image temporarily
2021-06-30 18:25:55 +08:00
Guohan Lu
7d14a60620 [ci]: bump up build timeout to 48 hours for armhf and arm64
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-06-22 09:49:49 -07:00
xumia
d47a035852 [ci]: build rpc image for mellanox (#7905) 2021-06-21 10:04:49 +00:00
Shilong Liu
be7bd73bbb [CI] Fix azp targets for innovium platform (#7870)
There is no rule to build swi target. The correct target is *.bin.
2021-06-21 09:55:14 +00:00
Myron Sosyak
bfa8549f9b [BFN] Add missed param for syncd-rpc build (#7792)
To fix syncd-rpc build for BFN paltform
2021-06-21 09:09:03 +00:00
Guohan Lu
fa321f182c [ci]: set -ex for official build to exit on any build failures
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-06-15 17:32:07 +08:00
Myron Sosyak
b65b59c1b5 [BFN] Enable syncd-rpc build (#7646)
Why I did it
To enable syncd-rpc for Barefoot build

How I did it
Set the flag

How to verify it
ENABLE_SYNCD_RPC=y make configure PLATFORM=barefoot
ENABLE_SYNCD_RPC=y make all
2021-06-03 12:13:42 +00:00
Guohan Lu
7841b7513c [ci]: change timeout to 36 hours for armhf/arm64 build
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-05-05 07:30:07 -07:00
xumia
e27293f4df
Disable the reproducible build for arm64 and armhf temporarily (#7517)
Disable the reproducible build for arm64 and armhf temporarily.
The package version upgrade has been disabled for armhf and armhf for long run time, so disable the reproducible build for the official builds as well. we will enable it when arm64 azure agent ready.
2021-05-05 21:02:39 +08:00
xumia
193c376f97 Export the azure pipeline build id for SONiC version (#7406)
Improve the SONiC version, fix the "azure pipeline build id" part

<target branch name>-<pullrequest id>.<azure pipelines build id>-<merge commit id>
Example: master-7381.11668-43df5c87
2021-04-25 11:35:57 -07:00
xumia
2694afb0cd [ci]: Fix official build not existing issue (#7408)
When submitting a new official build for broadcom, vs, it prompts a error message, which says the job is not defined.
It was caused by the default option "[]", which is not empty, it is used as the jobGroups parameter.
2021-04-25 11:35:57 -07:00
xumia
fd8e84ac50 [ci] Fix the boolean value case sensitive issue in Azure Pipelines (#7399)
Why I did it
Fix the boolean value case sensitive issue in Azure Pipelines

When passing parameters to a template, the "true" or "false" will have case sensitive issue, it should be a type casting issue.
To fix it, we change the true/false to yes/no, to escape the trap.

Support to override the job groups in the template, so PR build has chance to use different build parameters, only build simple targets. For example, for broadcom, we only build target/sonic-broadcom.bin, the other images, such as swi, debug bin, etc, will not be built.
2021-04-25 11:35:57 -07:00
Shilong Liu
bf02ba16ee [CI] Add azure pipeline file for official build
Signed-off-by: Shilong Liu <shilongliu@microsoft.com>
2021-04-25 11:35:57 -07:00
xumia
f355ce18ec Add azure pipelines for reproducible build (#6870)
* Add azure pipelines for reproducible build

* Add always build flag for upgrade build

* Fix the build version ubuntu-20.04
2021-02-28 17:45:18 -08:00