← Back to issue list

Updating repositories does not trigger necessary actions

View original Github issue

Metadata

Project
craft-parts
Number
#413
Type
issue
State
open
Author
gboutry
Labels
Created
Updated
Closed

Current evaluation

Rockcraft: removing a PPA from package-repositories does not remove its sources file or retrigger the pull step. Triaged by maintainer with a concrete plan split across craft-parts (generic project-option tracking in step state) and craft-application (opt package_repositories into tracking). Unfixed; active discussion 8 days ago.

Suggested action: keep open

Reason: Maintainer cmatsuoka actively triaged this 8 days ago, assigning ownership to craft-parts (generic project-option tracking in step state) and craft-application (opting package_repositories into that tracking, plus optional overlay cleanup). The ProjectOptions class in craft_parts/infos.py still lacks package_repositories, and PullState.project_options_of_interest only tracks project_vars, confirming the fix is not yet implemented. The issue is valid, scoped, and under active discussion.

Impact: 50 Quick Win: 22.5 Staleness: 10 Complexity: 55 Confidence: 80 Support Request: 5

Issue body

This is a behavior seen while using Rockcraft. Updating repositories entries does not remove PPA files from the disk and does not trigger pull steps. rockcraft.yaml ```yaml name: python-3.8 summary: Python 3.8 license: Apache-2.0 description: | Python 3.8 version: "3.8" base: ubuntu:22.04 platforms: amd64: package-repositories: - type: apt ppa: dqlite/dev priority: always - type: apt ppa: deadsnakes/ppa priority: always parts: python: plugin: nil stage-packages: - python3.8 ``` Performing pull step: ```bash rockcraft pull --shell-after Launching instance... Retrieved base ubuntu:22.04 for amd64 Extracted ubuntu:22.04 Package repositories installed Executed: pull pebble Executed: pull python Launching shell on build environment... root@rockcraft-keystone-53910271:~/project# ls -alh /etc/apt/sources.list.d/ total 4.0K drwxr-xr-x 2 root root 4 Apr 3 13:09 . drwxr-xr-x 8 root root 9 Apr 26 2022 .. -rw-r--r-- 1 root root 164 Apr 3 13:09 snapcraft-ppa-deadsnakes_ppa.sources -rw-r--r-- 1 root root 160 Apr 3 13:09 snapcraft-ppa-dqlite_dev.sources root@rockcraft-keystone-53910271:~/project# ``` Then, removing the `deadsnakes/ppa` PPA: ```diff diff rockcraft.yaml/before rockcraft.yaml/after 16,18d15 < - type: apt < ppa: deadsnakes/ppa < priority: always ``` This is the result: ```bash rockcraft pull --shell-after Launching instance... Retrieved base ubuntu:22.04 for amd64 Extracted ubuntu:22.04 Package repositories installed Executed: skip pull pebble (already ran) Executed: skip pull python (already ran) Launching shell on build environment... root@rockcraft-keystone-53910271:~/project# ls -alh /etc/apt/sources.list.d/ total 4.0K drwxr-xr-x 2 root root 4 Apr 3 13:09 . drwxr-xr-x 8 root root 9 Apr 26 2022 .. -rw-r--r-- 1 root root 164 Apr 3 13:09 snapcraft-ppa-deadsnakes_ppa.sources -rw-r--r-- 1 root root 160 Apr 3 13:09 snapcraft-ppa-dqlite_dev.sources ``` The sources file is not removed, and the pull stage is not retriggered. (this should have failed)

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 50
Quick Win: 22.5
Staleness: 10
Complexity: 55
Confidence: 80
Support Request: 5
keep open Rockcraft: removing a PPA from package-repositories does not remove its sources file or retrigger the pull step. Triaged by maintainer with a concrete plan split across craft-parts (generic project-option tracking in step state) and craft-application (opt package_repositories into tracking). Unfixed; active discussion 8 days ago.
qwen/qwen3.6-35b-a3b
Staleness: 15
Complexity: 75
Confidence: 90
Support Request: 10
keep open Updating package-repositories fails to remove old PPA files or retrigger pull steps when configuration changes. Currently scoped for implementation across craft-parts and craft-application.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 50
close stale Rockcraft package-repository updates fail to remove old PPA files or retrigger pull steps. Reported over 3 years ago; a maintainer clarified craft-parts does not handle this, making it out of scope. Currently inactive and untriaged.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 80
Support Request: 10
close stale Rockcraft package-repository updates fail to remove old PPA files or trigger rebuilds. A maintainer clarified this belongs in craft-archives or the application layer, not this component. The issue has been inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 30
Confidence: 80
Support Request: 15
close stale Modifying package-repositories fails to remove stale PPA files or trigger pull steps. craft-parts indicates this requires craft-archives implementation. Internal ticket CRAFT-2955 created. Awaiting triage and assignment.

Update history

Date Change
updated

Related issues

No related issues found above the similarity threshold.