← Back to issue list

spread tests: enable LXD build provider tests

View original Github issue

Metadata

Project
snapcraft
Number
#2631
Type
pull request
State
merged
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Merged into master. Enabled LXD build provider tests by relocating setup to the early prepare phase to reduce overhead and consolidating declarations from task.yaml to spread.yaml. Approved, passed CI, and increased coverage by 0.01%.

Suggested action:

No scores available.

Issue body

Move LXD setup to early prepare and do not remove at the end of each test to avoid the setup overhead (including image download). Additionally, move the common declarations from task.yaml to spread.yaml for the build-providers suite. Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged into master. Enabled LXD build provider tests by relocating setup to the early prepare phase to reduce overhead and consolidating declarations from task.yaml to spread.yaml. Approved, passed CI, and increased coverage by 0.01%.
qwen3.6-35b-a3b-mtp-q6 Merged into master. Optimized LXD build provider tests by moving setup to early prepare and consolidating declarations in spread.yaml to reduce overhead. Slightly increased overall code coverage.
qwen3.6-35b-a3b-mtp-q6 Merged into master. Enables LXD build provider tests by moving setup to early prepare and consolidating declarations to spread.yaml, reducing test overhead and image download time. Coverage increased by 0.01%.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2983 tests: add LXD spread test snapcraft merged Merged after reviewer approval and passing CI checks. Added LXD spread test to verify LXD builds and installs. Modified two files with 29 added lines.
83%
#2682 tests: change default spread provider to lxd outside of travis snapcraft merged Merged after approval and CI. Refactored runtests script for clarity and updated Travis config to use google spread provider, removing legacy code and simplifying non-Travis test execution.
80%
#302 test(spread): switch to testing in destructive mode imagecraft merged Switched spread tests to destructive mode and merged. This addresses an upcoming losetup requirement that temporarily breaks the LXD backend. Approved by two reviewers with passing CI checks.
78%
#694 tests(spread): use LXD from `5.21/candidate` rockcraft merged Updated spread tests to use LXD from 5.21/candidate, resolving main branch breakage from overlay filesystem mounting regressions. Establishes a stable testing baseline against LTS regressions. Merged after approval and passing CI.
78%
#3120 spread: only run in LXD with the google/multipass provider for repo snapcraft merged Merged changes restricting spread tests to LXD with the google/multipass provider for the repo. Switched autopkgtest to destructive mode to bypass dirmngr failures until the environment is verified. Approved and passed CI.
77%
#269 tests: add initial spread testing fetch-service merged Merged following approval by three reviewers. Adds initial spread testing infrastructure across 13 files, resolving issue #226. Validation confirms all 10 test tasks passed successfully on Ubuntu 20.04 and 22.04 LXD environments.
76%
#3725 tests: use lxd in clean provider test snapcraft merged Merged into snapcraft/7.0. Enables LXD in provider cleaning tests to align with destructive mode testing. Approved by one reviewer, passed CI checks, and maintained existing code coverage.
75%
#5856 fix(spread): pack with lxd for core20 base tests snapcraft merged Merged after two approvals. Updates spread tests to pack with LXD for core20 base tests. CI passed with one non-blocking schema diff failure. Related core20 and snapd test failures were resolved in separate PRs.
75%
#73 tests: remove duplicated unit tests rockcraft merged Merged removal of duplicated unit tests from test_provider.py and test_providers.py, artifacts from a prior LXD and Multipass test consolidation. Approved, passed CI, and reduced two files by 60 lines.
75%
#202 tests: bump lxd to 5.11 in spread tests rockcraft merged Merged update bumping LXD in spread tests to 5.11, resolving installation failures from the unlisted 5.9 snap channel. Approved by two reviewers and passed CI.
74%