← 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

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.

Suggested action: close stale

Reason: The PR is 217 days old with zero maintainer engagement (0 comments, 0 reviewers) and 4 unresolved review comments. Main already pins craft-parts>=2.33.0 (the version containing the pathlib API change from craft-parts#1424), meaning the codebase has already been adapted to the new API through other commits. The change is a small mechanical refactor (+23/-21 across 4 files) that is no longer applicable to the current codebase state.

Impact: 30 Quick Win: 22.5 Staleness: 85 Complexity: 25 Confidence: 55

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
qwen/qwen3.8-27b
Impact: 30
Quick Win: 22.5
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 55
Complexity: 10
Confidence: 85
needs review Adopts pathlib for craft-parts API calls following an upstream change. Submitted 141 days ago by an external contributor. Linting and tests pass, CLA signed. Awaiting review and merge with no recent activity or comments.

Update history

No update history recorded yet.

Related work

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

    Identical PR title and purpose in the sibling rockcraft project; that PR's equivalent change already landed in rockcraft main via commit 1406be57 'refactor: update for Path change in craft-parts', confirming the upstream API migration is complete.

Related issues

Issue Project State Summary Similarity
#1081 chore: use pathlib to interact with craft-parts rockcraft open Adapts craft-parts API calls to use pathlib after upstream craft-parts#1424. 217 days old, zero comments/reviews. Same change already landed in main via commit 1406be57 'refactor: update for Path change in craft-parts'.
95%
#272 chore: change mount calls to use pathlib imagecraft open Chore PR adapting imagecraft's craft-parts mount/umount calls to the new pathlib-based API (craft-parts#1424). +18/-18 across 2 files. Pending, 0 reviewers, 0 comments, no CI; dormant 166 days.
80%
#1599 chore(deps): update dependency craft-parts to v1.27.0 charmcraft merged The craft-parts dependency update to v1.27.0 was merged after passing automated checks and receiving approval from two reviewers. The automated bot submission modified two files with minimal changes.
73%
#1142 chore(deps): update dependency craft-parts to v1.23.0 charmcraft merged Merged automated dependency update upgrading craft-parts from v1.20.0 to v1.23.0. Approved by one reviewer, passed CI checks, and successfully merged despite unrelated failing spread tests noted in a comment.
72%
#2855 chore: update craft-parts for regression fix charmcraft merged Merged to update the craft-parts dependency and resolve a regression. The commit includes an automatic lint fix, received two approvals, and passed CI validation before integration.
71%
#1265 chore(deps): update dependency craft-parts to v1.25.1 charmcraft merged Merged an automated dependency update upgrading craft-parts from v1.24.1 to v1.25.1. Approved by two reviewers, passed CI, and manually merged after automerge was disabled.
71%