Christopher Baines
ce4c3c6ed3
Switch to storing Git repositories in a table
...
Rather than just storing the URL in the guix_revisions and
load_new_guix_revision_jobs tables. This will help when storing more
information like tags and branches in the future.
2019-05-05 14:36:52 +01:00
Christopher Baines
051962b54d
Add a with-postgresql-transaction procedure
...
To help with running tests.
2019-05-05 13:35:17 +01:00
Christopher Baines
a171287f27
Try harder to handle errors when loading new revisions
...
If the repl enters a bad state, attempt to exit, and catch failures in the
parent process, and rollback the open transaction.
2019-05-01 09:26:03 +01:00
Christopher Baines
24f234f6d8
Fix "More information" link for target packages
...
On the packages comparison page.
2019-04-21 11:02:55 +01:00
Christopher Baines
7a34570ef8
Add missing (guix-data-service database) import
2019-04-17 08:28:36 +01:00
Christopher Baines
7c018a8c32
Add sqitch to guix-dev.scm
...
As it's used to manage the database schema.
2019-04-16 22:32:45 +01:00
Christopher Baines
15ba520610
Add missing build-aux files
...
And tweak the .gitignore to reduce the chance that similar files are missed in
the future.
2019-04-16 22:21:07 +01:00
Christopher Baines
d3261eb364
Add .dir-locals.el
2019-04-14 10:08:49 +01:00
Christopher Baines
ef4fd5ab4f
Add an initial test
...
Along with the buildsystem changes to make `make check` work.
2019-04-14 10:08:11 +01:00
Christopher Baines
d69f77d59e
Add some initial Sqitch migrations
...
These are based on the state of the current manually managed database.
2019-04-14 10:06:13 +01:00
Christopher Baines
70faad0437
Tweak the Sqitch configuration
2019-04-14 10:06:00 +01:00
Christopher Baines
2e45bb0696
Extract out some database functionality to another module
2019-04-14 10:04:51 +01:00
Christopher Baines
b352b5040a
Add a .gitattributes file
...
This is recommended by the Sqitch docs.
2019-04-14 10:01:58 +01:00
Christopher Baines
0aa75dca56
Move the sqitch files in to the sqitch directory
...
To keep them together, and leave the top level repository directory clearer.
2019-04-13 12:47:49 +01:00
Christopher Baines
5621d52e97
Initialise Sqitch
...
It's a tool for managing the database schema.
2019-04-13 12:22:14 +01:00
Christopher Baines
dbec236928
Clear the packages derivation cache
...
As this should help prevent issues when the previously cached derivation is
removed from the store.
2019-04-10 20:20:42 +01:00
Christopher Baines
14cb5425d4
Improve the job processing
...
Speed up checking for new jobs, and remove debugging output.
2019-04-10 20:17:44 +01:00
Christopher Baines
6022edd074
Add a statistics page
...
To show the total number of derivations, and guix revisions.
2019-04-08 21:04:12 +01:00
Christopher Baines
0c72ee747c
Add a function to get a count of Guix revisions
2019-04-08 21:03:59 +01:00
Christopher Baines
77397538f7
Add a function to get a count of derivations
2019-04-08 21:03:29 +01:00
Christopher Baines
1cdbdef513
Remove built guix-data-service-process-branch-updated-email file
...
It should never have been committed.
2019-04-08 21:02:57 +01:00
Christopher Baines
93d8798df5
More easily support stopping guix-data-service-process-jobs
2019-03-29 09:14:23 +00:00
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