Skip to content

Fix PR testing issue caused by deprecation of Ubuntu 20.04#1605

Merged
wangxin merged 4 commits into
sonic-net:masterfrom
wangxin:fix-vstest-download-issue
May 29, 2025
Merged

Fix PR testing issue caused by deprecation of Ubuntu 20.04#1605
wangxin merged 4 commits into
sonic-net:masterfrom
wangxin:fix-vstest-download-issue

Conversation

@wangxin
Copy link
Copy Markdown
Contributor

@wangxin wangxin commented May 27, 2025

After Ubuntu 20.04 was deprecated, it caused multiple failures of PR testing:

  1. Any job requires Ubuntu 20.04 image will fail. No agent can be allocated to run Ubuntu 20.04. This change updated the pipelines to use Ubuntu 22.04.
  2. Dependent upstream pipelines have been updated to use Ubuntu 22.04. Some build/test code are not updated accordingly, so downloading artifacts from upstream pipelines failed. This change fixed the upstream pipeline name and artifacts name.

This change also deprecated a parameter sonic_buildimage_ubuntu20_04 which 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.

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>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@wangxin wangxin changed the title Update upstream pipeline name to fix VS test issue. Fix PR testing issue caused by deprecation of Ubuntu 20.04 May 27, 2025
@kcudnik
Copy link
Copy Markdown
Collaborator

kcudnik commented May 27, 2025

i have pr for this: #1603

@kcudnik
Copy link
Copy Markdown
Collaborator

kcudnik commented May 27, 2025

but seems like your have also updated images i missed

@nazariig
Copy link
Copy Markdown
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
libhiredis: https://ubuntu.pkgs.org/22.04/ubuntu-universe-amd64/libhiredis0.14_0.14.1-2_amd64.deb.html

Copy link
Copy Markdown
Contributor

@prabhataravind prabhataravind left a comment

Choose a reason for hiding this comment

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

libyang0.16 is not available in 22.04. This needs to be replaced with libyang-dev instead.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@wangxin
Copy link
Copy Markdown
Contributor Author

wangxin commented May 28, 2025

libyang0.16 is not available in 22.04. This needs to be replaced with libyang-dev instead.

Fixed.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #1609

@kperumalbfn
Copy link
Copy Markdown

@wangxin could you please create a PR for 202411?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants