[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/buildbot f5a35a82a6 13/22: started working on builder v
From: |
ELPA Syncer |
Subject: |
[elpa] externals/buildbot f5a35a82a6 13/22: started working on builder view |
Date: |
Thu, 13 Jul 2023 00:57:38 -0400 (EDT) |
branch: externals/buildbot
commit f5a35a82a62612fa8f6537b4da6ebdea8192a196
Author: Yuchen Pei <hi@ypei.me>
Commit: Yuchen Pei <hi@ypei.me>
started working on builder view
---
buildbot-client.el | 18 ++++++++++++++++++
buildbot-view.el | 9 +++++++++
2 files changed, 27 insertions(+)
diff --git a/buildbot-client.el b/buildbot-client.el
index 64c308f971..ecc5757518 100644
--- a/buildbot-client.el
+++ b/buildbot-client.el
@@ -46,6 +46,12 @@
"%s/api/v2/builders"
buildbot-host)))
+(defun buildbot-api-builders-builds (builder-id attr)
+ (buildbot-url-fetch-json
+ (format
+ "%s/api/v2/builders/%d/builds?%s"
+ buildbot-host builder-id (buildbot-format-attr attr))))
+
(defun buildbot-api-build (attr)
(buildbot-url-fetch-json
(format
@@ -62,6 +68,12 @@
(buildbot-url-fetch-raw
(format "%s/api/v2/logs/%d/raw" buildbot-host logid)))
+(defun buildbot-get-recent-builds-by-builder (builder-id limit)
+ (alist-get 'builds
+ (buildbot-api-builders-builds
+ builder-id
+ `((limit . ,limit) (order . "-number") (property .
"revision")))))
+
(defun buildbot-get-recent-changes (limit)
(buildbot-api-change (list (cons 'order "-changeid") (cons 'limit limit))))
@@ -74,6 +86,12 @@
(= (alist-get 'builderid builder) builderid))
buildbot-builders))
+(defun buildbot-builder-by-name (name)
+ (cl-find-if
+ (lambda (builder)
+ (equal (alist-get 'name builder) name))
+ buildbot-builders))
+
(defun buildbot-get-logs-by-stepid (stepid)
(alist-get 'logs (buildbot-api-logs stepid)))
diff --git a/buildbot-view.el b/buildbot-view.el
index 8e3590d21b..ebeef70978 100644
--- a/buildbot-view.el
+++ b/buildbot-view.el
@@ -229,6 +229,15 @@
(interactive "sBranch name: ")
(buildbot-view-open 'branch `((branch . ,branch))))
+;;;###autoload
+(defun buildbot-builder-open (builder-name)
+ (interactive (list (completing-read
+ "Builder name: "
+ (mapcar
+ (lambda (builder) (alist-get 'name builder))
+ buildbot-builders))))
+ (buildbot-view-open 'builder `((builder . ,builder))))
+
(defun buildbot-view-update ()
(unless (derived-mode-p 'buildbot-view-mode)
(error "Not in buildbot view mode"))
- [elpa] externals/buildbot 7cc017ccc1 02/22: added buildbot build mode, (continued)
- [elpa] externals/buildbot 7cc017ccc1 02/22: added buildbot build mode, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot a7e313d116 05/22: add logs formatting and cache, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot a52cc6222a 18/22: Prepare for elpa, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot 16947d6b1a 11/22: Adding function to go to next / previous header of the same thing, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot f9792cdcfa 01/22: first commit, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot c79dd7c405 08/22: linting, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot 20fd138b70 04/22: Unify the three modes into one (view mode), ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot 527fdf6d17 15/22: fixing bug caused by updated signature of buildbot-view-format-build, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot 9714d2e9b7 06/22: branch view (first imp); faces for status; revision with multiple changes, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot 47521e2661 07/22: fixing branches and revisions are many-to-many relations, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot f5a35a82a6 13/22: started working on builder view,
ELPA Syncer <=
- [elpa] externals/buildbot 319b7224fc 14/22: Adding builder view, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot f5b97b439a 12/22: fixing a bug where build view shows the wrong revision info, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot 519956a4f6 10/22: minor update readme, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot 3de5304a5c 16/22: Updated readme to add info about buildbot-builder-open, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot d3c7fcb511 19/22: Adding commentary, ELPA Syncer, 2023/07/13
- [elpa] externals/buildbot 071ba8408a 21/22: Fixing flymake complaints., ELPA Syncer, 2023/07/13