Buildfarm Query API

Andrew Dunstan · 2026년 6월 11일

얼마 전 한 동료가 PostgreSQL Buildfarm 데이터베이스를 조회할 수 있는 API가 있느냐고 물었습니다. 없다고 답했죠. 그동안 여러 사람이 데이터를 얻으려고 웹 페이지를 스크래핑해 왔다는 걸 알고 있었기에, 더 나은 방법이 필요하다는 생각이 들었습니다. 그래서 claude code의 도움을 조금 받아 하나 만들었습니다. 지금 바로 쓸 수 있습니다. 전체 설명은 https://github.com/PGBuildFarm/server-code/blob/main/API.md 에 있습니다.

이걸 어떻게 더 유용하게 확장할 수 있을지, 여러분의 의견을 특히 듣고 싶습니다.

다음은 사용 예시로, master 브랜치에서 crake 멤버의 최신 상태를 가져오는 경우입니다.

$ GET https://buildfarm.postgresql.org/cgi-bin/bfapi.pl/status/master/crake
[
   {
      "architecture" : "x86_64",
      "branch" : "master",
      "build_flags" : [
         "buildtype",
         "cassert",
         "nls",
         "plperl",
         "plpython",
         "pltcl",
         "gssapi",
         "openssl",
         "ldap",
         "xml",
         "libxslt",
         "zlib",
         "readline",
         "tap-tests",
         "uuid",
         "icu",
         "PG_TEST_EXTRA",
         "injection-points",
         "curl",
         "debug",
         "meson",
         "git",
         "integer-datetimes",
         "thread-safety"
      ],
      "compiler" : "gcc",
      "compiler_version" : "16.1.1",
      "git_head_ref" : "7dd15325952fe85521b1fefea3ad39cf1b46e0c8",
      "log_archive_filenames" : [
         "SCM-checkout.log",
         "configure.log",
         "build.log",
         "test-setup.log",
         "check.log",
         "make-doc.log",
         "make-install.log",
         "install-testmodules.log",
         "BlackholeFDW-build.log",
         "RedisFDW-build.log",
         "FileTextArrayFDW-build.log",
         "perl-check.log",
         "BlackholeFDW-install.log",
         "RedisFDW-install.log",
         "FileTextArrayFDW-install.log",
         "misc-check.log",
         "initdb-C.log",
         "startdb-C-1.log",
         "install-check-C.log",
         "RedisFDW-installcheck-C.log",
         "FileTextArrayFDW-installcheck-C.log",
         "stopdb-C-1.log",
         "startdb-C-2.log",
         "misc-installcheck-C.log",
         "stopdb-C-2.log",
         "xversion-upgrade-save.log",
         "xversion-upgrade-HEAD-HEAD.log",
         "xversion-upgrade-REL_18_STABLE-HEAD.log",
         "xversion-upgrade-REL_17_STABLE-HEAD.log",
         "xversion-upgrade-REL_16_STABLE-HEAD.log"
      ],
      "operating_system" : "Fedora",
      "os_version" : "44",
      "report_time" : "2026-06-11 15:17:00.353648+00",
      "snapshot" : "2026-06-11 14:54:18",
      "stage" : "XversionUpgrade-REL_16_STABLE-HEAD",
      "status" : 1,
      "sysname" : "crake",
      "when_ago_secs" : 4607
   }
]

EDB Postgres AI와 PostgreSQL 커뮤니티, 더 알아보기

EDB의 오픈소스 기여나 EDB Postgres AI가 궁금하시다면 EDB Korea로 문의해 주세요.


원문: Buildfarm Query API (EDB Blog)

Visited 3 times, 1 visit(s) today