Skip to content

tests: add snap version invariant during restore phase of testing - #16465

Open
maykathm wants to merge 9 commits into
canonical:masterfrom
maykathm:maykathm/SNAPDENG-36186-add-version-invariant-in-tests
Open

tests: add snap version invariant during restore phase of testing#16465
maykathm wants to merge 9 commits into
canonical:masterfrom
maykathm:maykathm/SNAPDENG-36186-add-version-invariant-in-tests

Conversation

@maykathm

@maykathm maykathm commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@maykathm maykathm added the Run only one system Only runs spread tests on one system label Jan 20, 2026
@github-actions

github-actions Bot commented Jan 20, 2026

Copy link
Copy Markdown

Mon Jun 15 18:58:44 UTC 2026
The following results are from: https://github.com/canonical/snapd/actions/runs/27532844397

Failures:

Preparing:

  • openstack:debian-sid-64:tests/regression/lp-1797556
  • openstack:debian-sid-64:tests/main/xdg-settings
  • openstack:debian-sid-64:tests/main/interfaces-dbus
  • openstack:debian-sid-64:tests/main/interfaces-autopilot-introspection
  • openstack:debian-sid-64:tests/main/interfaces-podman
  • openstack:debian-sid-64:tests/main/interfaces-desktop-launch
  • openstack:debian-sid-64:tests/main/snap-user-dir-perms-fixed:root
  • openstack:debian-sid-64:tests/main/snap-user-dir-perms-fixed:test
  • openstack:debian-sid-64:tests/main/snap-handle-link
  • openstack:opensuse-16.0-64:
  • openstack:opensuse-16.0-64:
  • openstack:opensuse-16.0-64:
  • openstack:opensuse-16.0-64:
  • openstack:opensuse-16.0-64:

Executing:

  • openstack:debian-sid-64:tests/unit/go:gcc
  • openstack:debian-sid-64:tests/smoke/install
  • openstack:debian-sid-64:tests/unit/go:static
  • openstack:debian-sid-64:tests/main/user-mounts
  • openstack:debian-sid-64:tests/unit/go:clang
  • openstack:debian-sid-64:tests/main/snap-user-service-socket-activation
  • openstack:debian-sid-64:tests/main/interfaces-many-core-provided
  • openstack:debian-sid-64:tests/regression/lp-2065077
  • openstack:debian-sid-64:tests/main/interfaces-userns
  • openstack:debian-sid-64:tests/regression/lp-1813365
  • openstack:debian-sid-64:tests/main/security-group-policy:with_reexec
  • openstack:debian-sid-64:tests/main/parallel-install-store
  • openstack:debian-sid-64:tests/main/parallel-install-classic
  • openstack:debian-sid-64:tests/main/dbus-activation-session
  • openstack:debian-sid-64:tests/main/snap-user-service
  • openstack:debian-sid-64:tests/main/parallel-install-local
  • openstack:debian-sid-64:tests/main/security-private-tmp
  • openstack:debian-sid-64:tests/main/snap-run-gdbserver:local_ip
  • openstack:debian-sid-64:tests/main/system-usernames:snap_daemon
  • openstack:debian-sid-64:tests/main/mounts-persist-refresh-content-snap
  • openstack:debian-sid-64:tests/main/snap-confine-privs
  • openstack:debian-sid-64:tests/main/document-portal-activation
  • openstack:debian-sid-64:tests/main/snapctl-refresh-tracking:test
  • openstack:debian-sid-64:tests/main/interfaces-desktop
  • openstack:debian-sid-64:tests/main/interfaces-personal-files
  • openstack:debian-sid-64:tests/main/snap-debug-stacktrace
  • openstack:debian-sid-64:tests/main/parallel-install-basic
  • openstack:debian-sid-64:tests/main/snap-user-service-restart-on-upgrade
  • openstack:debian-sid-64:tests/main/interfaces-shared-memory-private
  • openstack:debian-sid-64:tests/main/refresh-app-awareness:classic
  • openstack:debian-sid-64:tests/main/interfaces-browser-support:disallow
  • openstack:debian-sid-64:tests/main/snap-remove-terminate:fork_bomb
  • openstack:debian-sid-64:tests/main/regression-home-snap-root-owned
  • openstack:debian-sid-64:tests/main/snap-download
  • openstack:debian-sid-64:tests/main/snap-confine-undesired-mode-group
  • openstack:debian-sid-64:tests/main/security-group-policy:no_reexec
  • openstack:debian-sid-64:tests/main/snap-run-gdbserver:no_ip
  • openstack:debian-sid-64:tests/main/interfaces-polkit
  • openstack:debian-sid-64:tests/main/snap-run-gdbserver:deprecated
  • openstack:debian-sid-64:tests/main/snap-confine-tmp-mount
  • openstack:debian-sid-64:tests/main/confdb-secrets
  • openstack:debian-sid-64:tests/main/high-user-handling
  • openstack:debian-sid-64:tests/main/interfaces-browser-support:allow
  • openstack:debian-sid-64:tests/main/interfaces-mount-observe
  • openstack:opensuse-tumbleweed-64:tests/main/interfaces-xdg-portal-permission-store
  • openstack:opensuse-16.0-64:tests/main/snapd-snap-auto-install
  • openstack:opensuse-16.0-64:tests/main/snap-info
  • openstack:opensuse-16.0-64:tests/main/auto-refresh-gating
  • garden:ubuntu-core-18-64:tests/core/auto-refresh-backoff-after-reboot:kernel

