Ludovic Courtès
773fe2a19f
Add dependency on Guile-lzlib.
...
Guix no longer provides the (guix lzlib) module. This commit arranges
to use Guile-lzlib instead.
2020-08-26 11:27:54 +02:00
Christopher Baines
c7048abe31
Change a package_descriptions index to use MD5 of the description
...
To avoid the index data being too large.
This was first seen in guix commit 1bb4fd64b7bbe5a17eda6f0ca8105283c038f7c8:
psql-query-error (fatal-error PGRES_FATAL_ERROR ERROR: index row size 2808
exceeds maximum 2712 for index "package_descriptions_locale_description_key"
HINT: Values larger than 1/3 of a buffer page cannot be indexed.
2020-08-23 14:42:32 +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
Danjela Lura
7984179f5e
Guard against null package metadata ids
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-08-13 08:58:09 +01:00
Danjela Lura
086cb9c9d0
Modify the search-packages-in-revision query to make it faster
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-08-12 08:53:59 +01:00
Danjela Lura
bef826cf2e
Make call-with-time-logging handle multiple return values
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-08-12 08:53:54 +01:00
Danjela Lura
5b3e5d9441
Update the package_metadata_tsvectors with new entries
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-08-12 08:53:49 +01:00
Danjela Lura
ee613cdb30
Add the package_metadata_tsvectors table
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-08-12 08:53:35 +01:00
Christopher Baines
a6a4a84b20
Avoid problems with lint warnings for duplicate packages
...
Use the deduplicated list of packages when fetching lint warnings, to avoid
duplicates. This was first seen in the following Guix commit
843344273c6a587b8e6c84d8406500fd64d8908a.
2020-08-09 16:53:26 +01:00
Christopher Baines
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
Christopher Baines
a1af644310
Change select-required-builds-that-failed to exclude succeeded builds
...
Only include a failed build if that build server hasn't had any success
building that output. The Guix Build Coordinator can build one output with
many different builds, so this helps avoid showing lots of spurious failures.
2020-07-13 18:55:50 +01:00
Christopher Baines
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
Christopher Baines
e9d4e74e56
Add builds to the store item page
2020-07-04 09:31:12 +01:00
Christopher Baines
5dc9ed65ff
Add a index to derivation_output_details_sets
...
This helps with queries like:
SELECT *
FROM derivation_output_details_sets
WHERE ARRAY[5563227] <@ derivation_output_details_ids;
2020-07-04 08:59:29 +01:00
Christopher Baines
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
Christopher Baines
69d3c83986
Improve select-builds-with-context
...
Support specifying the limit, and improve the ordering.
2020-07-03 20:32:45 +01:00
Christopher Baines
092f01b6f2
Fix the builds table headers
2020-07-02 20:36:08 +01:00
Christopher Baines
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
Christopher Baines
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
Christopher Baines
1e2fefa7cf
Change select-build procedures to avoid join issues
...
The number of build_status rows coming back was being amplified by the INNER
JOIN, using a subquery guards against this.
2020-07-01 19:42:42 +01:00
Christopher Baines
0242bc6a2e
Remove the constraint on having one derivation build per server
...
As the Guix Build Coordinator can build one derivation many times.
2020-07-01 09:35:40 +01:00
Christopher Baines
5ee8207565
Avoid duplicate build status entries
...
This effectively makes adding build status entries idempotent to some degree.
2020-07-01 09:35:29 +01:00
Christopher Baines
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
Christopher Baines
879021f21f
Fix match in render-builds
2020-06-28 21:44:51 +01:00
Christopher Baines
911d0779ed
Fix compute-token
...
For some reason the string-filter arguments were the wrong way around.
2020-06-28 21:42:05 +01:00
Christopher Baines
ddbe4c2192
Support storing the id's representing builds in other services
...
Like Cuirass, or the Guix Data Service. This isn't so necessary with Cuirass,
as the derivation/output are unique identifiers, but for the Guix Build
Coordinator, one derivation/output can be built many times, with potentially
differing results.
2020-06-27 14:05:51 +01:00
Christopher Baines
1d48885e6a
Make build_status.timestamp nullable
...
The Guix Build Coordinator doesn't record timestamps for events
currently. This is something to fix, but allow for build statuses without
timestamps as they're not necessary.
2020-06-27 14:05:51 +01:00
Christopher Baines
d687928a04
Implement insert-build-status using insert-build-statues
...
To reduce the number of code paths.
2020-06-27 14:05: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
Christopher Baines
0b4825427d
Support package derivations for the latest revision
2020-06-20 18:56:42 +01:00
Christopher Baines
94cad47b82
Add missing locale parameter to the latest revision packages page
2020-06-20 18:56:25 +01:00
Danjela Lura
9e93b2b3a8
Fix the test-model-package-metadata test
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-19 16:03:32 +01:00
Danjela Lura
365bf27838
Fix the test-model-package test
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-19 16:03:32 +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
8d9a4d105c
Get the translated package synopsis and descriptions into the database
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-19 16:03:32 +01:00
Christopher Baines
308e553b11
Guard against some changes in how guile-json represents null values
2020-06-19 14:12:56 +01:00
Danjela Lura
480d718fa8
Fix lint checker tests
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura
533bf91ab1
Fall back to en_US.utf8 in the package page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura
d10c6f5aa9
Fall back to en_US.utf8 for the lint warnings page for a revision
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura
f0833f8d02
Provide the comparison page with translated lint warnings
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +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
ecd460867b
Make the query that provides locale options look nicer
...
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
Danjela Lura
b8abe38352
Add checks to guard against null data
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00