Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions .azure-pipelines/build-docker-sonic-vs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ parameters:
- name: debian_version
type: string

- name: vpp_artifact_name
type: string
default: 'vpp-bookworm'

- name: artifact_name
type: string

Expand Down Expand Up @@ -147,23 +151,12 @@ jobs:
path: $(Build.ArtifactStagingDirectory)/download
patterns: '**/target/debs/${{ parameters.debian_version }}/framework_*.deb'
displayName: "Download sonic-buildimage sonic-framework package"
- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: ${{ parameters.buildimage_artifact_project }}
pipeline: Azure.sonic-buildimage.common_libs
artifact: common-lib
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/${{ parameters.buildimage_artifact_branch }}'
path: $(Build.ArtifactStagingDirectory)/download
patterns: '**/target/debs/${{ parameters.debian_version }}/libnexthopgroup_*.deb'
displayName: "Download sonic-buildimage libnexthopgroup package"
- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: build
pipeline: sonic-net.sonic-platform-vpp
artifact: vpp
artifact: ${{ parameters.vpp_artifact_name }}
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
allowPartiallySucceededBuilds: true
Expand All @@ -179,7 +172,6 @@ jobs:
mkdir -p .azure-pipelines/docker-sonic-vs/debs

find $(Build.ArtifactStagingDirectory)/download/sairedis -name '*.deb' -exec cp "{}" .azure-pipelines/docker-sonic-vs/debs \;
find $(Build.ArtifactStagingDirectory)/download -name 'libnexthopgroup_*.deb' -exec cp "{}" .azure-pipelines/docker-sonic-vs/debs \;
cp -v $(Build.ArtifactStagingDirectory)/download/*.deb .azure-pipelines/docker-sonic-vs/debs
if [ -f $(Build.ArtifactStagingDirectory)/download/coverage.info ]; then
cp -v $(Build.ArtifactStagingDirectory)/download/coverage.info $(Build.ArtifactStagingDirectory)/
Expand Down
8 changes: 5 additions & 3 deletions .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ parameters:
- name: debian_version
type: string

- name: vpp_artifact_name
type: string
default: 'vpp-bookworm'

jobs:
- job:
displayName: ${{ parameters.arch }}
Expand Down Expand Up @@ -172,8 +176,6 @@ jobs:
target/debs/${{ parameters.debian_version }}/libnl-nf-3-200_*.deb
target/debs/${{ parameters.debian_version }}/libnl-nf-3-dev_*.deb
target/debs/${{ parameters.debian_version }}/libyang3_*.deb
target/debs/${{ parameters.debian_version }}/libnexthopgroup_*.deb
target/debs/${{ parameters.debian_version }}/libnexthopgroup-dev_*.deb
displayName: "Download common libs"
- task: DownloadPipelineArtifact@2
inputs:
Expand Down Expand Up @@ -212,7 +214,7 @@ jobs:
source: specific
project: build
pipeline: sonic-net.sonic-platform-vpp
artifact: vpp
artifact: ${{ parameters.vpp_artifact_name }}
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
allowPartiallySucceededBuilds: true
Expand Down
5 changes: 2 additions & 3 deletions .azure-pipelines/docker-sonic-vs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY ["debs", "/debs"]
# same, even though contents have changed) are checked between the previous and current layer.
RUN dpkg --remove --force-all libswsscommon
RUN apt --fix-broken install -y
RUN dpkg --purge python3-swsscommon sonic-db-cli libsaimetadata libsairedis libsaivs syncd-vs swss sonic-eventd libdashapi framework libnexthopgroup
RUN dpkg --purge python3-swsscommon sonic-db-cli libsaimetadata libsairedis libsaivs syncd-vs swss sonic-eventd libdashapi framework

RUN apt-get update

Expand Down Expand Up @@ -43,8 +43,7 @@ RUN apt install -y /debs/libdashapi_1.0.0_amd64.deb \
/debs/libsairedis_1.0.0_amd64.deb \
/debs/libsaivs_1.0.0_amd64.deb \
/debs/syncd-vs_1.0.0_amd64.deb \
/debs/swss_1.0.0_amd64.deb \
/debs/libnexthopgroup_1.0.0_amd64.deb
/debs/swss_1.0.0_amd64.deb

RUN if [ "$need_dbg" = "y" ] ; then dpkg -i /debs/swss-dbg_1.0.0_amd64.deb ; fi

Expand Down
9 changes: 9 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ stages:
dash_artifact_name: sonic-dash-api
artifact_name: sonic-swss-${{ parameters.debian_version }}
debian_version: ${{ parameters.debian_version }}
vpp_artifact_name: vpp-${{ parameters.debian_version }}
archive_pytests: true
archive_gcov: true

Expand All @@ -71,6 +72,7 @@ stages:
dash_artifact_name: sonic-dash-api
artifact_name: sonic-swss-asan-${{ parameters.debian_version }}
debian_version: ${{ parameters.debian_version }}
vpp_artifact_name: vpp-${{ parameters.debian_version }}
asan: true

- stage: BuildArm
Expand All @@ -89,6 +91,7 @@ stages:
dash_artifact_name: sonic-dash-api.armhf
artifact_name: sonic-swss-${{ parameters.debian_version }}.armhf
debian_version: ${{ parameters.debian_version }}
vpp_artifact_name: vpp-${{ parameters.debian_version }}
archive_gcov: false

- template: .azure-pipelines/build-template.yml
Expand All @@ -103,6 +106,7 @@ stages:
dash_artifact_name: sonic-dash-api.arm64
artifact_name: sonic-swss-${{ parameters.debian_version }}.arm64
debian_version: ${{ parameters.debian_version }}
vpp_artifact_name: vpp-${{ parameters.debian_version }}
archive_gcov: false

- stage: BuildTrixie
Expand All @@ -120,6 +124,7 @@ stages:
dash_artifact_name: sonic-dash-api-trixie
artifact_name: sonic-swss-trixie
debian_version: trixie
vpp_artifact_name: vpp-trixie
archive_gcov: false

- template: .azure-pipelines/build-template.yml
Expand All @@ -134,6 +139,7 @@ stages:
dash_artifact_name: sonic-dash-api-trixie.armhf
artifact_name: sonic-swss-trixie.armhf
debian_version: trixie
vpp_artifact_name: vpp-trixie
archive_gcov: false

- template: .azure-pipelines/build-template.yml
Expand All @@ -148,6 +154,7 @@ stages:
dash_artifact_name: sonic-dash-api-trixie.arm64
artifact_name: sonic-swss-trixie.arm64
debian_version: trixie
vpp_artifact_name: vpp-trixie
archive_gcov: false

- stage: BuildDocker
Expand All @@ -160,6 +167,7 @@ stages:
sairedis_artifact_name: sonic-sairedis-${{ parameters.debian_version }}
swss_artifact_name: sonic-swss-${{ parameters.debian_version }}
debian_version: ${{ parameters.debian_version }}
vpp_artifact_name: vpp-${{ parameters.debian_version }}
artifact_name: docker-sonic-vs

- stage: BuildDockerAsan
Expand All @@ -173,6 +181,7 @@ stages:
swss_artifact_name: sonic-swss-asan-${{ parameters.debian_version }}
artifact_name: docker-sonic-vs-asan
debian_version: ${{ parameters.debian_version }}
vpp_artifact_name: vpp-${{ parameters.debian_version }}
asan: true

- stage: Test
Expand Down
2 changes: 1 addition & 1 deletion fpmsyncd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fpmsyncd_SOURCES = fpmsyncd.cpp fpmlink.cpp routesync.cpp $(top_srcdir)/warmrest

fpmsyncd_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_ASAN)
fpmsyncd_CPPFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_ASAN)
fpmsyncd_LDADD = $(LDFLAGS_ASAN) -lnl-3 -lnl-route-3 -lswsscommon -lnexthopgroup
fpmsyncd_LDADD = $(LDFLAGS_ASAN) -lnl-3 -lnl-route-3 -lswsscommon

if GCOV_ENABLED
fpmsyncd_SOURCES += ../gcovpreload/gcovpreload.cpp
Expand Down
Loading