Hi.
What is the best way to get list of retired packages in F35? I can get list of all retired packages by scanning dist-git. But if I want it for one release of Fedora? And I do not want to do that manually; I rather want to script it.
Miroslav
On Thu, Sep 16, 2021 at 8:37 AM Miroslav Suchý msuchy@redhat.com wrote:
Hi.
What is the best way to get list of retired packages in F35? I can get list of all retired packages by scanning dist-git. But if I want it for one release of Fedora? And I do not want to do that manually; I rather want to script it.
You can poke Pagure via the API for the presence of the dead.package file in the "f35" branch, as you're probably aware. But PDC would have the collection of active source packages for a release, though I'm not sure you can get that from its API. If you can, then you can derive the retired package set by removing the intersection of the total set of packages from Pagure and the set of active packages in PDC.
-- 真実はいつも一つ!/ Always, there's only one truth!
On Thu, Sep 16, 2021 at 02:36:58PM +0200, Miroslav Suchý wrote:
Hi.
What is the best way to get list of retired packages in F35? I can get list of all retired packages by scanning dist-git. But if I want it for one release of Fedora? And I do not want to do that manually; I rather want to script it.
PDC would be your source of truth for this info. You'll need to look at the "active" state of the package/branch.
Pierre
Dne 16. 09. 21 v 14:50 Pierre-Yves Chibon napsal(a):
What is the best way to get list of retired packages in F35? I can get list of all retired packages by scanning dist-git. But if I want it for one release of Fedora? And I do not want to do that manually; I rather want to script it.
PDC would be your source of truth for this info. You'll need to look at the "active" state of the package/branch.
I got to weird package
flatpak-runtime-config
This:
https://src.fedoraproject.org/rpms/flatpak-runtime-config
indicate that the package is retired (because it is only module package). And indeed:
https://koji.fedoraproject.org/koji/packageinfo?packageID=24302
It seems to be built in MBS. But repoquery cannot find it:
repoquery --releasever 34 --repo={fedora,fedora-modular,updates,updates-modular}-source flatpak-runtime-config
And PDC is either misbehaving or I cannot use it properly:
https://pdc.fedoraproject.org/rest_api/v1/component-branches/?name=flatpak-r...
What is current status of this package? And how can I verify it?
Miroslav
On Tue, Sep 21, 2021 at 1:29 PM Miroslav Suchý msuchy@redhat.com wrote:
And PDC is either misbehaving or I cannot use it properly:
The former, I think. I just tried to launch a build and got:
$ fedpkg build Could not execute build: The following error occurred while trying to get the active release branches in PDC: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.</p> <p>More information about this error may be available in the server error log.</p> </body></html>
V Tue, Sep 21, 2021 at 01:31:52PM -0600, Jerry James napsal(a):
On Tue, Sep 21, 2021 at 1:29 PM Miroslav Suchý msuchy@redhat.com wrote:
And PDC is either misbehaving or I cannot use it properly:
The former, I think. I just tried to launch a build and got:
$ fedpkg build Could not execute build: The following error occurred while trying to get the active release branches in PDC: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head> <title>500 Internal Server Error</title>
That's a random failure (of Fedora's HTTPS load balancer?). I always get 500 once in a few dozens of requests:
$ while wget -O /dev/null 'https://pdc.fedoraproject.org/rest_api/v1/'; do N=$((N+1)); echo "$N"; done
-- Petr
On Wed, Sep 22, 2021 at 3:07 AM Petr Pisar ppisar@redhat.com wrote:
That's a random failure (of Fedora's HTTPS load balancer?). I always get 500 once in a few dozens of requests:
$ while wget -O /dev/null 'https://pdc.fedoraproject.org/rest_api/v1/'; do N=$((N+1)); echo "$N"; done
Interesting. I think that's the first time I've ever seen that error.
On Wed, Sep 22, 2021 at 08:27:07AM -0600, Jerry James wrote:
On Wed, Sep 22, 2021 at 3:07 AM Petr Pisar ppisar@redhat.com wrote:
That's a random failure (of Fedora's HTTPS load balancer?). I always get 500 once in a few dozens of requests:
$ while wget -O /dev/null 'https://pdc.fedoraproject.org/rest_api/v1/'; do N=$((N+1)); echo "$N"; done
Interesting. I think that's the first time I've ever seen that error.
It's not the load balancer. It's pdc throwing the 500 about every 10 requests. :(
filed: https://pagure.io/fedora-infrastructure/issue/10236 on it.
kevin
V Tue, Sep 21, 2021 at 09:28:55PM +0200, Miroslav Suchý napsal(a):
And PDC is either misbehaving or I cannot use it properly:
https://pdc.fedoraproject.org/rest_api/v1/component-branches/?name=flatpak-r...
What is current status of this package? And how can I verify it?
You have the query parameter names wrong. Correct query is:
https://pdc.fedoraproject.org/rest_api/v1/component-branches/?global_compone...
"name" is a branch name. Not component name. A type is "rpm". Not "rpms".
I recommend to try a query with a very few arguments and guess semantics of the parameters from response. PDC documentation on semantics of the parameters is sparse.
-- Petr
On 16. 09. 21 14:36, Miroslav Suchý wrote:
Hi.
What is the best way to get list of retired packages in F35? I can get list of all retired packages by scanning dist-git. But if I want it for one release of Fedora? And I do not want to do that manually; I rather want to script it.
Hello.
Do you want a list of retired components or a list of removed packages? Both are doable with repoquery (use the source repo for components):
$ comm -23 <(repoquery --releasever 34 --repo={fedora,updates}-source -a | pkgname | sort | uniq) <(repoquery --releasever 35 --repo={fedora,updates}-source -a | pkgname | sort | uniq)
Dne 16. 09. 21 v 15:37 Miro Hrončok napsal(a):
Do you want a list of retired components or a list of removed packages? Both are doable with repoquery (use the source repo for components):
$ comm -23 <(repoquery --releasever 34 --repo={fedora,updates}-source -a | pkgname | sort | uniq) <(repoquery --releasever 35 --repo={fedora,updates}-source -a | pkgname | sort | uniq)
Wow, this is awesome way. And exactly what I need.
Thank you.
Miroslav