Commit graph

1540 commits

Author SHA1 Message Date
673d762e68 Remove redundant derivation-sources call 2021-06-09 16:38:33 +01:00
1a21bc40a8 Pass #:system to channel-instances->manifest
This is better than setting the %current-system, since more of the process
will run as native code.
2021-06-09 10:59:31 +01:00
8a48960fa7 Use derivations.system_id in select-builds-with-context
As that table is always included in the query.
2021-06-09 10:35:29 +01:00
f421faa790 Fix a uri encoding issue with linking to outputs 2021-06-09 10:28:11 +01:00
Canan Talayhan
9c1b989d20 Add index for package_metadata
This index speeds up inserting new entries to the package_metadata table.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2021-05-27 21:26:56 +01:00
854f2cbba9 Fix a URI decoding issue
This caused a problem viewing this derivation
/gnu/store/65r4488732qy6ilrh1ryb8xwmip1qnir-tklib-0.6.tar.gz?uuid=tklib-0-6.drv
2021-05-27 09:38:41 +01:00
f4a87ec059 Add some indexes
This is from reading the slow query log on data.guix.gnu.org.
2021-05-17 18:40:45 +01:00
b8bfdcf622 Remove the "derivations using output" data
From the HTML and JSON responses, since this data isn't very useful, and the
query to collect the small amount which is displayed is very slow. This could
return at some point, but in a proper paginated form which isn't slow.
2021-05-17 18:35:19 +01:00
da0ee9dff0 Use filter-map rather than filter and map when processing linters
I guess this is a good change in general, but this seems to avoid a long
stack, which when a linter crashes, and the inferior tries to return the
exception details, and apparently hang the inferior/client as the reply isn't
written/read.
2021-05-16 20:54:07 +01:00
2a4b16f5e4 Fix incorrect query parameters in a couple of builds queries
The parameters must be strings rather than numbers.
2021-05-12 08:28:06 +01:00
cdb41cfa3c Fix query typo in branches-by-package-version 2021-05-12 08:27:48 +01:00
d13a7187af Fix request->path-components-and-mime-type
Previously, it wouldn't pull the mime types out of the request properly, I
think it does a better job of that now.
2021-05-12 08:26:15 +01:00
Luciana Lima Brito
767e60b2b3 Change data handling when comparing derivations
comparison.scm: return query data for derivation comparison as an alist,
instead of list.
html.scm: Access derivation differences data using assq-ref.
controller.scm: remove mapping for outputs/inputs/sources.
utils.scm: add group-to-alist/vector function.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2021-04-27 21:18:51 +01:00
e38bddcae5 Reformat a couple of package related queries 2021-04-24 06:00:47 +01:00
1f078e1af0 Fix more things for the systems table introduction 2021-04-23 23:10:28 +01:00
c252d1cb30 Actually add the system module 2021-04-23 18:42:40 +01:00
869d2522e5 Add the system module to Makefile.am 2021-04-23 18:07:55 +01:00
Canan Talayhan
fe97021cd0 Set more informative page titles
For many pages where previously the title was just "Guix Data Service".

Signed-off-by: Christopher Baines <mail@cbaines.net>
2021-04-23 12:00:03 +01:00
6387f1bc67 Fetch the list of system values from the database
This removes the need to hardcode some values in the code.
2021-04-23 11:20:36 +01:00
b430c632b7 Create a table for systems
And use it for the systems in the derivations and package derivations tables.

