Re: Is API to access status of build servers documented?

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 23 Jan 2024 09:54:58 UTC
Yuri <yuri@FreeBSD.org> writes:

> What I couldn't determine is the query to find all active build servers.
> Does such query exist?

https://pkg-status.freebsd.org/api/1/builds
https://portsfallout.com/api/

$ fetch -qo - "https://pkg-status.freebsd.org/api/1/builds?type=package" |
  jq -r ".. | select(.started? > $(date -v -2w +%s)) | .server" | sort -u

$ fetch -qo - "https://portsfallout.com/api/fallout/" |
  jq -r '.results[].server' | sort -u

> Is this API documented anywhere?

Which API? .data.json is part of poudriere web frontend. pkg-status
appears to aggregate .data.json of individual poudriere servers.

Disclaimer: based on my observation/guesses. clusteradm@, pkgmgr@ or
portmgr@ may know more.