2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00
Commit graph

67 commits

Author SHA1 Message Date
Christopher Baines d62ea8857d
Better handle failures when computing the transative supported inputs 2019-03-29 09:14:03 +00:00
Christopher Baines 944492bd79
Deduplicate inferior packages
As sometimes there can be duplicates, for example with deprecated packages.
2019-03-29 09:13:29 +00:00
Christopher Baines b1ab70a226
Delete duplicate entries in the package-entries list
This can happen when the same package is defined with two names, for example,
with deprecated-package.
2019-03-28 22:42:18 +00:00
Christopher Baines 4619b7b575
Support displaying builtin:download derivations 2019-03-28 21:02:16 +00:00
Christopher Baines 76d6027b7c
Try to handle the guix store item being garbage collected 2019-03-28 20:41:05 +00:00
Christopher Baines 0c6c413804
Handle missing derivations when rendering the comparison 2019-03-24 17:36:10 +00:00
Christopher Baines 5dbdfe1133
Switch parts of the comparison code to use hash tables
Rather than vhashes. This removes the need for the expensive vhash-delete
calls.
2019-03-24 17:35:19 +00:00
Christopher Baines 800c850276
Switch dynamic-wind for with-throw-handler
Not sure why, but dynamic-wind was causing issues by closing the database
connection too early, but with-throw-handler seems to work OK.
2019-03-24 17:35:09 +00:00
Christopher Baines 2b1142b424
Remove redundant lambda from deduplicate-strings 2019-03-24 17:31:38 +00:00
Christopher Baines 5fcabe95f2
Handle 0 derivations in package-data-vhash->derivations-and-build-status 2019-03-24 11:59:44 +00:00
Christopher Baines daa2790f59 Differentiate filtering better for select-derivations-and-build-status
An empty list of derivation-file-names should result in no results,
but in the case of the systems, targets and build-statuses, we want
all of the results.
2019-03-24 10:57:22 +00:00
Christopher Baines 5be4ebca0c Improve the query in select-derivations-and-build-status
Fix handling derivations which target multiple systems (somehow?).
2019-03-24 10:57:22 +00:00
Christopher Baines 5d0dcea3e4
Deduplicate file-names in select-derivations-and-build-status
As this can make the queries a bit more readable.
2019-03-24 10:50:03 +00:00
Christopher Baines 21b07b07a9
Extract out deduplicate-strings to the utils module 2019-03-24 10:49:49 +00:00
Christopher Baines 101caddecc
Add ruby-rerun to the guix-dev.scm file
As this is useful for running the server, and restarting automatically
on code changes.
2019-03-24 10:49:10 +00:00
Christopher Baines 0c02de432c
Order the index page guix revision jobs 2019-03-19 21:18:17 +00:00
Christopher Baines be6acf8e3b
Check the type of the header values in branch-updated-emails 2019-03-19 20:42:55 +00:00
Christopher Baines bdfb654233
Add support for processing branch updated emails 2019-03-19 20:21:54 +00:00
Christopher Baines 5985b5938b
Fix the layout on the derivation and store item pages 2019-03-19 08:23:11 +00:00
Christopher Baines bfa7c26f03
Improve the form styling on the index page 2019-03-17 23:41:11 +00:00
Christopher Baines 5a936ae101
Ensure all rows contain a column
As this helps with the layout, especially the whitespace to the left
on smaller screens.
2019-03-17 23:32:54 +00:00
Christopher Baines f7587bd818
Update the JSON link on the compare/derivations page 2019-03-17 23:14:25 +00:00
Christopher Baines f4c159d9de
Fix comparison in render-compare/derivations 2019-03-17 23:13:57 +00:00
Christopher Baines 189014f3bc
Improve the compare derivations page
Add support for filtering the results, and add the system and target
to the output.
2019-03-17 22:44:09 +00:00
Christopher Baines 0d16c87da8
Add build-status-value->display-string 2019-03-17 22:43:07 +00:00
Christopher Baines 5325cf0234
Fix the JSON responses for the comparison pages 2019-03-16 22:20:55 +00:00
Christopher Baines 902409b828
Increase the margin for buttons on the right of the compare page 2019-03-16 19:59:48 +00:00
Christopher Baines 38888aea6b
Fix some duplication on the compare page
For the new and removed package sections.
2019-03-16 19:59:45 +00:00
Christopher Baines a0f4f153a9
Improve the display of the show revision page 2019-03-16 19:01:21 +00:00
Christopher Baines 33e6b35972
Remove the bottom margin from the header
As it's a bit unnecessary.
2019-03-16 18:59:29 +00:00
Christopher Baines a092db5007
Further improve load-new-guix-revision-jobs
Split the derivations up in to some groups, and run
invalidate-derivation-caches! inbetween to try and reduce the memory
usage.

