clean user repos
Closed, InvalidPublic

Description

Appstream picks any version available, when moving to new Applications and/or Plasma releases this causes a transition period where old data may be picked and thus not show up in Discover.

To fix this the snapshotting process should include a step that removes all but the latest version of all packages. Thus preventing appstream from picking a wrong version. This would be a partial version of what repo_cleanup.rb already does, which cleans more than one repo. Ultimately the logic is probably the same and it may be feasible to refactor the existing repo_cleanup code to support both a mass-clean and a per-repo cleanup. So it can be used during snapshotting.

*Great care must be taken that building of release jobs is REALLY blocked during this time! Otherwise reentrancy can become a huge problem potentially breaking the repo or loosing packages!*

Related Objects

sitter created this task.Jan 24 2017, 7:45 AM
sitter closed this task as Invalid.Jan 7 2021, 12:45 PM

Limiting snapshots to a single version would actually be really ill advised. We've seen in the not so distance history that breakage can sneak into a snapshot still and for quick workarounds it is useful for the user to be able to install an older version manually. As such we'll not want to move on this. Also chances are asgen was improved since so it's not clear if this is even still an issue, I certainly haven't noticed it