Commit Graph

5313 Commits

Author SHA1 Message Date
mssonicbld
d42e6d040b
[ci/build]: Upgrade SONiC package versions (#14801) 2023-04-22 21:23:22 +08:00
mssonicbld
b609124802 [ci/build]: Upgrade SONiC package versions 2023-04-19 10:43:20 +08:00
xumia
2001bbd07b
[Build][202106] Support Debian snapshot mirror to improve build stability (#14663)
Why I did it
Cherry-pick commits from master to support the snapshot based mirror, and fix the code conflicts.

ad162ae [Build] Optimize the version control for Debian packages (#14557)
38c5d7f [Build] Support j2 template for debian sources for docker ptf (#13198)
5e4826e [Ci] Support to use the same snapshot for all platform builds (#13913)
8206925 [Build] Change the default mirror version config file (#13786)
5e4a866 [Build] Support Debian snapshot mirror to improve build stability (#13097)
ac5d89c [Build] Support j2 template for debian sources (#12557)

Work item tracking
Microsoft ADO (number only): 18018114
How I did it
How to verify it
2023-04-18 10:24:53 +08:00
mssonicbld
7e6a25ee43
[ci/build]: Upgrade SONiC package versions (#14683) 2023-04-16 20:49:31 +08:00
mssonicbld
8438cba059
[ci/build]: Upgrade SONiC package versions (#14676) 2023-04-15 21:18:01 +08:00
Liu Shilong
c24de5e5e6
Fix build issue in 202106 branch on dbus-python and meson. (#14635)
Why I did it
dbus-python-1.3.2 uses latest meson to build.
latest meson v1.1.0 has some issues.

Work item tracking
Microsoft ADO (number only):
How I did it
How to verify it
2023-04-14 11:23:32 +00:00
mssonicbld
c82685ec78
[ci/build]: Upgrade SONiC package versions (#14574) 2023-04-08 20:59:45 +08:00
mssonicbld
5cacc70939
[ci/build]: Upgrade SONiC package versions (#14516) 2023-04-04 21:33:52 +08:00
mssonicbld
9f05d7f514
[ci/build]: Upgrade SONiC package versions (#14490) 2023-04-01 21:08:32 +08:00
mssonicbld
b577902789
[ci/build]: Upgrade SONiC package versions (#14477) 2023-03-31 20:09:34 +08:00
mssonicbld
9b5829c15c
Pin mmh3 package version in sonic-slave-stretch docker (#14463) (#14469) 2023-03-31 03:09:45 +08:00
mssonicbld
f0d7cd3cc0
[ci/build]: Upgrade SONiC package versions (#14369) 2023-03-21 20:41:42 +08:00
mssonicbld
9c9232fa85
[ci/build]: Upgrade SONiC package versions (#14346) 2023-03-19 22:39:50 +08:00
mssonicbld
8e775fd809
[ci/build]: Upgrade SONiC package versions (#14302) 2023-03-18 05:06:14 +08:00
mssonicbld
4708058897
[ci/build]: Upgrade SONiC package versions (#14078) 2023-03-04 21:02:03 +08:00
mssonicbld
cb6a3c6d13
[ci/build]: Upgrade SONiC package versions (#13996) 2023-02-27 17:25:55 +08:00
mssonicbld
20c6cab866
[ci/build]: Upgrade SONiC package versions (#13993) 2023-02-25 22:54:52 +08:00
Liu Shilong
3ad9fcaa17
[ci] Fix docker hang issue and change template reference branch (#13894) (#13920)
Why I did it
Cherry pick PR(#13894)
Azure pipeline change.
Use common template to make it easy to change common steps. Fix docker hang issue.

How I did it
How to verify it
2023-02-23 14:04:26 +08:00
mssonicbld
c4942c9656
[build] Fix unexpected warnings: No names found, cannot describe anything. (#12963) (#13927) 2023-02-22 22:04:18 +08:00
mssonicbld
91033e110b
[ci/build]: Upgrade SONiC package versions (#13883) 2023-02-21 21:34:54 +08:00
Liu Shilong
b18751f721
[ci] Kill hanged docker build process to avoid build timeout issue. (#13726) (#13730)
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:05 +08:00
mssonicbld
ddc6ae1d8b
[ci/build]: Upgrade SONiC package versions (#13878) 2023-02-18 20:06:12 +08:00
mssonicbld
57ddad3194
[ci/build]: Upgrade SONiC package versions (#13804) 2023-02-14 23:33:02 +08:00
mssonicbld
ab77eb5fce
[ci/build]: Upgrade SONiC package versions (#13782) 2023-02-11 21:42:56 +08:00
Liu Shilong
6741593e92 [build] Check if patches are applied before applying patches (#13386)
Why I did it
If make fails, we can't rerun the make process, because existing patches can't apply again.

How I did it
Check if patches are applied. if yes, don't apply patches again.

How to verify it
2023-02-02 22:32:43 +08:00
mssonicbld
f6cda03e84 [ci/build]: Upgrade SONiC package versions 2023-02-01 16:37:01 +08:00
selva
199661c216
[devices]: add support to Supermicro G3748 switches (#13420)
Why I did it
Enabled SONiC on Supermicro switch SSE G3748. This contains the code needed under "device" directory.

How I did it
As per the porting guide documentation posted in SONiC WiKi

How to verify it
Build SONiC with ARC=arm64 PLATFORM=marvell and download image from ONIE into Supermicro SSE G3748
2023-01-19 09:17:51 -08:00
Liu Shilong
5db68009ad
Fix sonic slave pipeline to set correct tag on sonic slave image. (#13177) (#13385) 2023-01-18 11:33:11 +08:00
mssonicbld
82f4a2628b
[ci/build]: Upgrade SONiC package versions (#13391) 2023-01-17 22:00:13 +08:00
mssonicbld
fa15a4504d
[ci/build]: Upgrade SONiC package versions (#13367) 2023-01-15 21:39:17 +08:00
mssonicbld
f2d4a1dae3
[ci/build]: Upgrade SONiC package versions (#13366) 2023-01-15 00:08:58 +08:00
Liu Shilong
b70bbbe318
[build] Fix sonic-host-services dependency deepdiff version issue (#13337)
Why I did it
sonic_host_services depends on deepdiff.
But latest deepdiff version has error.

How I did it
pin deepdiff to previous version.

How to verify it
2023-01-12 13:18:29 +08:00
xumia
fc0a64092a
[Ci] Remove the platform innovium from version auto upgrade pipeline (#13208)
Why I did it
[Ci] Remove the platform innovium from version auto upgrade pipeline

There is a build issue in the specific platform innovium, it blocks the upgrade job to run successfully, disable the version upgrade temporarily.

How I did it
Remove the upgrade job for innovium
2023-01-06 16:10:48 +08:00
mssonicbld
e9d5bb7952
[ci/build]: Upgrade SONiC package versions (#13201) 2022-12-30 06:44:21 +08:00
xumia
0e559e0c7a
[Build] Fix libyang build broken issue (#13162)
Why I did it
The libyang cannot be built with the latest version of cmake.
Example: https://dev.azure.com/mssonic/build/_build/results?buildId=181862&view=logs&j=993d6e22-aeec-5c03-fa19-35ecba587dd9&t=d0538dec-1681-5ff8-bd45-c0de13be9706

[ 96%] Building CXX object swig/python2/CMakeFiles/_yang2.dir/yangPYTHON_wrap.cxx.o
/sonic/src/libyang/libyang-1.0.73/build/swig/python2/yangPYTHON_wrap.cxx:3292:33: error: expected initializer before '.' token
 #  define SWIG_init    init_yang.so
                                 ^
/sonic/src/libyang/libyang-1.0.73/build/swig/python2/yangPYTHON_wrap.cxx:102537:1: note: in expansion of macro 'SWIG_init'
 SWIG_init(void) {
 ^~~~~~~~~
/sonic/src/libyang/libyang-1.0.73/build/swig/python2/yangPYTHON_wrap.cxx:101971:24: warning: 'swig_const_table' defined but not used [-Wunused-variable]
 static swig_const_info swig_const_table[] = {

See relative issue: #4315

How I did it
Not upgrade the cmake, change to use the dbus-python 1.2.18 which is compatible with cmake 3.13.4

How to verify it
See https://dev.azure.com/mssonic/build/_build/results?buildId=194756&view=results
2022-12-28 10:01:59 +08:00
mssonicbld
852d41ba95
[build][Bug]: Fix the command set_reproducible_mirrors not found issue (#10398) (#13173) 2022-12-26 15:55:18 +08:00
Liu Shilong
a3a704cf19
[build] Add retry when make SONiC image to improve success rate. (#12325) (#13131)
Why I did it
Makefile needs some dependencies from the Internet. It will fail for network related issue.
Retries will fix most of these issues.

How I did it
Add retries when running commands which maybe related with networking.

How to verify it
2022-12-23 18:51:43 +08:00
mssonicbld
64cc7c1b4f
[build] Fix issue between reproducible build and dood. (#11084) (#12845) (#13120) 2022-12-21 14:07:58 +08:00
xumia
35e3707aa2
[Build] Fix dbus-python installation issue in armhf (#12849)
Why I did it
Fix the python3 dbus-python installation issue in arm.

See https://dev.azure.com/mssonic/be1b070f-be15-4154-aade-b1d3bfb17054/_apis/build/builds/180980/logs/96

      
            CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
              CMake 3.15 or higher is required.  You are running version 3.13.4
How I did it
Install the cmake package from buster-backports

How to verify it
Succeeded:

docker run --rm -it 8380970b72ea bash
sudo apt-get install -y -t buster-backports cmake
sudo pip3 install dbus-python
Where the docker image 8380970b72ea is the buster slave image in armhf.

Failed:

docker run --rm -it 8380970b72ea bash
sudo pip3 install dbus-python
2022-11-29 16:57:27 +08:00
mssonicbld
4d71dafc16
[ci/build]: Upgrade SONiC package versions (#12574) 2022-11-02 08:55:43 +08:00
xumia
ed20a6dec6 [Build][Bug] Fix apt-get remove version not lock issue (#12193)
Why I did it
Fix apt-get remove/purge version not locked issue when the apt-get options not specified.

How I did it
Add a space character before and after the command line parameters.
2022-11-01 18:54:28 +08:00
mssonicbld
56c41cbede
[ci/build]: Upgrade SONiC package versions (#12561) 2022-11-01 09:06:45 +08:00
Liu Shilong
5417aab4ec
[202106][ci] Cherry-pick PRs relative to reproducible build option from master branch. (#12350)
* [ci] Update azp template variable for reproducible build. (#11419)

* [ci] Disable reproducible build in master branch official build (#11452)

* [ci] Update reproducible build related pipeline. (#11810)

* [ci] Fix bug involved by PR 11810 which affect official build pipeline (#11891)

Why I did it
Fix the official build not triggered correctly issue, caused by the azp template path not existing.

How I did it
Change the azp template path.
2022-10-25 16:33:25 +08:00
xumia
1a0ced68f8
[202106] Change submodule path from Azure to sonic-net (#12311)
Why I did it
Change the path of sonic submodules that point to "Azure" to point to "sonic-net"

How I did it
Replace "Azure" with "sonic-net" on all relevant paths of sonic submodules
2022-10-13 23:30:54 +08:00
mssonicbld
148d38ed21
[ci/build]: Upgrade SONiC package versions (#12375) 2022-10-13 03:47:50 +08:00
mssonicbld
99133c5a7d
[actions] Add auto cherry-pick actions to release branch (#11496) (#12338)
* [actions] Add github actions to auto cherry-pick prs to release branches

* Add README, fix workflow

Co-authored-by: Liu Shilong <shilongliu@microsoft.com>
2022-10-10 17:24:27 +08:00
xumia
da545b23da
Fix dbus-run-session command not found issue when install dbus-python (#12009) (#12055)
Why I did it
Cherry-pick #12009, and fix code conflict.
Fix the dbus-pyhon installation failure when building docker-sonic-vs, caused by the command dbus-run-session not found.
The command "dbus-run-session" should be the new dependency introduced in dbus-python 1.3.2, the old version 1.2.18 does not have the issue.

How I did it
Install the dbus debian package which contains the command dbus-run-session.
It is not a blocking issue on release branches. The release branches with reproducible build feature can avoid such issue in official builds and PR builds, it only block the version upgrade (trying to upgrade from 1.2.18 to 1.3.2).
2022-09-26 20:43:11 +08:00
Liu Shilong
95df56b4ed
[ci] Update azp reference to support transfering organization from Azure to sonic-net (#11604) 2022-08-02 16:16:32 +08:00
Liu Shilong
1edac85362
[ci] Transfer organization from Azure to sonic-net for sonic-mgmt (#11559) (#11562)
Why I did it
Transfer organization from Azure to sonic-net for sonic-mgmt
2022-07-28 15:31:35 +08:00
Liu Shilong
bd51735a78
[ci] Fix test stage dependency issue. (#11386) (#11392)
Why I did it
When any of the test job failed in the test stage, the rerun will not work, the test stage will be skipped automaticall, so we do not have chance to rerun the test stage again, and the checks of the test will be always in failed status, block the PR to merge forever.

It should be caused by the condition in the Test stage, we should specify the status of the BuildVS stage.

How I did it
Fix stage dependency logic.
2022-07-11 19:03:38 +08:00