build providers: remove use of cloud-init
Metadata
Current evaluation
Merged changes removing cloud-init from build providers. Refactored to use _run and _push_file methods, isolating initial setup. Approved by reviewer, passed CI, and updated six files.
Suggested action: —
No scores available.
Issue body
Make use of other build provider functionality to have the necessary
assets on the build environment (i.e.; ._run and ._push_file).
The initial "first run" setup has been moved to its own method.
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 changes removing cloud-init from build providers. Refactored to use _run and _push_file methods, isolating initial setup. Approved by reviewer, passed CI, and updated six files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes removing cloud-init from build providers. Refactored to use _run and _push_file methods, moving initial setup to a dedicated function. Approved after achieving 100% diff coverage and maintainer sign-off. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes removing cloud-init from build providers. Replaced with ._run and ._push_file methods, moving initial setup to a dedicated function. Approved after achieving 100% diff coverage and a 0.03% overall coverage increase. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2374 build providers: destroy on create failures | snapcraft | merged | Merged. Resolves a bug where build providers and VMs remained running after launch failures. Adds cleanup logic and tests across seven files, approved by a reviewer and passing CI checks. | |
| #2474 build providers: remove dead code | snapcraft | merged | Merged removal of dead code for legacy cleanbuild support in build providers. Approved by one reviewer, passed CI, and modified three files (+54/-165 lines). | |
| #2964 build providers: remove LXD specific env setup | snapcraft | merged | Merged. Removes LXD-specific environment setup from build providers since Provider._get_env_command already handles it. Approved by reviewer, passed CI, and successfully integrated. | |
| #2515 build providers: support for provider setup | snapcraft | merged | Merged after approval and passing CI. Implemented provider setup support by relocating checks and initialization logic into provider implementations. Modified ten files (+212/-121 lines) and resolves LP #1821586. | |
| #5537 docs: update build provider procedures | snapcraft | merged | Merged documentation update to build provider procedures, resolving issue #5519. Approved by two reviewers and passed most CI checks despite minor integration test failures. Changes span four files with 100 lines added and 98 removed. | |
| #2717 build providers: inject core18 instead of core | snapcraft | merged | Merged. Updates build providers to inject core18 instead of core. Approved by one reviewer with passing CI checks. Changes modify two files with seven additions and seven deletions. | |
| #2935 build providers: remove tzdata workaround | snapcraft | merged | Merged changes remove an outdated tzdata workaround from build providers. The underlying issue was resolved by adding --preserve-env in a prior commit, rendering the workaround obsolete. Approved and passed CI. | |
| #2282 build providers: cleaner start and launch messaging | snapcraft | merged | Merged changes that clean up start and launch messaging for build providers. Approved by one reviewer, passed CI checks, and modified eight files to address Launchpad issue #1793101. | |
| #2961 build providers: remove over use of -i in sudo | snapcraft | merged | Merged changes removing unnecessary -i flags from sudo commands in build providers. This resolves an ioctl warning in Multipass when stdin is set to DEVNULL. Approved by one reviewer, passed CI, and modified four files. | |
| #3215 build providers: use PEP-440 compliant version comparison operator | snapcraft | merged | Merged updates to build providers, replacing manual version checks with pkg_resources for PEP-440 compliance. Approved by reviewer, passed CI, and modified one file (+5/-10). |