Skip to content

tests/nested/manual: fix muinstaller-real#16447

Merged
ernestl merged 1 commit intocanonical:masterfrom
ernestl:ernestl/fix-muinstaller-real-26.04
Jan 23, 2026
Merged

tests/nested/manual: fix muinstaller-real#16447
ernestl merged 1 commit intocanonical:masterfrom
ernestl:ernestl/fix-muinstaller-real-26.04

Conversation

@ernestl
Copy link
Copy Markdown
Member

@ernestl ernestl commented Jan 15, 2026

Fix muinstaller-real.

Note: the failure for variant :seeded is due to an actual core26 bug, it will be fixed here: canonical/core-base#393

@ernestl ernestl added this to the 2.74 milestone Jan 15, 2026
@ernestl ernestl added the Run nested The PR also runs tests inluded in nested suite label Jan 15, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 15, 2026

Fri Jan 23 13:51:01 UTC 2026
The following results are from: https://github.com/canonical/snapd/actions/runs/21265370860

Failures:

Preparing:

  • openstack-ext:ubuntu-24.04-64:tests/nested/classic/azure-cvm
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/hybrid-remodel
  • openstack-ext:ubuntu-24.04-64:tests/nested/core/core20-fault-inject-on-refresh:gadget_reboot_auto_connect
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/snapd-removes-vulnerable-snap-confine-revs:snapd
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/core-recover-from-recovery:clear_tpm
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/hybrid-fde-all-key-databases:dbx
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/recovery-system-reboot:factory_reset
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/uc-update-assets-secure:both
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/recovery-system:tested_and_default
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/minimal-smoke:secboot_enabled
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/core20-set-efi-boot-vars:BOOTDIR_NOSEC

Executing:

  • openstack-ext:ubuntu-20.04-64:tests/nested/manual/preseed
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/muinstaller-oldbasenewkernel
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/build-with-kernel-modules-components:encrypted
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/muinstaller-real:partial
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/core20-install-mode-shutdown-via-hook
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/build-with-kernel-modules-components:plain
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/muinstaller-core:install_optional_snap_and_comp
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/muinstaller-real:seeded
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/muinstaller-real:encrypted
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/core20-custom-kernel-commandline
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/recovery-system-offline:tested
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/core-factory-reset-new-secboot:hook
  • openstack-ext:ubuntu-26.04-64:tests/nested/manual/muinstaller-real:seeded
  • openstack-ext:ubuntu-26.04-64:tests/nested/manual/minimal-smoke:secboot_disabled
  • openstack-ext:ubuntu-26.04-64:tests/nested/manual/minimal-smoke:secboot_enabled
  • openstack:ubuntu-20.04-64:tests/unit/go:gcc
  • openstack:ubuntu-24.04-64:tests/unit/go:clang
  • openstack:ubuntu-24.04-64:tests/unit/go:gcc

Restoring:

  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/muinstaller-core:install_optional_snap_and_comp
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/muinstaller-real:seeded
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/muinstaller-real:encrypted
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/hybrid-fde-all-key-databases:dbx
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/recovery-system-reboot:factory_reset
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/uc-update-assets-secure:both
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/recovery-system:tested_and_default
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/core20-custom-kernel-commandline
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/minimal-smoke:secboot_enabled
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/recovery-system-offline:tested
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/core20-set-efi-boot-vars:BOOTDIR_NOSEC
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/core-factory-reset-new-secboot:hook
  • openstack-ext:ubuntu-24.04-64:tests/nested/manual/
  • openstack-ext:ubuntu-24.04-64:

@ernestl ernestl closed this Jan 15, 2026
@ernestl ernestl reopened this Jan 15, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.50%. Comparing base (304e3fa) to head (8458c2d).
⚠️ Report is 59 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #16447    +/-   ##
========================================
  Coverage   77.50%   77.50%            
========================================
  Files        1346     1348     +2     
  Lines      184273   184732   +459     
  Branches     2444     2444            
========================================
+ Hits       142821   143185   +364     
- Misses      32811    32880    +69     
- Partials     8641     8667    +26     
Flag Coverage Δ
unittests 77.50% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ernestl ernestl closed this Jan 16, 2026
@ernestl ernestl reopened this Jan 16, 2026
@ernestl ernestl closed this Jan 16, 2026
@ernestl ernestl reopened this Jan 16, 2026
@ernestl ernestl force-pushed the ernestl/fix-muinstaller-real-26.04 branch from b6c1a81 to a3956af Compare January 16, 2026 13:47
Copilot AI review requested due to automatic review settings January 19, 2026 09:27
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 fixes the muinstaller-real test to work properly with Ubuntu 26.04. The changes enable testing on Ubuntu 26 systems and address various compatibility issues discovered during testing.