The primary motivation here is to allow quickly working out what systems the
database contains, and having a small table with just the right data seems a
good way to do that.
2021-04-23 11:14:51 +01:00
1cc5accb9e Fix an error with the formatted derivation page 2021-04-23 11:13:04 +01:00
Luciana Brito
a498433643 Implement basic JSON output for the derivation comparison page
Signed-off-by: Christopher Baines <mail@cbaines.net>
2021-04-19 20:53:46 +01:00
c2c033b435 Fix a timezone issue 2021-04-10 14:44:10 +01:00
a8b903f7b9 Only query for substitutes for things built in the last 5 minutes 2021-04-10 10:08:50 +01:00
f37ae27ca6 Support querying for outputs that have had successful builds 2021-04-10 10:08:25 +01:00
28a7cb6291 Better handle filtering narinfos
This avoids a query error when trying to insert data for 0 narinfos.
2021-04-10 08:30:48 +01:00
91aebb3c4e State where to send patches in the README 2021-04-10 08:23:39 +01:00
df2a0a73f1 Update for the changes around (guix scripts substitute)
There's now a better (guix substitutes) module to use.
2021-04-09 11:27:19 +01:00
410f58cb43 Fix load revision jobs not failing if the extraction of data fails 2021-03-25 17:57:48 +00:00
0175914f79 Fix a null handling issue for system test derivation comparison 2021-03-25 17:49:44 +00:00
f47d337a72 Have branches-by-package-version look at latest processed revision
This means branches aren't omitted if the latest commit hasn't been processed
yet.
2021-03-15 10:29:36 +00:00
663bd1411a Add a /package/NAME page
This might be useful for working out when a non-master branch contains a newer
version of a package, or someone has sent in a patch for a newer version
already.
2021-03-14 21:48:43 +00:00
fbaa37328c Add page for looking at the history of a system test
This should be useful for looking at when system tests break.
2021-03-14 17:52:31 +00:00
be2d554aae Support the system-tests page for the latest processed revision 2021-03-05 13:52:32 +00:00
52ac92e7c7 Handle NULL values when comparing derivation output details set ids
Otherwise this restricts the results to entries where neither value is NULL.
2021-02-12 09:18:50 +00:00
9dde93422c Add powerpc64le-linux as a supported system
This should not be necessary, but currently the database isn't used to find
out the valid system values.
2021-02-12 08:47:09 +00:00
3368a64c04 Increase the job timeout
As for some jobs that take lots of time to compute and build the channel
instance derivations, it can take more than 24 hours.
2021-02-10 20:31:44 +00:00
417541f116 Properly encode branch names in links
At least from the home page, this fixes links where the branch name contains a
/.
2021-02-09 21:36:34 +00:00
146ffbe5eb Fix excluding derivations for unchanged outputs 2021-02-08 22:18:27 +00:00
110a3b7ce5 Exclude derviations with unchanged outputs from the comparison page
As these aren't useful to look at. This should probably default to #f and be a
parameter.
2021-02-08 22:04:26 +00:00
f2d98b626d Support more query parameters on the /builds page 2021-02-08 21:31:39 +00:00
15d7756ef8 Filter out narinfos with excessive size
This is currently an issue with ci.guix.gnu.org
https://issues.guix.gnu.org/46212 for substitutes for outputs who's size
exceed 32 bits of information.
2021-02-07 09:01:53 +00:00
c2254754d5 Fix a squee update issue with the package reproducibility page 2021-02-06 19:30:05 +00:00
b7ba8d0c2c Fix comparing by datetime
When the latest revisions haven't been processed successfully yet.
2021-02-05 11:07:31 +00:00
07f903abaf Fix dropping the job lock 2021-02-05 11:07:07 +00:00
02b75d857a Reformat queries in the load-new-guix-revision module 2021-02-05 09:16:08 +00:00
39f52e3a2e Update parse-commit for the guix-revision changes 2021-02-04 10:28:04 +00:00
4c14e16148 Adjust all-branches-with-most-recent-commit for recent changes
Look at the job succeeded_at, rather than the guix_revisions.id field.
2021-02-03 13:20:41 +00:00
b0b87cced7 Improve the revision page when a revision hasn't been processed 2021-02-03 12:57:29 +00:00
9a9d156366 Update most-recent-commits-for-branch to handle data availability 2021-02-03 12:55:23 +00:00