Automatically update appstream-data #507
Labels
No labels
a11y
btrfs
Closed As
Can't fix
Closed As
Deferred to upstream
Closed As
Fixed
Closed As
Won't fix
default-apps
easyfix
experience
help-wanted
installation
meeting
meeting-request
nvidia
packaging
pending-action
qa
testing
user-docs
wg-docs
wg-meta
No milestone
No project
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
workstation/tickets#507
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The appstream-data package is an imporant part of the Fedora Workstation experience because it contains all the AppStream metadata used by modern software store GUIs such as GNOME Software or KDE Discover.
As such, it needs to be updated regularly - before the new Fedora version release and during its lifetime. However, this has to be done manually and currently depends on one person - Richard Hughes.
If there is no update done in time (for example, before the new Fedora release), it often results in applications being missing or having outdated metadata.
It would be great if there was a way to re-generate the appstream-data package automatically.
/cc @rhughes
We discussed today and agreed it would be nice to automate.
Action: Matthias to talk to Kevin Fenzi to see whether he has suggestions.
This is still a problem. For example, appstream-data in Fedora 44 (and the current Rawhide) were last updated in March. It definitely needs some automation.
quality/blocker-review#2179
Any updates?
As Kamil pointed out here, the release blocker criteria for Fedora could also be changed to require sufficiently up-to-date appstream-data before Final (or Beta). They already require up-to-date release notes, release and repos metadata etc.
I think we should update appstream-data every week, as the package description says:
If nobody is willing to take responsibility for appstream-data, which seems likely given how long this has been a problem, then the natural consequence is we should give up on having a graphical software center. That would be a real shame, but it seems like the next step here.
I agree that automating the updates would be a good win and certainly WS should strive to update before each release.
Nevertheless for most apps is the impact really so high? Sure it is not ideal that the data is out of date of course,
but talk of removing software center because of this feels a bit dramatic to me.
I think a good action would be to add the updating of the package to our WS release checklist, so that we can track it.
Is the data update process documented somewhere? Perhaps I could try to help.
Well, it can have a direct impact on the whole end-user experience:
quality/blocker-review#2179 (comment)
Please talk to Richard Hughes. He would know.
@catanzaro wrote in #507 (comment):
Okay thanks - will do: give me a little time - will try to start looking at it next week at least.
I talked a little to Richard and he told me that David Jasa is currently working on update(s).
Though the path to automation isn't much clearer to me.
Hello, I'm working on this. Roughly, the manual steps as of now are:
a. if needed upload manually (and get permissions for that)
I'm now automating 2 and 3 into 4, 4a needs a note of what access the packagers needs for upload and 5 needs a bit more thinking and maybe needs to remain manual. For example asking LLM to break down 44→45 changes to renames vs. actual modifications produced this stat:
The appstream-data is aging, it should be replaced by the AppStream data provided directly by the repos. If I'm not mistaken, Debian already does that (or some other distro), thus it's doable even with a large set of packages. The new AppStream libraries/tools allow merging data, not build them from scratch every time, thus updating a repo might be a cheap thing on the CPU, though harder on the disk. The obvious advantage: you do not need to care, any time the .repo content updates it updates also the AppStream data. Not once per week, neither once somebody recalls and finds time to do it, it'll do it literally every time the repository changes.
It needs some testing, profiling, and so on, but with the bug #2325398 fixed, it should be relatively easy to set up. The NVIDIA repo uses that, but it has only few packages, definitely less in compare to the thousands the Fedora has.
PackageKit downloads this AppStream data, the same as dnf5 (with the appstream data plugin), and gnome-software can read those as well, the same as KDE Discover (I did not test the later, but as the files are in a well known path it should just work, and considering some repos use it the folks won't be able to search for the apps from there otherwise).
So the rough issues with automating the building fully that I see are:
@mcrha,
The CPU doesn't seem to be a big issue to me, regenerating the stuff on a laptop is in matter of minutes. The support of merging of build data could ease the disk requirements on its own, it's possible then to get just package URLs from
dnf reposync --urlsand do downloads and metadata building in chunks.Yeah, Debian does automated builds using appstream-generator and they have a clickable dashboard where one can see stats over time and click through releases to see what issues there are in the data.
The problem with Debian's appstream-generator is that it also generates AppStream metadata from packages without AppStream appdata/metainfo files. This can be useful to make many apps that lack AppStream metadata available in GUI software stores, but it creates a lot of mess and broken results. But maybe this can be turned off in the appstream-generator configuration, I haven't checked...
@djasa wrote in #507 (comment):
I might be wrong, but isn't appstream-util deprecated (not supporting newer AppStream versions) and appstreamcli is used instead these days?
Ideally yes, appstream-util should definitely not be used anymore. Nevertheless, Fedora packages are required to use appstream-util for metadata validation because appstream-util is what Fedora uses to build the metadata. Now is the time to fix that.
From my understanding the
createrepohas all the packages which are part of the repository, it cannot have half of it on one machine and another half on another machine. If that's so, you do not need additional hundreds of gigabytes, not more than what you have already. The appstream-generator is supposed to extract AppStream data from one package after another, not all of the packages. It's also supposed to merge the data, not to regenerate everything from scratch. Nonetheless, it's only my understanding, I can be wrong in any or all of that.Fedora has the list of the failures too, but it's rather hidden, I do not know whether anybody is aware of it:
https://dl.fedoraproject.org/pub/alt/screenshots/f44/failed.html
One old
asgen-config.jsonfile I found from the times when I've been helping with the NVIDIA repository contained the following. Take it as an example, if you are looking for any such thing: