Skip to content

Commit 845f46e

Browse files
authored
Update PR checker pipeline to point to bookworm (sonic-net#3651)
* Update PR checker pipeline to point to bookworm
1 parent 28e645f commit 845f46e

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@ stages:
4343
vmImage: ubuntu-20.04
4444

4545
container:
46-
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bullseye:$(BUILD_BRANCH)
46+
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bookworm:$(BUILD_BRANCH)
4747

4848
steps:
4949
- script: |
5050
set -ex
5151
sudo apt-get update
5252
sudo apt-get install -y python3-pip
5353
sudo pip3 install requests==2.31.0
54+
sudo apt-get install -y python3-protobuf
5455
displayName: "Install dependencies"
5556
5657
- script: |
@@ -84,16 +85,15 @@ stages:
8485
sudo dpkg -i libyang_1.0.73_amd64.deb
8586
sudo dpkg -i libyang-cpp_1.0.73_amd64.deb
8687
sudo dpkg -i python3-yang_1.0.73_amd64.deb
87-
sudo dpkg -i libprotobuf*.deb
88-
workingDirectory: $(Pipeline.Workspace)/target/debs/bullseye/
88+
workingDirectory: $(Pipeline.Workspace)/target/debs/bookworm/
8989
displayName: 'Install Debian dependencies'
9090
9191
- task: DownloadPipelineArtifact@2
9292
inputs:
9393
source: specific
9494
project: build
9595
pipeline: 9
96-
artifact: sonic-swss-common
96+
artifact: sonic-swss-common-bookworm
9797
runVersion: 'latestFromBranch'
9898
runBranch: 'refs/heads/$(sourceBranch)'
9999
displayName: "Download sonic swss common deb packages"
@@ -134,20 +134,22 @@ stages:
134134
sudo pip3 install sonic_yang_models-1.0-py3-none-any.whl
135135
sudo pip3 install sonic_config_engine-1.0-py3-none-any.whl
136136
sudo pip3 install sonic_platform_common-1.0-py3-none-any.whl
137-
workingDirectory: $(Pipeline.Workspace)/target/python-wheels/bullseye/
137+
workingDirectory: $(Pipeline.Workspace)/target/python-wheels/bookworm/
138138
displayName: 'Install Python dependencies'
139139
140140
- script: |
141141
set -ex
142142
# Install .NET CORE
143143
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
144-
sudo apt-add-repository https://packages.microsoft.com/debian/11/prod
144+
sudo apt-add-repository https://packages.microsoft.com/debian/12/prod
145145
sudo apt-get update
146146
sudo apt-get install -y dotnet-sdk-8.0
147147
displayName: "Install .NET CORE"
148148
149149
- script: |
150-
python3 setup.py test
150+
pip3 install ".[testing]"
151+
pip3 uninstall --yes sonic-utilities
152+
pytest
151153
displayName: 'Test Python 3'
152154
153155
- task: PublishTestResults@2
@@ -167,7 +169,7 @@ stages:
167169

168170
- script: |
169171
set -e
170-
python3 setup.py bdist_wheel
172+
python3 -m build -n
171173
displayName: 'Build Python 3 wheel'
172174
173175
- publish: '$(System.DefaultWorkingDirectory)/dist/'

0 commit comments

Comments
 (0)