Restoring:

  • openstack:debian-sid-64:tests/regression/lp-1797556
  • openstack:debian-sid-64:tests/main/interfaces-dbus
  • openstack:debian-sid-64:tests/main/interfaces-autopilot-introspection
  • openstack:debian-sid-64:tests/main/snap-user-dir-perms-fixed:root
  • openstack:debian-sid-64:tests/main/snap-user-dir-perms-fixed:test
  • openstack:debian-sid-64:tests/main/snap-handle-link
  • openstack:opensuse-16.0-64:
  • openstack:opensuse-16.0-64:
  • openstack:opensuse-16.0-64:
  • openstack:opensuse-16.0-64:tests/main/auto-refresh-gating
  • openstack:opensuse-16.0-64:tests/main/
  • openstack:opensuse-16.0-64:

Skipped tests from snapd-testing-skip

If you wish to have any of the below tests run in your PR, in your PR description, add 'unskip:' followed by a copy-and-pasted list (without variants) of the below tests you wish to run (unskip plus test list must be valid yaml)

  • garden:ubuntu-25.10-64:tests/main/apparmor-prompting-support
  • openstack-arm:ubuntu-24.04-arm-64:tests/main/i18n
  • openstack-arm:ubuntu-core-24-arm-64:tests/main/i18n
  • openstack:debian-sid-64:tests/main/interfaces-network-status-classic
  • openstack:debian-sid-64:tests/main/interfaces-xdg-portal-permission-store
  • openstack:ubuntu-24.04-64:tests/main/i18n
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-flag-restart
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:audio_record_single
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:audio_record_timespan_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:audio_record_timespan_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_actioned_by_other_pid_always_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_actioned_by_other_pid_always_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_not_actioned_by_other_pid_single_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_multiple_not_actioned_by_other_pid_single_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_write_chmod_same_fd_single_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_write_chmod_same_path_single_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:create_write_write_same_path_single_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:download_file_conflict
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:download_file_defaults
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:download_file_safer
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:read_single_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:read_single_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:special_characters
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:timespan_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:timespan_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:write_read_multiple_actioned_by_other_pid_allow_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:write_read_multiple_actioned_by_other_pid_deny_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:write_single_allow
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-integration-tests:write_single_deny
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-prompt-restoration
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:audiorecord_allow_forever
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:audiorecord_allow_session
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:audiorecord_allow_single
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:audiorecord_allow_timespan
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:audiorecord_deny_forever
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:audiorecord_deny_session
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:audiorecord_deny_single
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:audiorecord_deny_timespan
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:camera_allow_forever
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:camera_allow_session
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:camera_allow_single
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:camera_allow_timespan
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:camera_deny_forever
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:camera_deny_session
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:camera_deny_single
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:camera_deny_timespan
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:home_allow_forever
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:home_allow_session
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:home_allow_single
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:home_allow_timespan
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:home_deny_forever
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:home_deny_session
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:home_deny_single
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-smoke:home_deny_timespan
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-snapd-startup
  • openstack:ubuntu-25.10-64:tests/main/apparmor-prompting-support
  • openstack:ubuntu-25.10-64:tests/main/interfaces-requests-activates-handlers
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-flag-restart
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:audio_record_single
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:audio_record_timespan_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:audio_record_timespan_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_actioned_by_other_pid_always_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_actioned_by_other_pid_always_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_not_actioned_by_other_pid_single_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_multiple_not_actioned_by_other_pid_single_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_write_chmod_same_fd_single_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_write_chmod_same_path_single_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:create_write_write_same_path_single_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:download_file_conflict
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:download_file_defaults
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:download_file_safer
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:read_single_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:read_single_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:special_characters
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:timespan_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:timespan_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:write_read_multiple_actioned_by_other_pid_allow_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:write_read_multiple_actioned_by_other_pid_deny_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:write_single_allow
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-integration-tests:write_single_deny
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-prompt-restoration
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:audiorecord_allow_forever
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:audiorecord_allow_session
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:audiorecord_allow_single
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:audiorecord_allow_timespan
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:audiorecord_deny_forever
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:audiorecord_deny_session
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:audiorecord_deny_single
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:audiorecord_deny_timespan
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:camera_allow_forever
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:camera_allow_session
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:camera_allow_single
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:camera_allow_timespan
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:camera_deny_forever
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:camera_deny_session
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:camera_deny_single
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:camera_deny_timespan
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:home_allow_forever
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:home_allow_session
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:home_allow_single
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:home_allow_timespan
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:home_deny_forever
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:home_deny_session
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:home_deny_single
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-smoke:home_deny_timespan
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-snapd-startup
  • openstack:ubuntu-26.04-64:tests/main/apparmor-prompting-support
  • openstack:ubuntu-26.04-64:tests/main/i18n
  • openstack:ubuntu-26.04-64:tests/main/interfaces-requests-activates-handlers

