Skip to content

Commit e88dc8d

Browse files
authored
Debian Trixie migration for sonic-mgmt-framework (#158)
#### Why I did it - Required for sonic-net/SONiC#2169 #### How I did it - Updated Azure Pipelines to use sonic-slave-trixie container Added libpcre3 dependencies (not available in Trixie repos) Bumped Go version to 1.24.4 to align with Trixie's provided version Updated dependency paths to use Trixie-specific packages and Python wheels #### How to verify it - The sonic-mgmt-framework container builds successfully under BLDENV=trixie. Installed it on a recent SONiC image and verified that the docker os distribution shows Trixie and basic curl test on REST server hosted within the docker works fine. Also executed the pipeline tests locally. **Note:** Dependent/Related PRs: sonic-net/sonic-buildimage#26548 sonic-net/sonic-mgmt-common#211 * Debian Trixie migration for sonic-mgmt-framework Signed-off-by: Amruta Sali <amruta_sali@dell.com> * modified azure-pipelines.yml for pip install to use wildcard for filename (sonic_yang_models-1.0-py3-none-any.whl) Signed-off-by: Amruta Sali <amruta_sali@dell.com> --------- Signed-off-by: Amruta Sali <amruta_sali@dell.com>
1 parent d7f66ae commit e88dc8d

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

azure-pipelines.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ stages:
4141
vmImage: ubuntu-latest
4242

4343
container:
44-
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bookworm:latest
44+
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-trixie:latest
4545

4646
steps:
4747
- checkout: self
@@ -63,8 +63,12 @@ stages:
6363
runVersion: 'latestFromBranch'
6464
runBranch: 'refs/heads/$(BUILD_BRANCH)'
6565
patterns: |
66-
target/debs/bookworm/libyang*.deb
67-
target/python-wheels/bookworm/sonic_yang_models*.whl
66+
target/debs/trixie/libpcre3_*.deb
67+
target/debs/trixie/libpcre16-3_*.deb
68+
target/debs/trixie/libpcre32-3_*.deb
69+
target/debs/trixie/libpcrecpp0v5_*.deb
70+
target/debs/trixie/libyang*.deb
71+
target/python-wheels/trixie/sonic_yang_models*.whl
6872
displayName: "Download sonic buildimage"
6973

7074
- script: |
@@ -76,8 +80,14 @@ stages:
7680
sudo sed -ri 's/redis-server.sock/redis.sock/' /etc/redis/redis.conf
7781
sudo service redis-server start
7882
83+
# LIBPCRE3 (not in Trixie repos, required by libyang 1.0.73)
84+
sudo dpkg -i ../target/debs/trixie/libpcre3_*.deb \
85+
../target/debs/trixie/libpcre16-3_*.deb \
86+
../target/debs/trixie/libpcre32-3_*.deb \
87+
../target/debs/trixie/libpcrecpp0v5_*.deb
88+
7989
# LIBYANG
80-
sudo dpkg -i ../target/debs/bookworm/libyang*1.0.73*.deb
90+
sudo dpkg -i ../target/debs/trixie/libyang*1.0.73*.deb
8191
8292
# Install from "requirement" files in sonic-mgmt-framework/tools/test directory.
8393
pushd sonic-mgmt-framework/tools/test
@@ -94,7 +104,7 @@ stages:
94104
displayName: "Install dependency"
95105
96106
- script: |
97-
sudo pip3 install ../target/python-wheels/bookworm/sonic_yang_models-1.0-py3-none-any.whl
107+
sudo pip3 install ../target/python-wheels/trixie/sonic_yang_models*.whl
98108
displayName: "Install sonic yangs"
99109
100110
- script: |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ require (
4444

4545
replace github.com/Azure/sonic-mgmt-common => ../sonic-mgmt-common
4646

47-
go 1.19
47+
go 1.24.4

0 commit comments

Comments
 (0)