You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Windows documentation and tests must be updated for the new hyperv_api default.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Removes the HCS feature flag and makes hyperv_api the default Windows backend.
Changes:
Enables hyperv_api unconditionally on Windows.
Removes obsolete HCS feature-flag configuration.
Updates supported-backend registration.
File summaries
File
Summary
src/platform/platform_win.cpp
Registers and defaults to hyperv_api.
src/cmake/populate-supported-backends-list.cmake
Always includes the Windows API backend.
feature-flags.cmake
Removes HYPERV_HCS_ENABLED.
Review details
Suppressed comments (2)
src/platform/platform_win.cpp:870
This changes the Windows user-visible default to hyperv_api, but docs/how-to-guides/customise-multipass/set-up-the-driver.md:29 still tells users that the default is hyperv. Please update that Windows documentation to match the new default.
return QStringLiteral("hyperv_api");
src/platform/platform_win.cpp:809
Adding hyperv_api to the supported-backend list changes which values local.driver accepts, but the Windows platform tests do not exercise is_backend_supported (unlike the parameterized Linux coverage). Add assertions that hyperv_api is accepted and an unknown backend is rejected so this feature-flag removal is protected.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Update the Windows CLI driver mapping and user-facing documentation to match the new default.
Review details
Suppressed comments (2)
src/platform/platform_win.cpp:870
This changes the Windows default to hyperv_api, but the CLI test helper still maps win32 to hyperv (tests/cli/multipass/helpers.py:282). As a result, runs using --driver=auto continue selecting the legacy backend and the default-driver test does not exercise or validate the new default. Update the Windows default mapping and its related test assumptions.
return QStringLiteral("hyperv_api");
src/platform/platform_win.cpp:870
The new unconditional hyperv_api default/support is not reflected in the user-facing driver documentation: the setup guide, local.driver reference, and driver explanation still describe hyperv as the Windows default and omit hyperv_api from the Windows values. Please update those docs so users are not told to select a backend that is no longer the default.
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.61%. Comparing base (efd76e0) to head (1b75ef2). ⚠️ Report is 33 commits behind head on main.
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🔵 Needs a closer look
Update the Windows documentation and CLI test-harness driver mapping for the new default.
Review effort: Lite Findings: None
Previously missed (1)
In code that hasn't changed since last review
Update Windows driver documentation for hyperv_api default
src/platform/platform_win.cpp:870
This changes the Windows default to hyperv_api, but the user-facing docs still say the default is hyperv and tell users to switch back with local.driver=hyperv (docs/how-to-guides/customise-multipass/set-up-the-driver.md:29,126; docs/explanation/driver.md:25-27). Please update those instructions so they no longer describe the legacy backend as the default.
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
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.
Description
Related Issue(s)
Closes #5261
Checklist