← Back to issue list

chore: use pathlib to interact with craft-parts

View original Github issue

Metadata

Project
snapcraft
Number
#5981
Type
pull request
State
open
Author
EdmilsonRodrigues
Labels
—
Created
Updated
Closed
—

Current evaluation

Pathlib migration for craft-parts is now redundant on main; the PR is inactive after 249 days with four unresolved comments and multiple failing checks.

Suggested action: close stale

Reason: Current main already uses pathlib.Path for craft-parts lifecycle inputs and metadata directory checks, making this narrow compatibility patch obsolete. The PR has had no activity for 249 days, retains four unresolved review comments, and fails lint, minimum-dependency, fast-test, OSV, and two integration checks.

Evaluated by: mr-cal-bot

Impact: 30 Quick Win: 2 Complexity: 25 Confidence: 84 Actionability: 10

Issue body

Adjust calls to functions of craft-parts to use pathlib after [change in craft-parts API](https://github.com/canonical/craft-parts/pull/1424). --- - [X] I've followed the [contribution guidelines](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md). - [X] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [X] I've successfully run `make lint && make test`. - [ ] I've added or updated any relevant documentation. - [ ] I've updated the relevant release notes.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 30
Quick Win: 2
Complexity: 25
Confidence: 84
Actionability: 10
close stale Pathlib migration for craft-parts is now redundant on main; the PR is inactive after 249 days with four unresolved comments and multiple failing checks.
stealth/space-bunny-alpha
Impact: 35
Quick Win: 4
Complexity: 25
Confidence: 91
Actionability: 15
keep open Adapts four files to pathlib for craft-parts APIs; inactive for 249 days with four unresolved review comments and failures in lint, minimum-dependency, and fast tests.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 6
Complexity: 15
Confidence: 65
Actionability: 25
keep open Adapts snapcraft to use pathlib for craft-parts interactions following craft-parts API changes. PR has 4 unresolved review comments and some failing CI checks, with no author activity for 236 days.
qwen/qwen3.8-27b
Impact: 30
Quick Win: 22
Staleness: 85
Complexity: 25
Confidence: 55
close stale Adapts craft-parts API calls to use pathlib after upstream craft-parts#1424 (2.33 release). 217 days old, 0 comments, 0 reviewers, 4 unresolved review comments, several CI checks failing. Main already requires craft-parts>=2.33.0.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 20
Confidence: 85
close stale Updates craft-parts API calls to use pathlib following upstream changes. Currently pending review with 4 unresolved comments and mixed CI results. Last active 176 days ago.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 20
Confidence: 85
close stale Updates craft-parts API calls to use pathlib. Inactive for 162 days with no maintainer feedback or CI status updates.

Update history

No update history recorded yet.

Related work

  • Caused By: canonical/craft-parts#1424 (confidence 100%)

    The PR body explicitly identifies this craft-parts API change as the reason for converting calls to pathlib.

  • Related To: rockcraft#1081 (confidence 97%)

    Rockcraft has an analogous open pathlib migration for the same craft-parts API change, but it does not supersede this repository's work.

Related issues

Issue Project State Summary Similarity
#1081 chore: use pathlib to interact with craft-parts rockcraft open Adapts rockcraft's craft-parts calls to pathlib after upstream API changes; +10/-12 across 4 files, CI passing, awaiting review for 249 days.
85%
#272 chore: change mount calls to use pathlib imagecraft closed Pathlib migration for craft-parts mount calls was closed unmerged after 196 days with no review, CI, comments, or resolving commit.
83%
#923 chore(merge): 2.1.4 into main craft-parts merged Merged craft-parts 2.1.4 back into main via PR #923 (merge commit 92075f67).
71%