Commit Graph

40 Commits

Author SHA1 Message Date
Christopher Baines 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
Christopher Baines 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
Christopher Baines be2d554aae Support the system-tests page for the latest processed revision 2021-03-05 13:52:32 +00:00
Christopher Baines 9a9d156366 Update most-recent-commits-for-branch to handle data availability 2021-02-03 12:55:23 +00:00
Christopher Baines 8d6f255646 Add latest revision version of the fixed output package derivations 2020-12-27 09:09:47 +00:00
Christopher Baines 69057b41a7 Support showing package derivations by build status
I'm particularly thinking about listing packages which fail to build.
2020-12-09 19:07:42 +00:00
Christopher Baines 54616bc9e4 Add default "none" target to the package derivation outputs page
This avoids odd results for the links from the package substitute availability
page.
2020-10-31 13:27:06 +00:00
Christopher Baines d05a7397fb Improve latest processed revision pages for reproducibility stuff
Support the package-derivation-outputs page, and switch the
package-reproducibility page across to use it.
2020-10-11 17:05:38 +01:00
Christopher Baines 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
Christopher Baines 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
Christopher Baines 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
Christopher Baines 033858410b Add a JSON page for repository branches 2020-09-27 16:32:56 +01:00
Christopher Baines f7933807ac Add a JSON representation for repositories 2020-09-27 16:26:45 +01:00
Christopher Baines 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
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 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 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
Christopher Baines e7e5a281ee Support package substitute availability for the latest revision 2020-06-03 20:14:16 +01:00
Christopher Baines 67cda8f9cc Make the package-reproducibility page work for the latest revision 2020-06-03 20:06:26 +01:00
Christopher Baines b6754c8a4c Add a lookup_builds field to the build_servers table
This is to allow for build servers where only the substitutes should be
queried, and it shouldn't be assumed that they're running Cuirass.
2020-05-24 17:02:53 +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 c2ba4e7142 Fix the field names for the JSON representation of a branch 2020-04-24 10:38:34 +01:00
Christopher Baines 08eb4731d1 Add missing locale parameter to the latest revision lint warnings 2020-04-15 19:39:50 +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
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 00bc6535f9 Add an unimplemented JSON response for the branch page 2020-03-26 09:14:00 +00:00
Christopher Baines 7d2309d344 Add a page for package output history on a branch
This complements the existing pages for the version history, and derivation
history. As well as the new page, the buttons and styling of the two existing
pages has been made to match better to enable easier navigation between the
pages.
2020-03-21 10:38:20 +00:00
Christopher Baines 07b97fcb73 Fix target handling on the package derivation history page 2020-02-16 13:38:07 +00:00
Christopher Baines f1989e8758 Rework cross derivations support
Stop using the system values as targets, and remove package derivation entries
where this is the case.

Switch the non-cross derivation case to have a target of "", rather than
matching the system, as this makes more sense, and is more consistent now that
the target values no longer match the system values.

Hardcode some more correct target values, and use these instead. Hopefully
this can be better integrated with Guix in the future.

This commit also includes a migration attempting to shrink some indexes.
2020-02-08 11:16:08 +00:00
Christopher Baines 744ab9366b Add a very basic repositories page 2020-02-01 13:33:14 +01:00
Christopher Baines ffcf937c6a Don't hardcode the system and target for the derivation history page 2020-01-05 11:17:39 +00:00
Christopher Baines 6f34d12c4c Extract out the derivation-history rendering code 2020-01-05 10:32:47 +00:00
Christopher Baines 50f550d642 Link to the versions page from the latest revision package page 2019-12-27 10:13:34 +00:00
Christopher Baines e45db1cd30 Include builds on the derivation history page 2019-12-22 21:42:49 +00:00
Christopher Baines af1324855e Fix the JSON output for the derivation history page 2019-11-26 07:17:24 +00:00
Christopher Baines 04bb2d52bc Add first version of a page with the history of package derivations
Some filtering options need adding for the system and target, as it's
currently hardcoded, but the general page does work.
2019-11-09 20:07:34 +00:00
Christopher Baines 5e2bc7c6e9 Fix various warnings relating to the controller refactoring 2019-10-18 18:44:42 +01:00
Christopher Baines 263eb0e0a9 Handle unknown requests better within controllers 2019-10-18 17:23:59 +01:00
Christopher Baines 86db73c05a Refactor the repository pages code
Move it out of the main controller and html modules to better separate the
code, which should allow to make it easier to read in the future.
2019-10-14 18:28:25 +01:00