summaryrefslogtreecommitdiff
path: root/build-farm-url.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* url: Add and use "https://ci.guix.info"Alex Kost2018-12-091-2/+2
| | | | | * build-farm-url.el (build-farm-url-alist): Add it. (build-farm-guess-url): Use it as the default.
* Add interface for Cuirass evaluationsAlex Kost2018-08-261-0/+16
| | | | | | | | | | | * build-farm-url.el (build-farm-evaluation-url) (build-farm-latest-evaluations-api-url): New procedures. * build-farm-evaluation.el: New file. (build-farm-latest-evaluations): New command. * build-farm-popup.el (build-farm-popup): Add sub-popup for evaluations. (build-farm-evaluation-popup-maybe) (build-farm-popup-format-number-of-evaluations) (build-farm-popup-latest-evaluations): New procedures.
* url: Use "https://berlin.guixsd.org" as the default farm for GuixAlex Kost2018-08-261-1/+2
| | | | | Since "https://hydra.gnu.org" is very slow or even unresponsive most of the times.
* Add interface for Cuirass jobsetsAlex Kost2018-08-261-0/+5
| | | | | | * build-farm-url.el (build-farm-cuirass-jobsets-url): New function. * build-farm-jobset.el: Add 'cuirass-jobset-info' and 'cuirass-jobset-list' interfaces.
* Rename 'jobset' interface to 'hydra-jobset'Alex Kost2018-08-261-6/+15
| | | | | | | | | | | | | | | | | | | | Cuirass and Hydra jobsets are completely different, so there will be a separate interface for Cuirass jobsets. * build-farm.el: Update Emacs requirement to 24.4 because 'subr-x' library is needed now. (build-farm-info-insert-jobset): Rename to... (build-farm-info-insert-hydra-jobset): ... this. * build-farm-build.el (build-farm-build-info-insert-jobset): Adjust accordingly. * build-farm-project.el (build-farm-project-info-insert-jobset): Likewise. * build-farm-url.el (build-farm-jobset-api-url): Rename to... (build-farm-hydra-jobset-api-url): ... this. * build-farm-jobset.el: Rename 'jobset' to 'hydra-jobset' everywhere.
* url: Use nil for 'json-false' valueAlex Kost2018-08-201-3/+4
| | | | | * build-farm-url.el (build-farm-receive-data): Let-bind 'json-false' as its default value is ':json-false'.
* Add project url to Project Info bufferAlex Kost2018-07-271-4/+6
| | | | | | * build-farm-url.el (build-farm-project-url): Add 'project' keyword argument. * build-farm-project.el (build-farm-project-info-insert-url): New procedure. (build-farm-project-info-format): Use it.
* Fix checkdoc warningsAlex Kost2018-07-271-13/+14
|
* Distinguish nix and guix for opening build logsAlex Kost2018-07-271-3/+5
| | | | | | | * build-farm-url.el (build-farm-build-log-url): Add 'raw' keyword argument. * build-farm-build.el (build-farm-build-view-log): Open build log in emacs or browser, and use 'guix-build-log-mode' depending on the package manager of the build farm.
* Factorize defining system typesAlex Kost2018-07-271-0/+12
| | | | | * build-farm-url.el (build-farm-url-package-manager): New function. * build-farm.el (build-farm-system-types): Use it.
* Use per-buffer build farm URLAlex Kost2018-07-271-35/+54
| | | | | | | | | | | | | | | | | | | | | | | | Previously, a single global 'build-farm-url' variable was used everywhere. But this is not correct: when you change this url, it should take effect only for the future requests, and the existing Farm buffers should use the previous url. So this root url should be local for every build/jobset/project list/info, which is accomplished by this commit. * build-farm-url.el (build-farm-url): Add 'root-url' argument. (build-farm-api-url, build-farm-build-url, build-farm-build-log-url) (build-farm-build-latest-api-url, build-farm-build-queue-api-url) (build-farm-jobset-url, build-farm-jobset-api-url) (build-farm-project-url): Add 'root-url' keyword argument. * build-farm.el: Define accessors for entry args. Specifically... (build-farm-current-url): New function. (build-farm-get-entries, build-farm-get-display, build-farm-message) (build-farm-search-url): New 'root-url' argument. * build-farm-build.el: Adjust to use 'root-url' arguments where appropriate. * build-farm-jobset.el: Likewise. * build-farm-project.el: Likewise.
* Use key arguments for 'build-farm-jobset-url'Alex Kost2018-07-271-7/+6
| | | | | | | | | | This should have been done in commit 43684ea5d4b9e67ef4ca2a9583e5ce7af433a255. * build-farm-url.el (build-farm-jobset-url): Use key arguments. * build-farm-jobset.el (build-farm-jobset-info-insert-url): Adjust accordingly. * build-farm-project.el (build-farm-project-info-insert-jobset): Likewise.
* Use "project/jobset" for jobset IDAlex Kost2018-07-161-3/+8
| | | | | | | | | * build-farm-url.el (build-farm-jobset-url): Adjust to accept a single argument. * build-farm-jobset.el (build-farm-jobset-id): New function. (build-farm-jobset-filter-id): Use it. (build-farm-jobset-info-insert-url): Pass only jobset ID to 'build-farm-jobset-url'.
* Add interface for projects ('build-farm-projects' command)Alex Kost2018-07-161-0/+3
| | | | | * build-farm-url.el (build-farm-project-url): New function. * build-farm-project.el: New file.
* url: Pass extra header "Accept: application/json"Alex Kost2018-07-161-7/+46
| | | | | | | | | | | (as Hydra uses this feature to return json data from non-api URLs). Also check if the returned content type is "application/json" (as Cuirass does not use this feature). * build-farm-url.el (build-farm-retrieve-url): New procedure. (build-farm-receive-data): Pass "Accept" header and check for content type.
* url: Improve url type definerAlex Kost2018-07-161-7/+10
| | | | | | * build-farm-url.el (build-farm-type-by-url): Rename to... (build-farm-url-type): ... this. Make 'url' argument optional. Check if URL contains "cuirass".
* Move all url procedures to "build-farm-url.el"Alex Kost2018-07-161-0/+143
* build-farm.el (build-farm-url-alist, build-farm-guess-url) (build-farm-urls, build-farm-url, build-farm-read-url) (build-farm-set-url, build-farm-type-by-url, build-farm-api-url) (build-farm-receive-data): Move to... * build-farm-build.el (build-farm-build-url, build-farm-build-log-url) (build-farm-build-latest-api-url, build-farm-build-queue-api-url): Move to... * build-farm-jobset.el (build-farm-jobset-url) (build-farm-jobset-api-url): Move to... * build-farm-url.el: ... here. New file.