← Back to issue list

tests: retry installing lxd snap

View original Github issue

Metadata

Project
snapcraft
Number
#3957
Type
pull request
State
merged
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

PR #3957 merged as 57cd1d97b, adding snapd-testing-tools retries for LXD installation in spread tests to work around intermittent snapd bug 1870201.

Resolution: closed resolved

Reason: The approved PR was merged into main as commit 57cd1d97b. It retries LXD snap installation to prevent intermittent snapd failures from destabilizing spread tests.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [X] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [X] Have you successfully run `make lint`? - [X] Have you successfully run `pytest tests/unit`? ----- Use the `retry` function from [snapd-testing-tools](https://github.com/snapcore/snapd-testing-tools) when installing the lxd snap. This is to workaround an intermittent and hard-to-reproduce [snapd bug](https://bugs.launchpad.net/snapd/+bug/1870201). > :warning: **If you are having trouble running spread tests**: Try fetching the git submodules (`git submodule update --init --recursive`) to collect the snapd-testing-tools submodule.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved PR #3957 merged as 57cd1d97b, adding snapd-testing-tools retries for LXD installation in spread tests to work around intermittent snapd bug 1870201.
stealth/space-bunny-alpha — closed resolved Merged #3957 as 57cd1d97b, adding retries around LXD snap installation in spread tests to avoid intermittent snapd bug 1870201.
stealth/space-bunny-alpha — closed resolved Merged PR #3957 as 57cd1d97b, adding snapd-testing-tools retry logic for LXD snap installation in spread tests to work around intermittent snapd bug 1870201.
qwen/qwen3.6-35b-a3b — — Merged into main. Introduces retry logic for LXD snap installation in tests via snapd-testing-tools to workaround an intermittent snapd bug. Approved, passed CI, and caused no coverage changes.
qwen3.6-35b-a3b-mtp-q6 — — Merged into main. Adds a retry mechanism for installing the lxd snap in tests via snapd-testing-tools to workaround an intermittent snapd bug. Code coverage remains unchanged.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#483 test(spread): run snap-preseed tests in lxd imagecraft merged Merged PR #483 to update snap-preseed plugin tests to run in LXD across all systems, addressing CRAFT-5332.
77%
#2937 spread tests: do not attempt to remove snapd snap snapcraft merged Merged in commit b9290bb32; spread tests now skip removing the protected snapd snap, fixing LXD test failures.
75%
#262 tests: install docker after lxd rockcraft merged Merged PR #262 as 64c5c01b, changing spread-test setup to install Docker after LXD and avoid order-dependent failures.
73%
#2983 tests: add LXD spread test snapcraft merged Merged PR #2983 as 4b8522a14, adding spread coverage that builds the LXD package with LXD and destructive/host providers; installation checks were deferred.
72%
#1133 test(spread): make LXD refresh in prepare more reliable craft-application closed Closed unmerged; its LXD auto-refresh race fix was superseded by merged PR #1170 (commit fea3e835), which waits for active snap refreshes during spread prepare.
72%
#2524 Snapcraft try snapcraft merged Merged snapcraft try via PR #2524 (commit ec579eaa1); LXD tests were split out because they require Snapcraft installed from the store.
71%
#269 tests: add initial spread testing fetch-service merged Merged PR #269 (commit 8fe0091) added initial Spread integration tests to fetch-service: spread.yaml plus snap-config, basic-inspection, update-config and upgrade-revert suites; all 10 lxd-vm tasks passed, resolving #226.
71%
#1758 tests: move the ppa test trigger to lxd snapcraft merged Merged snapcore/snapcraft#1758 (commit 3524514e9), moving the PPA test trigger from Docker to LXD after debugging showed the PPA correctly failed to build the prior day's snap.
71%
#2631 spread tests: enable LXD build provider tests snapcraft merged Merged PR #2631 enabled LXD build-provider spread tests and reused early-prepared LXD setup, reducing repeated setup and image-download overhead.
71%
#606 tests: update LXD error message craft-providers merged Merged PR #606 updated an LXD integration test’s expected error message after a progressive LXD snap release changed the output.
71%