@maykathm
maykathm force-pushed the maykathm/SNAPDENG-36186-add-version-invariant-in-tests branch 2 times, most recently from 24a3f30 to 7e18134 Compare January 20, 2026 17:48
@codecov

codecov Bot commented Jan 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.13%. Comparing base (dee46fb) to head (8c7e324).
⚠️ Report is 178 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #16465      +/-   ##
==========================================
+ Coverage   79.07%   79.13%   +0.05%     
==========================================
  Files        1370     1388      +18     
  Lines      190982   193529    +2547     
  Branches     2465     2466       +1     
==========================================
+ Hits       151028   153149    +2121     
- Misses      30864    31189     +325     
- Partials     9090     9191     +101     
Flag Coverage Δ
unittests 79.13% <ø> (+0.05%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@maykathm
maykathm force-pushed the maykathm/SNAPDENG-36186-add-version-invariant-in-tests branch 5 times, most recently from f0467d1 to 10245b2 Compare January 21, 2026 17:27
@maykathm
maykathm force-pushed the maykathm/SNAPDENG-36186-add-version-invariant-in-tests branch 3 times, most recently from a28b5ab to 6db1093 Compare January 29, 2026 09:14
@maykathm maykathm removed the Run only one system Only runs spread tests on one system label Jan 29, 2026
@maykathm maykathm closed this Jan 29, 2026
@maykathm maykathm reopened this Jan 29, 2026
@maykathm
maykathm force-pushed the maykathm/SNAPDENG-36186-add-version-invariant-in-tests branch from 6db1093 to 9570b76 Compare February 2, 2026 08:53
@maykathm maykathm added the Run only one system Only runs spread tests on one system label Feb 20, 2026
@maykathm
maykathm force-pushed the maykathm/SNAPDENG-36186-add-version-invariant-in-tests branch 3 times, most recently from 3f919fc to dac158b Compare February 24, 2026 15:17
@maykathm maykathm closed this Apr 2, 2026
@maykathm maykathm reopened this Apr 2, 2026
@maykathm
maykathm force-pushed the maykathm/SNAPDENG-36186-add-version-invariant-in-tests branch from dac158b to 98e617f Compare May 4, 2026 11:52
@maykathm maykathm removed the Run only one system Only runs spread tests on one system label May 7, 2026
@maykathm
maykathm marked this pull request as ready for review May 7, 2026 07:38
@maykathm
maykathm force-pushed the maykathm/SNAPDENG-36186-add-version-invariant-in-tests branch from f106dd5 to a6b7b7b Compare May 7, 2026 12:29
@maykathm maykathm added the Run nested The PR also runs tests inluded in nested suite label May 29, 2026
@maykathm maykathm closed this May 29, 2026
@maykathm maykathm reopened this May 29, 2026
@maykathm
maykathm force-pushed the maykathm/SNAPDENG-36186-add-version-invariant-in-tests branch from 87de7b4 to 8ba5d3a Compare June 9, 2026 06:44

@miguelpires miguelpires 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.

there's a duplicate check

Comment thread tests/lib/tools/tests.invariant Outdated
Co-authored-by: Miguel Pires <miguelpires94@gmail.com>
@maykathm
maykathm requested a review from miguelpires June 9, 2026 12:35
@maykathm maykathm closed this Jun 12, 2026
@maykathm maykathm reopened this Jun 12, 2026
@maykathm
maykathm requested a review from bboozzoo June 12, 2026 07:03
Comment thread tests/lib/tools/tests.invariant Outdated
# The snapd version will not be a testing version
return 0
fi
snap version | grep snapd | MATCH "1337" || {

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.

this isn't exactly the version the test started with. I'd expect something like we do for the check-snap-mount-dir, i.e. record what's at the beginning of the test suite where we install the right package (sru, or a CI build) and check at the end that the version is still the same.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That was my first approach but with that approach the cross-distro-reexec suite fails on amazon so I opted for this approach.

@maykathm
maykathm requested a review from bboozzoo June 15, 2026 07:27
Comment thread tests/lib/tools/tests.invariant Outdated
Comment thread tests/lib/prepare-restore.sh Outdated
Comment thread tests/lib/tools/tests.invariant Outdated
@maykathm
maykathm requested a review from bboozzoo June 15, 2026 07:53
Comment on lines +274 to +277
if tests.info is-snapd-from-archive && not tests.info is-reexec-enabled; then
# re-exec may be explicitly disabled in the test variant, in which case the version will not match
return 0
fi

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.

do we still need this branch?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, because some tests disable re-exec

@bboozzoo bboozzoo 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.

LGTM

@github-actions github-actions Bot 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 Jun 15, 2026
Comment thread spread.yaml
tests.cleanup defer rm -f /snap
;;
esac
if ! os.query is-amazon-linux; then

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.

why is this needed for this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Amazon should have the cleanup in its packaging so this is a correction. It's needed for this change because without it during cleanup in the cross-distro-reexec suite when the /snap dir is removed, snapd from the RPM package is used instead of the snap.

@maykathm

maykathm commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

This change still has issues. Eventually with enough reruns the test pass, but I see
snapd version mismatch, expected 1337.2.76-0.amzn2 but got 1337.2.76+g91.c8b15b8 errors during prepare in amazon in the initial runs. This cannot land without fixing that issue.

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 Run nested The PR also runs tests inluded in nested suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants