← Back to issue list

chore: use pathlib to interact with craft-parts

View original Github issue

Metadata

Project
rockcraft
Number
#1081
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. 217 days old, zero comments/reviews. Same change already landed in main via commit 1406be57 'refactor: update for Path change in craft-parts'.

Suggested action: close stale

Reason: The PR is 217 days old with zero maintainer interaction, and the identical change was already merged directly into main as commit 1406be57 'refactor: update for Path change in craft-parts', which touches the same files (lifecycle.py, layers.py, etc.) and the current codebase already uses pathlib-based craft-parts calls.

Impact: 20 Quick Win: 17.0 Staleness: 85 Complexity: 15 Confidence: 80

Issue body

Adjust calls to functions of craft-parts to use pathlib after [changes in craft-parts API](https://github.com/canonical/craft-parts/pull/1424). --- - [X] I've followed the [contribution guidelines](https://github.com/canonical/rockcraft/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.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 20
Quick Win: 17.0
Staleness: 85
Complexity: 15
Confidence: 80
close stale 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'.
qwen/qwen3.6-35b-a3b
Staleness: 80
Complexity: 10
Confidence: 75
needs review Adapts craft-parts API calls to use pathlib following upstream changes. PR passes CI, has no review comments, and has been inactive for 176 days awaiting maintainer triage.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 80
needs review Adapts craft-parts API calls to use pathlib following upstream changes. Currently inactive with no maintainer feedback or CI status.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 20
Confidence: 85
close stale Adapts craft-parts API calls to use pathlib following upstream changes. Inactive for 159 days with no maintainer feedback or CI status. Likely superseded by upstream integration or project progression.
qwen3.6-35b-a3b-mtp-q6
Staleness: 55
Complexity: 20
Confidence: 75
needs review Adapts craft-parts interactions to use pathlib following upstream API changes. Checks pass, but the pull request has been inactive for 140 days with no comments and missing documentation updates.

Update history

No update history recorded yet.

Related work

  • Caused By: craft-parts#1424 (confidence 95%)

    Upstream craft-parts PR 'refactor: use pathlib internally' is the API change that necessitated this adaptation, as stated in the PR body.

  • Likely Fixed By: rockcraft#1406be57 (confidence 85%)

    Commit 'refactor: update for Path change in craft-parts' in main already implements the same pathlib adaptation in the same files this PR targets.

Related issues

Issue Project State Summary Similarity
#5981 chore: use pathlib to interact with craft-parts snapcraft open 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.
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.
82%
#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%
#5166 chore!: use dev craft-parts snapcraft closed Closed as a test branch superseded by pull request #5149. The dev craft-parts changes were merged via the referenced PR instead.
70%
#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.
70%