← Back to issue list

build providers: refresh packages on bring up

View original Github issue

Metadata

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

Current evaluation

Merged #2267 as commit 1df8068c0, moving package-repository refreshes into BaseProvider.start() and shared build-environment bring-up logic.

Resolution: closed resolved

Reason: PR #2267 was approved and merged as commit 1df8068c0. It generalized environment bring-up so package repositories are refreshed whenever a build provider starts.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Run packaging repo refresh tasks when bringing up an environment. This requires adding start to the BaseProvider and bringing up logic that was in the Multipass provider. LP: #1792214 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/)? - [ ] 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)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged #2267 as commit 1df8068c0, moving package-repository refreshes into BaseProvider.start() and shared build-environment bring-up logic.
stealth/space-bunny-alpha — closed resolved Merged #2267 as commit 1df8068c0, moving package-repository refreshes into BaseProvider.start() and shared build-environment bring-up logic.
qwen/qwen3.6-35b-a3b — — Merged. Added packaging repository refresh tasks to the BaseProvider bring-up logic, consolidating Multipass provider functionality. Approved and passed CI. A related container environment issue remains unresolved.
qwen3.6-35b-a3b-mtp-q6 — — Merged changes to refresh packages on environment bring-up. The update adds a start method to BaseProvider and ports Multipass initialization logic, ensuring packaging repositories update when environments launch.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft (launchpad)#1792214 (confidence 100%)

    The linked Launchpad bug requested refreshing package listings during initial provider setup.

Related issues

Issue Project State Summary Similarity
#2460 build providers: recreate instance if base changed snapcraft merged Merged via commit 63d052f65: build providers now detect project base changes and recreate instances, resolving Launchpad bug #1794506.
71%
#3085 build providers: dist-upgrade the environment on bootstrap snapcraft merged Merged #3085 to dist-upgrade build-provider environments during bootstrap; landed as commit e032a8ae2.
70%