From nobody Tue Jan 23 09:54:58 2024 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TK2WV64l3z57jF1 for ; Tue, 23 Jan 2024 09:55:02 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TK2WV45f0z54Pd; Tue, 23 Jan 2024 09:55:02 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706003702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=feK/AKq/nfD8+Vu+7rWh0eLdcokTg6Xqrpe99knxN0s=; b=RwiOq/2f3nAveSFch2yTKFxFj8JjpTf9CxhBEDUFzzd4QpKgR/cF5Sz0HsWOm8E0Tpa/ll LeeBFyjPzNbV7vu7NrmmoyyrABuPcjxiosmupF53DDixN1weg8d7XBphhMavk75kxpILeP dQQmC4CcTODX9+ck4m2FW3akK8swQj5jABu30VvEde10W7Tdy9O9lrACUtrlvVRRkJ6Ane 0AuBzRdoKp916zpi7oyq7TtfqGrM/h91hM0Q7syohCYkUKuu+yEXcebcgzwt6hSgN0beY5 JWyjrXxwcwIxFzcliGW7Uuv05YPH38VSstze7DlN+WIIx5r2LI/l9ObYuM0w0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706003702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=feK/AKq/nfD8+Vu+7rWh0eLdcokTg6Xqrpe99knxN0s=; b=nUd1kSAY7MlqICq5yEcvMNSls2BM0YiQ07R9ixpK8caVTBXRXUPwWf6kkA3LkQvYz17o+o 9/cuiws13Isfz8umryM+dpcByCPmRDovC5ZOvMEOPAa7WlovjhOm/4l4Dn7fsTFuHhY11i pMsePKdGuGTtWxdQ73/TZyVHurGtLeQYCjCOnfA/GNZ8QLpe/guJ1tIfIZJIc1TOOt5H1Q 2hdWtHfAsLQ9v0B4CY56JhoHwLs/fAzSwrqn+UsjouUjMWmD8IUzg6C0NkZfZWsV50BSGs jb2pxOhtuRtB6vYqb6heWkfe2W5CVmjs4k3aq4NafhN+Qj/q6+waII3yxCoq0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706003702; a=rsa-sha256; cv=none; b=EqEaoL1piPvY6OAdP+UviFseTDo9fRf7OX9ejRooSQBJne5vQ8ixErhk9SZIaHi0z3+0T+ wS8X890+L5S84m/hzkGasK4KTFpta9DVVCiQ71UILXoLvJpt9tPKGgz+xBqC0EVvMGFR3c sk8V4piwjDc/c7rBw0+3ateHRkRHm6JQBDwrj2FTbc707sNkiMSRD6cO5Nn6iINTeuQZaT sQvW1QHSWHlSuYcnCmZ0kdUj6jh9zs3LsWlM4whXvGDkXiGr7BOfphUMgMbvpuGa/evyaX t+OrFZDXTZtk8+/V6FjuFHf/dO9tFoIxw7mBJ37juWuoYiv/K6IpRgB4DjWFoA== Received: by freefall.freebsd.org (Postfix, from userid 1354) id 71B771F343; Tue, 23 Jan 2024 09:55:02 +0000 (UTC) From: Jan Beich To: Yuri Cc: "ports@freebsd.org" Subject: Re: Is API to access status of build servers documented? In-Reply-To: (yuri@freebsd.org's message of "Sat, 20 Jan 2024 20:40:38 -0800") References: Date: Tue, 23 Jan 2024 10:54:58 +0100 Message-ID: <4jf4-pe6l-wny@FreeBSD.org> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain Yuri 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.