Skip to content

Conversation

@benhillis
Copy link
Member

This change updates the Microsoft.WSL.DeviceHost to version 1.0.0-20251022.1 which no longer has a dependency on lxutil.dll.

Copy link
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 removes the lxutil.dll dependency from the WSL project by upgrading Microsoft.WSL.DeviceHost from version 1.0.0-20251015.1 to 1.0.0-20251022.1. The newer version of DeviceHost no longer requires lxutil.dll, allowing for cleaner dependency management.

Key changes:

  • Updated Microsoft.WSL.DeviceHost package version
  • Removed lxutil.dll references from build configuration, packaging, and pipeline files
  • Reordered test initialization code to ensure proper configuration setup

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
packages.config Updates DeviceHost package version and removes LxUtil package dependencies for both amd64 and arm64 architectures
CMakeLists.txt Removes lxutil.dll from build configuration including package finding, file linking, and compile definitions
msipackage/package.wix.in Removes lxutil.dll from MSI package installation files
.pipelines/build-stage.yml Removes lxutil.dll from build artifact pattern matching
test/windows/DrvFsTests.cpp Reorders test initialization to create WslConfigChange after LxsstuInitialize but before LxsstuLaunchWsl
Comments suppressed due to low confidence (1)

test/windows/DrvFsTests.cpp:1

  • The reordering of initialization code (moving WslConfigChange creation before LxsstuLaunchWsl) changes test behavior but lacks explanation or test coverage verifying this ordering is correct. Consider adding a test case that validates the configuration is properly applied before WSL launch, or document why this ordering change is necessary for the lxutil.dll removal.
/*++

VERIFY_ARE_EQUAL(LxsstuInitialize(FALSE), TRUE); \
VERIFY_ARE_EQUAL(LxsstuLaunchWsl(LXSST_TESTS_INSTALL_COMMAND_LINE), 0); \
m_config.reset(new WslConfigChange(LxssGenerateTestConfig({.drvFsMode = DrvFsMode::##_mode##}))); \
VERIFY_ARE_EQUAL(LxsstuLaunchWsl(LXSST_TESTS_INSTALL_COMMAND_LINE), 0); \
Copy link
Member Author

Choose a reason for hiding this comment

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

not really related, but something I noticed. probably better to make sure the test is using the specified drvfs mode while running the install tests command.

Copy link
Member Author

@benhillis benhillis left a comment

Choose a reason for hiding this comment

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

This is not ready to be merged yet.

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.

2 participants