Re: How to monitor latest packages?

From: Pat Maddox <pat_at_patmaddox.com>
Date: Fri, 29 Sep 2023 09:34:22 UTC
On Mon, Sep 25, 2023, at 8:13 AM, Michael Grimm wrote:
> Hi,
>
> I used to compile all of my ports from the git repository using 
> poudriere. 
> Recently I started to use poudriere's pre-fetching functionality (due 
> to resource hog rust).
> I am using pkg+http://pkg.FreeBSD.org/\${ABI}/latest 
> <pkg+http://pkg.FreeBSD.org/%5C$%7BABI%7D/latest> and my current ABI is 
> FreeBSD:14:amd64.
>
> I am trying to monitor the dates of pkg compilation runs by 
> http://pkg.freebsd.org/FreeBSD:14:amd64/latest/
> Is that the correct way?
>
> If so, how can I find out when e.g. rust has been compiled the last 
> time, because http://pkg.freebsd.org/FreeBSD:14:amd64/latest/All/ seems 
> to be forbidden to watch ;-)
>
> If not, what would be an alternative?
>
> Thanks in advance and regards,
> Michael

Here’s some tooling I use to fetch the git commit of the most recent package build: https://patmaddox.com/info?name=fba4b4491f48d81ffbe7f4304d3dd17797ec47dd7829bddec327422d4c6f346f&ln=16-23

That helps poudriere’s package fetching by ensuring my local tree is consistent with the latest build and doesn’t have newer stuff.

You can get build metadata from the API e.g. https://pkg-status.freebsd.org/api/1/builds?type=package&jailname=132amd64

I haven’t seen API documentation, I worked out query params by looking at the implementation: https://github.com/bdrewery/pkg-status.freebsd.org/blob/master/pkgstatus.py

Pat