2fa9f151f6
Include the base commit and target commit in the compare output
...
This makes it easier to make other requests with the response body.
2020-10-09 19:35:38 +01:00
3cb8ce51fc
Include tablespace as a label for table metrics
...
As this will make it easier to tell where space is going.
2020-10-09 19:35:31 +01:00
6023aa8caf
Improve select-job-for-commit
...
It now returns #f or a list, rather than the empty list or a nested list.
2020-10-09 19:31:51 +01:00
51204aefca
Clarify that the derivations comparison only is for packages
...
As it excludes the channel instances and system tests.
2020-10-09 19:31:21 +01:00
853aaa6a7c
Use letpar& for systems and targets in render-compare/derivations
2020-10-09 19:30:48 +01:00
8daf35e2df
Change the derivation comparison targets
...
To be targets, rather than systems.
2020-10-09 19:29:58 +01:00
1f55718d75
Link to the revisions in the comparison header
2020-10-09 19:29:38 +01:00
9f9c23010e
Support storing whether to authenticate commits by git repository
...
To allow using the Guix Data Service when commits aren't authenticated.
2020-10-07 18:50:13 +01:00
a8d5ea4654
Fix the no latest revision behaviour for the latest revision links
...
Previously the render-unknown-revision procedure would error, as it wasn't
meant for this purpose.
2020-10-04 15:12:26 +01:00
fe7da1ba57
Remove some unnecessary parallel-via-thread-pool-channel calls
...
As these were causing errors because they were nested in letpar&.
2020-10-04 11:29:51 +01:00
55eaaaeeac
Bump the copyright date in the footer
...
Later is better than never...
2020-10-03 21:42:18 +01:00
c3c9c07f9a
Completely rework the way db connections are handled during requests
...
Previously, a connection was passed through the code handling the
request. When queries were performed, this could block the thread though,
potentially leaving the server unable to serve other requests.
Instead, this now runs queries in a pool of threads. This should remove the
possibility of blocking the threads used by the web server, and in doing so,
some of the queries have been parallelised.
I''m still not sure about the naming and syntax, but I think the functionality
is a sort of step forward.
2020-10-03 21:35:31 +01:00
18b6dd9e6d
Stop opening a PostgreSQL connection per request
...
This was good in that it avoided having to deal with long running connections,
but it probably takes some time to open the connection, and these changes are
a step towards offloading the PostgreSQL queries to other threads, so they
don't block the threads for fibers.
2020-10-03 09:22:29 +01:00
af40c1ac13
Speed up a query for derivation builds
...
This change removes a sequential scan from the query plan, making it much
faster.
2020-10-02 17:51:55 +01:00
7f49756bac
Track some pg_stat metrics
...
Hopefully this'll help track database things better.
2020-10-01 21:43:41 +01:00
033858410b
Add a JSON page for repository branches
2020-09-27 16:32:56 +01:00
f7933807ac
Add a JSON representation for repositories
2020-09-27 16:26:45 +01:00
84907fe040
Implement the JSON representation for system tests
2020-09-27 12:06:18 +01:00
53341c70fc
Change the locale codeset representation
...
From the normalized one, to the one actually contained within glibc. Recent
versions of glibc also contain symlinks linking the normalized codeset to the
locales with the .UTF-8 ending, but older ones do not.
Maybe handling codeset normalisation for queries would be good, but the locale
values ending in .UTF-8 are more compatible and allow the code to be
simplified. For querying, maybe there should be a locales table which handles
different representations.
2020-09-26 11:45:57 +01:00
af2e12a9ef
Add some new metrics about load new revision jobs
2020-09-20 19:13:23 +01:00
fd3ba489d9
Add a metric for the number of revisions
2020-09-20 18:39:46 +01:00
857ac36711
Return a number from count-guix-revisions
2020-09-20 18:38:39 +01:00
c596a1c6a9
Add a Prometheus metrics page, with some database metrics
...
The database size is growing, but it's hard to know what parts are growing the
fastest. These metrics will hopefully help with understanding that.
2020-09-06 13:14:31 +01:00
Danjela Lura
50d2e4e158
Add JSON representation for the store item page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-08-26 21:26:08 +01:00
Danjela Lura
d5c101dee7
Add JSON representation for the derivation page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-08-26 21:20:00 +01:00
Danjela Lura
599c621b88
Postpone the execution of the query that displays locale options
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-08-14 21:55:59 +01:00
1e0332136e
Fix rendering the required failed builds for builds by id
...
Use the derivation-file-name from the database, rather than the query
parameter.
2020-07-13 19:12:09 +01:00
745a8bdbf1
Also show related failed builds for scheduled builds
...
Because the Guix Build Coordinator doesn't mark builds blocked by failures as
failed-dependency, they're just left as scheduled.
2020-07-13 18:55:07 +01:00
e9d4e74e56
Add builds to the store item page
2020-07-04 09:31:12 +01:00
4b1dc76f18
Improve the revision builds page
...
Allow specifying how many results to show, and say how many results are being
shown.
2020-07-03 20:33:16 +01:00
092f01b6f2
Fix the builds table headers
2020-07-02 20:36:08 +01:00
bbf8011c95
Fix a bug with the derivation and output history JSON representation
...
Thanks to zimoun for reporting.
2020-07-01 19:58:36 +01:00
dc8b442e12
Improve the linking to build servers
...
Add a build-url function that returns the URL to use, and use this where
appropriate.
2020-07-01 19:51:21 +01:00
9192550331
Implement more support for builds from the Guix Build Coordinator
...
Builds from the Guix Build Coordinator might not have timestamps, and the id
from the build server is more important, as one build server can build the
same derivation many times.
2020-07-01 09:35:29 +01:00
879021f21f
Fix match in render-builds
2020-06-28 21:44:51 +01:00
Danjela Lura
f60c2eabce
Add the packages-translation-availability page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-26 17:54:19 +01:00
Danjela Lura
bd3aa98620
Add indications for no translations available in the lint warnings page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-26 17:54:19 +01:00
Danjela Lura
d442d408ee
Add locale values in the JSON response for the lint warnings page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-26 17:54:19 +01:00
Danjela Lura
89aaf984ec
Include locale in search-packages-in-revision
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-26 17:54:19 +01:00
Danjela Lura
f16fdb44f1
Add indications for no translations available in the packages page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-26 17:54:19 +01:00
Danjela Lura
7d85372acc
Embed the locale option in the URI of the package page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-26 17:54:19 +01:00
Danjela Lura
5708b81002
Include locale in the JSON response for the packages page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-26 17:54:19 +01:00
0b4825427d
Support package derivations for the latest revision
2020-06-20 18:56:42 +01:00
94cad47b82
Add missing locale parameter to the latest revision packages page
2020-06-20 18:56:25 +01:00
Danjela Lura
a3ac33c0e1
Provide the packages page with translations
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-19 16:03:32 +01:00
Danjela Lura
14cd95f244
Make the form-horizontal-control procedure aware of hidden inputs
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura
d3096de655
Use lint checker related translations on some pages
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
e7e5a281ee
Support package substitute availability for the latest revision
2020-06-03 20:14:16 +01:00
67cda8f9cc
Make the package-reproducibility page work for the latest revision
2020-06-03 20:06:26 +01:00
11b13edac9
Populate package derivation outputs select options always
...
Even when the query parameters are invalid, as this is more useful. Thanks to
nckx for reporting.
2020-06-03 20:02:39 +01:00