Skip to content

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

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#37
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 libyang1 debs (libyang_1.0.73, libyang-cpp, python3-yang); it now builds only libyang3. The sonic-bmp Azure pipeline installed the removed libyang*1.0.73*.deb from the downloaded sonic-buildimage build assets, so the dependency install step would fail to find/install that file.

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

Work item tracking
  • Microsoft ADO (number only):

How I did it

Updated the Install libswsscommon dependencies step in azure-pipelines.yml to install the libyang3 runtime deb using a versionless glob (libyang3_*.deb) instead of the removed libyang*1.0.73*.deb. The existing download pattern target/debs/bookworm/libyang*.deb already matches the libyang3 artifacts, so no change was needed there. Only the runtime library is required here (the prebuilt sonic-swss-common deb links libyang at runtime), so no -dev/headers package is installed.

How to verify it

Run the Azure pipeline; the Download bookworm debs step pulls the libyang3 deb via the existing glob, and the Install libswsscommon dependencies step installs libyang3_*.deb successfully.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Add it nightly build branch here)

  • 202305

Description for the changelog

azure-pipelines: migrate libyang1 deb install to libyang3

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

sonic-buildimage no longer builds the libyang1 debs (libyang_1.0.73,
libyang-cpp, python3-yang) and now builds only libyang3. Update the
bookworm dependency install step to install the libyang3 runtime deb
using a versionless glob instead of the removed libyang 1.0.73 deb.

The download pattern target/debs/bookworm/libyang*.deb already matches
the libyang3 artifacts, so only the dpkg install line needed changing.

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 96971c6 to 8f7cb6c Compare May 31, 2026 14:39
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown

@rookie-who rookie-who left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — clean libyang1 → libyang3 migration.

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.

4 participants