Changes:

  • Enable Ubuntu 26.04 support in muinstaller tests
  • Replace ip_tables module checks with ahci for better cross-version compatibility
  • Add Ubuntu 26.04-specific base image handling

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/nested/manual/muinstaller-real/task.yaml Adds Ubuntu 26 to supported systems and changes module check from ip_tables to ahci
tests/nested/manual/build-with-kernel-modules-components/task.yaml Updates module checks from ip_tables to ahci for consistency
tests/lib/tools/setup_nested_hybrid_system.sh Adds SNAPPY_TESTING environment variable and improves kpartx error handling
tests/lib/tools/build_kernel_with_comps.sh Handles multiple module paths using array syntax
tests/lib/muinstaller/mk-classic-rootfs.sh Adds Ubuntu 26.04 snapshot support and mounts /proc for systemd.postinst

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/lib/muinstaller/mk-classic-rootfs.sh Outdated
Comment thread tests/lib/muinstaller/mk-classic-rootfs.sh Outdated
@ernestl ernestl closed this Jan 19, 2026
@ernestl ernestl reopened this Jan 19, 2026
@ernestl ernestl force-pushed the ernestl/fix-muinstaller-real-26.04 branch 5 times, most recently from 7aa0515 to 748e8e3 Compare January 22, 2026 21:14
@ernestl ernestl modified the milestones: 2.74, 2.75 Jan 22, 2026
@ernestl ernestl added the Auto rerun spread Auto reruns spread up to 4 times in non-draft PRs w/ >=1 approval and <20 fails in any fund. system label Jan 22, 2026
@ernestl ernestl force-pushed the ernestl/fix-muinstaller-real-26.04 branch from 748e8e3 to 8458c2d Compare January 22, 2026 21:22
@ernestl ernestl requested a review from bboozzoo January 22, 2026 21:23
Copy link
Copy Markdown
Member

@andrewphelpsj andrewphelpsj left a comment

Choose a reason for hiding this comment

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

Thank you!

cp "$module_path" "$comp_ko_dir"
mapfile -t module_path <<< "$module_path"
cp --update=none "${module_path[@]}" "$comp_ko_dir"
snap pack --filename="${kernel_name}+${comp_name}".comp "$comp_name"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe slightly simpler?

diff --git a/tests/lib/tools/build_kernel_with_comps.sh b/tests/lib/tools/build_kernel_with_comps.sh
index 99c13b4d19..7eabdf90ea 100755
--- a/tests/lib/tools/build_kernel_with_comps.sh
+++ b/tests/lib/tools/build_kernel_with_comps.sh
@@ -39,15 +39,19 @@ description: kernel component for testing purposes
 EOF
     # Replace _ or - with [_-], as it can be any of these
     glob_mod_name=$(printf '%s' "$mod_name" | sed -r 's/[-_]/[-_]/g')
-    module_path=$(find kernel -name "${glob_mod_name}.ko*")
+    # TODO: search only in kernel/modules to avoid duplicates (pc-kernel in
+    # 26/edge has both modules/ and lib/modules/). remove this hack once
+    # the kernel snap is fixed
+    module_path=$(find kernel/modules -name "${glob_mod_name}.ko*")
     cp "$module_path" "$comp_ko_dir"
     snap pack --filename="${kernel_name}+${comp_name}".comp "$comp_name"
 
     # Create kernel without the kernel module
     rm "$module_path"
-    # depmod wants a lib subdir
-    mkdir -p kernel/lib
-    ln -s ../modules kernel/lib/modules
+    if [ ! -e kernel/lib/modules ]; then
+        mkdir -p kernel/lib
+        ln -s ../modules kernel/lib/modules
+    fi
     depmod -b kernel/ "$kern_ver"
     rm "${kernel_snap_file}"
     # append component meta-information

@ernestl
Copy link
Copy Markdown
Member Author

ernestl commented Jan 23, 2026

failure openstack-ext:ubuntu-20.04-64:tests/nested/manual/preseed fixed elsewhere: #16485

@ernestl ernestl changed the title many: fix muinstaller-real tests/nested/manual: fix muinstaller-real Jan 23, 2026
Copy link
Copy Markdown
Contributor

@ZeyadYasser ZeyadYasser left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you!

@ernestl ernestl merged commit b215a45 into canonical:master Jan 23, 2026
395 of 436 checks passed
@ernestl ernestl modified the milestones: 2.75, 2.74.1 Feb 2, 2026
ernestl added a commit to ernestl/snapd that referenced this pull request Feb 2, 2026
@ernestl ernestl mentioned this pull request Feb 2, 2026
ernestl added a commit that referenced this pull request Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto rerun spread Auto reruns spread up to 4 times in non-draft PRs w/ >=1 approval and <20 fails in any fund. system cherry-picked Run nested The PR also runs tests inluded in nested suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants