Skip to content

azure-pipelines: migrate libyang1 deb install to libyang3#161

Open
bhouse-nexthop wants to merge 1 commit into
sonic-net:masterfrom
bhouse-nexthop:bhouse.libyang3-debs
Open

azure-pipelines: migrate libyang1 deb install to libyang3#161
bhouse-nexthop wants to merge 1 commit into
sonic-net:masterfrom
bhouse-nexthop:bhouse.libyang3-debs

Conversation

@bhouse-nexthop
Copy link
Copy Markdown

Why I did it

sonic-buildimage no longer builds the libyang 1.0.73 debs (libyang, libyang-cpp, python3-yang); it now builds only libyang3. The CI pipeline still downloads and installs the removed libyang1 debs from the sonic-buildimage build artifacts, so it must switch to the libyang3 debs.

Part of sonic-net/sonic-buildimage#22385.

How I did it

Updated azure-pipelines.yml to consume the libyang3 debs using versionless globs:

  • Download/install libyang3_*.deb and libyang-dev_*.deb in place of the versioned libyang*1.0.73* set.
  • Renamed python3-yang_*.deb to python3-libyang_*.deb.
  • Dropped the removed libyang-cpp deb.
  • Generalized the LIBPCRE3 comment that referenced libyang 1.0.73 to reference libyang3.

How to verify it

  • Run the azure-pipelines.yml build and confirm the download step pulls the libyang3 debs from the sonic-buildimage artifacts and dpkg -i installs them without error.
  • Confirm the sonic-mgmt-framework build/tests succeed with the libyang3 packages installed.

Description for the changelog

azure-pipelines: migrate libyang1 deb install to libyang3

@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

sonic-buildimage no longer builds the libyang 1.0.73 debs (libyang,
libyang-cpp, python3-yang); it now builds only libyang3. Update the
pipeline to download and install the libyang3 debs using versionless
globs:

- download/install libyang3_*.deb and libyang-dev_*.deb (replacing the
  versioned libyang*1.0.73* set)
- python3-yang_*.deb -> python3-libyang_*.deb
- drop the removed libyang-cpp deb
- generalize the LIBPCRE3 comment to reference libyang3

Part of sonic-net/sonic-buildimage#22385.

Signed-off-by: Brad House <bhouse@nexthop.ai>
@bhouse-nexthop bhouse-nexthop force-pushed the bhouse.libyang3-debs branch from d0f1530 to 02214d7 Compare May 31, 2026 14:38
@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants