Skip to content

Fix Linux Image#2582

Merged
nagilson merged 1 commit intodotnet:mainfrom
nagilson:nagilson-22-linux-image-ci
Feb 23, 2026
Merged

Fix Linux Image#2582
nagilson merged 1 commit intodotnet:mainfrom
nagilson:nagilson-22-linux-image-ci

Conversation

@nagilson
Copy link
Copy Markdown
Member

@nagilson nagilson commented Feb 23, 2026

We need to migrate to the new Linux image in CI so we can run tests on Linux again. #2557 This PR initially had the changes but it should really be an isolated fix - was intending to put it there to improve PR merge velocity.

The new linux image doesn't support some linux versions and is missing some vscode dependencies, which is also resolved in this PR.

We need to migrate to the new Linux image in CI so we can run tests on Linux again.
dotnet#2557
This PR initially had the changes but it should really be an isolated fix - was intending to put it there to improve PR merge velocity
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the Linux CI environment from Ubuntu 20.04 to Ubuntu 22.04 to restore functional Linux testing. The changes include updating the pipeline configuration, installing necessary dependencies for running VS Code tests on the new image, and adjusting test configurations to match the CI environment.

Changes:

  • Updated CI pipeline to use Ubuntu 22.04 image instead of 20.04
  • Added VS Code runtime dependencies installation for Linux builds
  • Fixed test utility to remove invalid Ubuntu version check and align .NET version selection with actual Ubuntu releases
  • Updated test configuration to use Ubuntu 22.04 matching the new CI environment
  • Added missing description property to mock object to match current VS Code API

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
1pr-azure-pipeline.yml Updated Linux pool image from 1es-ubuntu-2004-open to build.ubuntu.2204.amd64.open
pipeline-templates/build-test.yaml Added installation of VS Code dependencies (libgbm, gtk, nss, etc.) required for headless testing on Ubuntu 22.04
vscode-dotnet-runtime-library/src/test/unit/TestUtility.ts Removed invalid Ubuntu 22.06 condition (no such release exists) and corrected .NET SDK version logic for Ubuntu < 22.04 to return 7.0.100 instead of 9.0.100
vscode-dotnet-runtime-library/src/test/unit/LinuxDistroTests.test.ts Changed test Ubuntu version from 24.04 to 22.04 to align with the new CI environment
vscode-dotnet-runtime-library/src/test/mocks/MockEnvironmentVariableCollection.ts Added description property to match the current VS Code EnvironmentVariableCollection API

@nagilson nagilson enabled auto-merge February 23, 2026 23:55
@nagilson nagilson merged commit cdbc0bf into dotnet:main Feb 23, 2026
12 checks passed
@nagilson
Copy link
Copy Markdown
Member Author

Thank you 🥳

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.

3 participants