Also make a couple of other changes to reduce memory usage or protect
against errors.
2019-03-16 17:26:44 +00:00
Christopher Baines 9f162c3b2c
Time more steps in load-new-guix-revision
This is useful for debugging purposes.
2019-03-15 09:31:52 +00:00
Christopher Baines c4c1f15050
Better guard against errors in packages when loading revisions
In particular, things like undefined variables in the package
definition.
2019-03-15 09:31:08 +00:00
Christopher Baines d2697d8dd2
Avoid loading in all derivations
Just load in the ones that are not already in the database, as this
will hopefully be faster and require less memory.
2019-03-14 08:18:01 +00:00
Christopher Baines a0dd298239
Hopefully speed up the new guix revision processing
Compute all derivations at once in the inferior, avoiding round trips
to hopefully speed it up. Close the inferior earlier to free up
memory, and add more debugging output.
2019-03-13 09:24:47 +00:00
Christopher Baines e117bb1d87
Many changes
A large proportion of these changes relate to changing the way
packages relate to derivations. Previously, a package at a given
revision had a single derivation. This was OK, but didn't account for
multiple architectures.

Therefore, these changes mean that a package has multiple derivations,
depending on the system of the derivation, and the target system.

There are multiple changes, small and large to the web interface as
well. More pages link to each other, and the visual display has been
improved somewhat.
2019-03-11 22:11:14 +00:00
Christopher Baines 5bc0e7d4bf
Add some catch all error handling to fetch-build-for-derivation 2019-03-08 08:22:52 +00:00
Christopher Baines 7a00bff2c3
Fetch more derivations with no known build
To try and process the backlog a bit.
2019-03-07 23:51:23 +00:00
Christopher Baines a1e481cc4d
Continue improving pages and linking things together 2019-03-07 23:50:51 +00:00
Christopher Baines 0380c84a67
Decrease builds number to 1
As I don't think these endpoints can return more than 1 result.
2019-03-07 21:51:32 +00:00
Christopher Baines ccb429c8b9
Improve logging in builds.scm 2019-03-07 21:51:19 +00:00
Christopher Baines bbf8cc1c34
Improve derivation display on the builds page 2019-03-07 08:45:25 +00:00
Christopher Baines 8f4da3c872
Start to visualise derivations 2019-03-07 08:43:16 +00:00
Christopher Baines 891cf42fc6
Improve error handling in builds.scm 2019-03-06 23:47:26 +00:00
Christopher Baines b0eaf9cf7a
Add a few new pages
For showing more information about builds, revisions and derivations.
2019-03-06 22:59:27 +00:00
Christopher Baines e656b0967b
Include the status of derivations
On the comparison page.
2019-03-06 22:58:05 +00:00
Christopher Baines 7a90afe980
Add functionality to query build servers 2019-03-06 22:56:54 +00:00
Christopher Baines 4d0d6f2e82
Add new models relating to builds and build servers
These will allow tracking what's going on with build servers.
2019-03-06 22:56:10 +00:00
Christopher Baines 8bef36a95e
Switch to guile-json@3 2019-03-06 22:52:56 +00:00
Christopher Baines 623347d835
Add a list of the queued revisions to the index page 2019-03-03 18:15:29 +00:00