Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2024 10:54:58 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Yuri <yuri@FreeBSD.org>
Cc:        "ports@freebsd.org" <ports@freebsd.org>
Subject:   Re: Is API to access status of build servers documented?
Message-ID:  <4jf4-pe6l-wny@FreeBSD.org>
In-Reply-To: <d79ed1af-43cf-4009-8fec-40a307070b14@FreeBSD.org> (yuri@freebsd.org's message of "Sat, 20 Jan 2024 20:40:38 -0800")
References:  <d79ed1af-43cf-4009-8fec-40a307070b14@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4jf4-pe6l-wny>