Skip to content

Pre-download socat to avoid test failing due to connectivity issues - #41035

Merged
Blue (OneBlue) merged 5 commits into
masterfrom
user/oneblue/socat-fix
Jul 10, 2026
Merged

Blue (OneBlue) merged 5 commits into
masterfrom
user/oneblue/socat-fix

Conversation

@OneBlue

Copy link
Copy Markdown
Collaborator

Summary of the Pull Request

This change adds logic to pre-download the rpms for socat and its dependencies so we don't download it from the internet while the tests run. We've seen this causing a test failure in the past.

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@OneBlue
Blue (OneBlue) requested a review from a team as a code owner July 9, 2026 00:48
Copilot AI review requested due to automatic review settings July 9, 2026 00:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 aims to reduce WSLC test flakiness caused by transient network connectivity by switching the socat installation in tests from an online tdnf install socat to an offline install from pre-downloaded RPMs shipped with (or prepared into) the Microsoft.WSL.TestData package.

Changes:

  • Added a PowerShell utility to download the latest socat RPM (and select dependencies) into the test data folder layout.
  • Updated WSLCTests port-mapping validation to mount the test data directory and install socat from local RPMs with repos disabled.
  • Bumped Microsoft.WSL.TestData NuGet dependency version to 0.5.0.

Reviewed changes

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

File Description
tools/test/download-test-data-rpms.ps1 New helper script to fetch socat + dependency RPMs into the test-data package layout.
test/windows/WSLCTests.cpp Installs socat from mounted test data RPMs (offline) during port-mapping tests.
packages.config Updates the Microsoft.WSL.TestData package version to pick up the new data content.
Comment thread tools/test/download-test-data-rpms.ps1
Comment thread test/windows/WSLCTests.cpp Outdated
Comment thread tools/test/download-test-data-rpms.ps1 Outdated
Copilot AI review requested due to automatic review settings July 9, 2026 01:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread test/windows/WSLCTests.cpp
Comment thread tools/test/download-test-data-rpms.ps1 Outdated
Comment thread tools/test/download-test-data-rpms.ps1
Copilot AI review requested due to automatic review settings July 9, 2026 17:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread tools/test/download-test-data-rpms.ps1
Comment thread tools/test/download-test-data-rpms.ps1 Outdated
Copilot AI review requested due to automatic review settings July 9, 2026 18:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread tools/test/download-test-data-rpms.ps1
Comment thread tools/test/download-test-data-rpms.ps1
Comment thread test/windows/WSLCTests.cpp
@OneBlue Blue (OneBlue) changed the title Pre-download socat to avoid test failings due to connectivity issues Jul 9, 2026
@OneBlue
Blue (OneBlue) merged commit 40d5f8f into master Jul 10, 2026
12 checks passed
@OneBlue
Blue (OneBlue) deleted the user/oneblue/socat-fix branch July 10, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants