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
❌ Patch coverage is 36.36364% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.53%. Comparing base (6b67ec5) to head (6dc6b74).
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Critical unresolved build and test-runtime issues remain across arm64, Linux CGo dependency handling, nested Go discovery, and Windows DLL availability.
Adds Ubuntu Insights build integration to Multipass by packaging the dependency with vcpkg, introducing a mockable C++ wrapper and smoke tests, and provisioning Go 1.26 across supported build environments.
Changes:
Adds the Ubuntu Insights vcpkg port, generated C API integration, and wrapper library.
Configures Insights tests, Go toolchain discovery, Snap recipes, and CI workflows.
Refactors shared MinGW package-lock tooling for related vcpkg ports.
File
Description
vcpkg.json
Adds the Ubuntu Insights feature dependency.
tests/unit/test_libinsights.cpp
Adds consent-state smoke tests for the Insights wrapper.
tests/unit/CMakeLists.txt
Builds and links Insights tests when enabled.
src/ubuntu_insights/libinsights_wrapper.cpp
Implements forwarding methods for the Insights C API.
src/ubuntu_insights/CMakeLists.txt
Defines the Insights wrapper library and dependency linkage.
src/CMakeLists.txt
Includes the Ubuntu Insights source directory.
snap/snapcraft.yaml
Updates plugs, Go tooling, build dependencies, and Wayland packaging.
packaging/gui-less/snap/snapcraft.yaml
Applies equivalent Insights and Go updates to GUI-less packaging.
include/ubuntu_insights/libinsights_wrapper.h
Declares the mockable Insights wrapper interface.
CMakeLists.txt
Adds the Insights option and Go environment setup.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Two critical portfile issues block the feature on supported setups: the linkage check rejects the project’s static triplets, and the unsupported cmake -E env --modify option fails on the supported CMake 3.29 baseline.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Both Snapcraft configurations request the unavailable golang-1.26-go package from Ubuntu 24.04’s core24 archive, causing dependency installation to fail before either build starts.
No open issues 🎉
2 previously missed issues
In code that hasn't changed since last review
Use a Go 1.26 toolchain available to core24
packaging/gui-less/snap/snapcraft.yaml:156
core24 is based on Ubuntu 24.04 (noble), whose archive does not publish golang-1.26-go; Snapcraft resolves build-packages from that base's apt sources, so this part fails during dependency installation before the build starts. Use a Go 1.26 build snap/toolchain (or a base/archive that provides this package) instead, and keep the toolchain setup consistent with the GitHub Actions jobs.
Use a Go 1.26 toolchain available to core24
snap/snapcraft.yaml:177
core24 is based on Ubuntu 24.04 (noble), whose archive does not publish golang-1.26-go; Snapcraft resolves build-packages from that base's apt sources, so this part fails during dependency installation before the build starts. Use a Go 1.26 build snap/toolchain (or a base/archive that provides this package) instead, and keep the toolchain setup consistent with the GitHub Actions jobs.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because the change introduces concurrency-sensitive shared state, an undeclared Python dependency, missing Windows runtime DLL packaging, and an installer component omission.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
A critical Windows packaging issue can leave the DLL unloadable due to missing MinGW runtime dependencies, and the success-path tests also invoke undefined behavior by streaming a null error pointer.
The reason will be displayed to describe this comment to others. Learn more.
By construction if we're going to print the error, it has to be not null. I don't see an issue with passing a nullptr that is guaranteed not to be printed.
The reason will be displayed to describe this comment to others. Learn more.
By construction if we're going to print the error, it has to be not null. I don't see an issue with passing a nullptr that is guaranteed not to be printed.
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
Prepare Multipass for Ubuntu Insights integration.
Checklist
release/XX.XX) before being merged intomain.