Danjela Lura
0ec2673493
Add support for query parameters to the View JSON button of Jobs
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-04-24 20:00:56 +01:00
Christopher Baines
5af213a165
Include if data is available in the JSON response for a branch
2020-04-24 18:54:12 +01:00
Christopher Baines
f83cff7107
Add a JSON output for the revision channel instances
2020-04-24 10:46:20 +01:00
Christopher Baines
c2ba4e7142
Fix the field names for the JSON representation of a branch
2020-04-24 10:38:34 +01:00
Christopher Baines
7a7dedfa1b
Implement the JSON response for the package derivations page
2020-04-24 10:28:44 +01:00
Christopher Baines
68420b1085
Support controlling the fields returned for package derivations
...
Mostly so that the builds can be avoided when querying for all the
derivations, as that's slow.
2020-04-24 10:17:12 +01:00
Christopher Baines
6fb3892712
Make it clearer that some things relate to package derivations
...
Rather than derivations in general.
2020-04-24 09:12:39 +01:00
Christopher Baines
a0263a0eae
Set a statement timeout of 60 seconds for web requests
...
This will help stop queries running for an unnecessarily long time, longer
than NGinx will wait for example.
2020-04-24 09:00:20 +01:00
Christopher Baines
0cc78b90ae
Support setting a statement timeout
...
To stop queries related to the web server that run for a long time.
2020-04-24 08:59:32 +01:00
Danjela Lura
c61a8afd36
Add plain text representation for the page for a single job
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-04-20 22:27:55 +01:00
Danjela Lura
60cb07f469
Add JSON representation for the Jobs page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-04-20 21:02:22 +01:00
Christopher Baines
d09a1ca791
Actually load the (guix lint) module if it's available
2020-04-20 14:29:33 +01:00
Christopher Baines
4f7eca2490
Update the valid-systems test
2020-04-20 08:59:10 +01:00
Christopher Baines
64f1abd9ea
Add i586-gnu as a valid system
...
This is present currently on core-updates. Ideally the valid-systems would
adapt to the revision, but for the moment just add it everywhere.
2020-04-20 08:57:44 +01:00
Christopher Baines
780ce66272
Adapt to the different inferior error handling
...
In recent versions of Guix on the Guix Data Service side, I don't think these
are system-error's, but a different type. For compatibility, just catch any
error.
2020-04-20 08:18:59 +01:00
Christopher Baines
c4969eb33f
Improve detecting if the (guix lint) module is available
...
Previously it would cause an error when it's not available, which is a bit
unnecessary.
2020-04-20 08:18:19 +01:00
Christopher Baines
fdee09d1c0
Handle when there's no system-test-data to insert
...
Previously it would error in one of the INSERT queries.
2020-04-20 08:17:31 +01:00
Christopher Baines
08eb4731d1
Add missing locale parameter to the latest revision lint warnings
2020-04-15 19:39:50 +01:00
Christopher Baines
802f1b244f
Set a description for the index page
2020-04-08 17:48:43 +01:00
Christopher Baines
d79e23fd35
Make it possible to set descriptions for pages
2020-04-08 17:48:32 +01:00
Christopher Baines
491cea9e6c
Remove the meta author tag
...
As I'm not the only author :)
2020-04-08 17:40:41 +01:00
Christopher Baines
0b9098981a
Specify the language on the html tag
...
Rather than using a meta tag, apparently this is better.
2020-04-08 17:40:20 +01:00
Christopher Baines
1b197884d0
Print out the system tests as the derivations are being computed
...
This might help with debugging failures in the load jobs around this point.
2020-04-07 20:08:26 +01:00
Christopher Baines
cdcc6140aa
Guard against errors loading system tests
2020-04-07 18:22:13 +01:00
Christopher Baines
7db6a8fa03
Guard against errors when inserting log data
...
PostgreSQL seems to be unhappy with some data, I guess because it gets a bit
jumbled. Rather than failing the job, or getting stuck not inserting logs, try
and capture the error, log the details, and then keep going.
2020-04-07 17:38:57 +01:00
Christopher Baines
8e9f1af89b
Use the config options when creating the default paramstring
2020-04-07 17:37:03 +01:00
Christopher Baines
04bc3af53a
Remove some done items from the README
...
The derivations for channel instances (guix pull) and system tests are now
captured.
2020-04-05 21:09:23 +01:00
Christopher Baines
3285080da5
Fix another typo in the README
2020-04-05 21:09:15 +01:00
Vincent Legoll
b2ec547434
Fix typos in README
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-04-05 21:07:35 +01:00
Danjela lura
e514471fc9
Add option to change language of lint messages for the revision page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-04-04 18:31:26 +01:00
Christopher Baines
a50bc3342f
Fix the new package-versions-for-branch query
...
This recent change simply didn't work, the ordering was bad and the window
function wasn't properly defined. It now should hopefully work, although
there's an interesting case where different versions are available for
different systems/targets, which isn't handled particularly well.
2020-03-31 20:47:53 +01:00
Christopher Baines
5081a64c1f
Rebuild the package derivation ranges table for the small backup
...
This is better than just deleting the entries that don't match up with the
remaining revisions, but also not very useful for local development (due to
the lack of data).
2020-03-31 20:46:18 +01:00
Christopher Baines
94030b736c
Improve the insert-guix-revision-package-derivation-entries query
...
Somewhat untested improvements, but these make the query a bit more rigorous
in the case of multiple branches and git repositories.
2020-03-31 20:43:34 +01:00
Christopher Baines
63d7af9340
Improve filtering for no target
...
Previously, the select option label was empty that's not particularly
informative. These changes also fix the next page link behaviour for the
target parameter.
2020-03-31 18:58:36 +01:00
Danjela lura
6ee9a674cd
Store output of most-recent-commits-for-branch in a local variable
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-03-29 21:12:35 +01:00
Christopher Baines
776d0462e9
Fix a missing ; in a Sqitch migration
2020-03-29 12:05:00 +01:00
Christopher Baines
8d109bccb5
Handle NULL better insert-missing-data-and-return-all-ids queries
...
Actually check if fields can be NULL, and if they can be then include some
extra conditions for the comparison.
This will at least make the queries smaller, I'm not sure if it will have an
effect on performance.
2020-03-29 10:29:46 +01:00
Christopher Baines
bddf7a4240
Add a function to fetch information about a table
...
Mostly so whether a field can contain NULL values can be determined.
2020-03-29 10:29:08 +01:00
Christopher Baines
b30904e1af
Make jobs unique by commit
...
Given that a commit, regardless of what repository it comes from should
contain the same exactly the same data, just track jobs by commit.
2020-03-28 19:59:35 +00:00
spf50
f980b6c2ac
Include data in JSON response for the branch page
...
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-03-28 14:15:00 +00:00
Christopher Baines
d1c243f7fd
Give the temporary database more working memory
...
In the hope that this makes the script faster.
2020-03-26 20:21:47 +00:00
Christopher Baines
3017765f0c
Use EXPLAIN ANALYZE for the creation of tmp_derivations
...
In the create-small-backup script, as this is quite a slow part, it's useful
to get more information.
2020-03-26 20:21:14 +00:00
Christopher Baines
9a79a5d747
Handle a couple more tables in create-small-backup
...
derivation_output_details_sets, and derivations_by_output_details_set. This
required moving around some of the code.
2020-03-26 20:20:29 +00:00
Christopher Baines
00bc6535f9
Add an unimplemented JSON response for the branch page
2020-03-26 09:14:00 +00:00
Christopher Baines
d0eff9da5d
Use the --no-comments option to pg_dump
...
Hopefully this will help with the pg_restore in the create-small-backup
script:
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2875; 0 0 COMMENT EXTENSION plpgsql
pg_restore: [archiver (db)] could not execute query: ERROR: must be owner of extension plpgsql
Command was: COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
2020-03-25 20:47:53 +00:00
Christopher Baines
0c4e6a2fe4
Create an index on narinfo_fetch_records
...
This greatly improves the performance of the derivation-outputs page.
2020-03-25 19:11:03 +00:00
Christopher Baines
8af7130239
Handle channel instances in create-small-backup
...
Otherwise this table is empty.
2020-03-25 18:27:01 +00:00
Christopher Baines
b99854924a
Handle system test derivations in create-small-backup
...
Otherwise this table is empty.
2020-03-25 18:26:33 +00:00
Christopher Baines
60df7ecbf9
Remove redundant DISTINCT from the derivation range INSERT query
...
This was redundant and slow, so don't do it.
2020-03-24 21:37:18 +00:00
Christopher Baines
994318782a
Pass #:store to checkers that support it
...
The derivation checker currently opens a store connection on its own, but by
passing the already open connection in, it won't have to do that, and
hopefully this will make checking all the packages faster.
2020-03-24 21:36:13 +00:00