providers: add `create_environment` method
Metadata
Current evaluation
Merged the addition of a create_environment method to the providers module. The method supports clean_project_environment and aligns with snapcraft and charmcraft implementations. Approved by one reviewer and passed CI checks.
Suggested action: —
No scores available.
Issue body
- [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Add the `create_environment()` method, which will be used by `clean_project_environment()`.
A duplicate of [snapcraft](https://github.com/snapcore/snapcraft/blob/c3d4c8999f2091592d4ebbca8e35198880bb89c6/snapcraft/providers/_provider.py#L168) and [charmcraft](https://github.com/canonical/charmcraft/blob/b22fcdba3b894004468abfbf45caa54d93fbf7d0/charmcraft/providers/_provider.py#L169).
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged the addition of a create_environment method to the providers module. The method supports clean_project_environment and aligns with snapcraft and charmcraft implementations. Approved by one reviewer and passed CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged the addition of the create_environment method to the providers module, aligning with snapcraft and charmcraft implementations. The method supports clean_project_environment and was authored by maintainer mr-cal. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged the create_environment method addition to providers. It supports clean_project_environment and mirrors implementations in snapcraft and charmcraft. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #410 providers: introduce clean_project_environments() (CRAFT-314) | charmcraft | merged | Merged to introduce clean_project_environments(), providing an interface for an upcoming clean command that removes all environments for a given project. Approved by two reviewers, adding 106 lines across two files. | |
| #3927 providers: move `get_command_environment()` to providers.py | snapcraft | merged | Merged pull request moving the snapcraft-specific get_command_environment() function out of the craft-providers interface and into providers.py. Approved, passed CI checks, and achieved 100% coverage. | |
| #409 providers: introduce launch_environment() (CRAFT-312) | charmcraft | merged | Merged. Introduces launch_environment() to launch and configure an LXC container for charmcraft, including buildd remote setup. Approved by two reviewers, adding 163 lines across two files. |