Skip to content

Commit d231ed2

Browse files
authored
[202411] Fix 202411 pipeline (#290)
[202411] Fix 202411 pipeline
1 parent 1044ca2 commit d231ed2

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ stages:
2424
DIFF_COVER_CHECK_THRESHOLD: 80
2525
DIFF_COVER_ENABLE: 'true'
2626
pool:
27-
vmImage: ubuntu-20.04
27+
vmImage: ubuntu-24.04
2828

2929
container:
30-
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bullseye:$(BUILD_BRANCH)
30+
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bookworm:$(BUILD_BRANCH)
3131

3232
steps:
3333
- checkout: self
@@ -58,7 +58,7 @@ stages:
5858
sudo dpkg -i libyang_1.0.73_*.deb
5959
sudo dpkg -i libswsscommon_1.0.0_amd64.deb
6060
sudo dpkg -i python3-swsscommon_1.0.0_amd64.deb
61-
workingDirectory: $(Pipeline.Workspace)/target/debs/bullseye/
61+
workingDirectory: $(Pipeline.Workspace)/target/debs/bookworm/
6262
displayName: 'Install Debian dependencies'
6363
6464
- script: |
@@ -71,20 +71,22 @@ stages:
7171
sudo pip3 install sonic_config_engine-1.0-py3-none-any.whl
7272
sudo pip3 install sonic_platform_common-1.0-py3-none-any.whl
7373
sudo pip3 install sonic_utilities-1.2-py3-none-any.whl
74-
workingDirectory: $(Pipeline.Workspace)/target/python-wheels/bullseye/
74+
workingDirectory: $(Pipeline.Workspace)/target/python-wheels/bookworm/
7575
displayName: 'Install Python dependencies'
7676
7777
- script: |
7878
set -ex
7979
# Install .NET CORE
8080
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
81-
sudo apt-add-repository https://packages.microsoft.com/debian/11/prod
81+
sudo apt-add-repository https://packages.microsoft.com/debian/12/prod
8282
sudo apt-get update
83-
sudo apt-get install -y dotnet-sdk-5.0
83+
sudo apt-get install -y dotnet-sdk-8.0
8484
displayName: "Install .NET CORE"
8585
8686
- script: |
87-
python3 setup.py test
87+
pip3 install ".[testing]"
88+
pip3 uninstall --yes sonic-host-services
89+
pytest
8890
displayName: 'Test Python 3'
8991
9092
- task: PublishTestResults@2
@@ -103,8 +105,7 @@ stages:
103105
displayName: 'Publish Python 3 test coverage'
104106

105107
- script: |
106-
set -e
107-
python3 setup.py bdist_wheel
108+
python3 -m build -n
108109
displayName: 'Build Python 3 wheel'
109110
110111
- publish: '$(System.DefaultWorkingDirectory)/dist/'

0 commit comments

Comments
 (0)