Fix PR testing issue caused by deprecation of Ubuntu 20.04#1605
Merged
Conversation
The VS test stage of PR tests pipeline has been failing. The reason is that one of the VS test step is to download ubuntu deb packages built from an upstream pipeline. The upstream pipeline has been renamed from sonic-net.sonic-buildimage-ubuntu20.04 to sonic-net.sonic-buildimage-ubuntu22.04 because of the deprecation of Ubuntu 20.04. This pipeline needs to be updated according to use the new upstream pipeline name for artifacts downloading. This change also deprecated a parameter `sonic_buildimage_ubuntu20_04 which is not really necessary. Signed-off-by: Xin Wang <xiwang5@microsoft.com>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
i have pr for this: #1603 |
Collaborator
|
but seems like your have also updated images i missed |
Collaborator
|
Looks like invalid packages are used: + sudo apt-get update
Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:5 https://download.docker.com/linux/ubuntu jammy InRelease
Reading package lists...
+ sudo apt-get install -y libhiredis0.14 libyang0.16
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libyang0.16
E: Couldn't find any package by glob 'libyang0.16'
E: Couldn't find any package by regex 'libyang0.16'libyang: https://ubuntu.pkgs.org/22.04/ubuntu-universe-amd64/libyang1_1.0.225-1.1_amd64.deb.html |
prabhataravind
requested changes
May 28, 2025
Contributor
prabhataravind
left a comment
There was a problem hiding this comment.
libyang0.16 is not available in 22.04. This needs to be replaced with libyang-dev instead.
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
Fixed. |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
prabhataravind
approved these changes
May 28, 2025
Collaborator
|
Cherry-pick PR to 202505: #1609 |
|
@wangxin could you please create a PR for 202411? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After Ubuntu 20.04 was deprecated, it caused multiple failures of PR testing:
This change also deprecated a parameter
sonic_buildimage_ubuntu20_04which is not really necessary.The agent pool for running VStest was upgraded to Ubuntu 22.04 too. The step for installing dependent packages need to be updated accordingly.