build providers: recreate instance if base changed
Metadata
Current evaluation
Merged fix ensuring build providers recreate instances when the project base changes. Previously, base updates were ignored after initial provisioning. This resolves Launchpad bug #1794506 and was approved and merged into master.
Suggested action: —
No scores available.
Issue body
Once a build provider is provisioned, changes in project base are
ignored and the existing VM is used for new builds. To ensure base
and provider contents are consistent, we test base values at the
start of each build and force instance recreation if base has
changed.
LP: #1794506
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [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] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [ ] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged fix ensuring build providers recreate instances when the project base changes. Previously, base updates were ignored after initial provisioning. This resolves Launchpad bug #1794506 and was approved and merged into master. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. Forces build provider instance recreation when the project base changes to maintain environment consistency. Resolves LP: #1794506. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. Forces build provider instance recreation when the project base changes, ensuring consistency between the base and provider contents. Resolves LP: #1794506. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2225 build providers: environment setup for projects | snapcraft | merged | Merged. Adds a cloud data generator to the Base Provider for environment setup and updates project loading logic for re-execution mode. Integrates changes into the multipass provider. Resolves Launchpad issues #1782780 and #1782782. | |
| #3202 build providers: fix base change warning message | snapcraft | merged | Merged after approval and passing CI. The pull request fixes the base change warning message in build providers, updating one file with four additions and two deletions. |