← Back to issue list

providers: introduce clean_project_environments() (CRAFT-314)

View original Github issue

Metadata

Project
charmcraft
Number
#410
Type
pull request
State
merged
Author
cjp256
Labels
—
Created
Updated
Closed

Current evaluation

Merged #410 via 91207ad4, adding clean_project_environments() in 4aa71880 to remove all project environments and support the upcoming clean command.

Resolution: closed resolved

Reason: PR #410 was merged into charmcraft with implementation commit 4aa71880 and merge commit 91207ad4. Follow-up PR #412 later added the clean command using this interface.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Provide interface for upcoming 'clean' command to clean all environments created for a given project. Signed-off-by: Chris Patterson <chris.patterson@canonical.com>

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged #410 via 91207ad4, adding clean_project_environments() in 4aa71880 to remove all project environments and support the upcoming clean command.
stealth/space-bunny-alpha — closed resolved Merged #410 (commit 4aa71880), adding clean_project_environments() to remove all environments created for a project and support the upcoming clean command.
qwen/qwen3.6-35b-a3b — — 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.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Introduces clean_project_environments() to provide an interface for the upcoming clean command, enabling removal of all environments created for a given project.

Update history

No update history recorded yet.

Related work

  • Related To: charmcraft#412 (confidence 99%)

    Introduced the clean command in commits 23db6367 and 646bc259, building on the project-environment cleanup interface.

Related issues

Issue Project State Summary Similarity
#3929 providers: refactor clean_project_environments snapcraft merged Merged PR #3929 as commit 19343788, removing get_instance_name() from clean_project_environments() and renaming is_provider_available() to is_provider_installed().
74%
#3434 build providers: clean environment if project directory is changed snapcraft merged Merged PR #3434 as commit 805327b65, adding project-directory tracking and cleaning build environments after relocation or project-name reuse.
72%
#3216 build providers: tweak environment clean detection and logging snapcraft merged Merged #3216 in commit a00e3f52d, improving build-environment clean detection/logging and consolidating clean_project() into one call.
71%
#95 providers: add `create_environment` method rockcraft merged Merged PR #95 as commit 00b557bf, adding Provider.create_environment() for project-environment cleanup.
71%