Commit graph

1631 commits

Author SHA1 Message Date
2b9c882e5a Improve error handling for comparison pages 2019-10-12 21:43:34 +01:00
af1ffc2393 Add a page for queued jobs 2019-10-12 21:16:39 +01:00
2279f1e013 Remove the now redundant with-base-and-target-commits function
Uses of this have been replaced with parse-query-parameters.
2019-10-12 18:40:18 +01:00
116775ad06 Switch the compare page to use parse-query-parameters 2019-10-12 18:39:45 +01:00
30051a3740 Switch the compare/packages page to use parse-query-parameters 2019-10-12 17:30:01 +01:00
c9c7666b49 Don't automatically shutdown the test database
As this leaves a process running, it's better just to stop the database
manually.
2019-10-11 08:43:21 +01:00
06af9ce6de Fix the environment variables in the check-with-tmp-database target
So that they're actually set for sqitch.
2019-10-11 08:36:31 +01:00
eb1709c8e4 Improve the check-with-tmp-database target
To better manage the environment, and stop the database upon completion of the
tests.
2019-10-11 08:32:48 +01:00
c40747a5ee Add a check-with-tmp-database target
This is aimed at testing using pg_tmp, to create a temporary test
database (and instance of PostgreSQL). This is both useful for testing all the
migrations, but should also be useful for running the tests within the guix
package.
2019-10-08 19:45:59 +01:00
356a5954b2 Add support for using a database URI
As this is useful when working with pg_tmp.
2019-10-08 19:45:41 +01:00
ab8a02cf13 Sort package versions on a branch by version as well
To fix the order when the first_datetime matches.
2019-10-08 19:44:09 +01:00
dbe171bc75 Handle potentially serving assets from the store 2019-10-06 14:23:15 +01:00
eab5a70976 Add a new static-asset-from-store-renderer function
Previously, the assets would be served from the store normally, but this meant
that they were read from disk each time, and stat calls were used to determine
when they were last modified.

This doesn't work for files in the store, as the timestamps are normalised,
therefore add a renderer that takes advantage of the asset directory being in
the store. All the files are read at startup, and then stored in memory. Also,
the process start time is used as a value for the last modified header, which
isn't ideal, but it's better than 1970.
2019-10-06 14:19:26 +01:00
7e5d54148d Add assets-dir-in-store? to the config module
To allow looking up if the assets are in the store, which will happen if the
Guix Data Service is running from a Guix package.
2019-10-06 14:18:38 +01:00
7c199c1416 Run the logo.png through optipng 2019-10-05 12:49:48 +01:00
8019d2e687 Add "No lint warning changes" message to compare page 2019-10-05 11:11:22 +01:00
9fc6dd08e6 Remove duplicates from the guix_revisions table 2019-10-05 09:14:40 +01:00
a104fbc5e1 Link from the revision package page to the version history page 2019-10-03 22:08:06 +01:00
fb301a8495 Add a package page, showing versions for a revision 2019-10-03 21:35:29 +01:00
a40a8f0f92 Rename render-revision-package to render-revision-package-version
As this name is more specific.
2019-10-03 20:15:56 +01:00
427063c812 Make it easier to retry jobs
Add a new event 'retry', and run jobs where the number of retry events is
greater or equal to the number of failure events.

Also add an index to the git_branches table to make the finding jobs query a
bit faster.
2019-10-02 21:54:11 +01:00
e00aabde43 Remove "support for viewing package history" from the Roadmap
As there is an initial version of this feature now.
2019-10-01 19:05:44 +01:00
652c95f691 Say "with graphs" in the README
As I think this makes more sense than "including graphs".
2019-10-01 19:05:20 +01:00
977609c66e Rewrite localhost for sqitch
As this means that like psql, the unix socket will be used.
2019-10-01 19:03:34 +01:00
44c0c9d0dd Remove non-existent test from Makefile.am 2019-10-01 19:03:17 +01:00
48bdb35f3e Hide deleted branches on the index page
To keep the page length down. All branches can still be seen on the page for
specific repositories.
2019-09-29 17:12:50 +01:00
e486ba6274 Remove a redundant query condition
The git_branches.commits column doesn't allow NULL values.
2019-09-29 17:12:20 +01:00
b90e6289ac Fix the 'NULL' values in git_branches for the commits
The git_branches table had 'NULL' values for some commits where the branch was
deleted, importantly this was the string 'NULL', not an actual NULL value.

This commit fixes that, migrating the existing values to be '', and changing
the relevant code.

The primary key is also extended to include the datetime field, as this is
important to allow a branch to be deleted twice.
2019-09-29 17:10:04 +01:00
bd47a03c22 Add migration to create an index on load_new_guix_revision_job_events
To speed up the rendering of the index page.
2019-09-29 12:04:57 +01:00
580900b0f4 Fail early if the inferior is #f
This happens when the repl can't be loaded for example.
2019-09-29 10:45:46 +01:00
208122317a Try setting the en_US.UTF-8 locale, if the normalised fails
Older versions of the glibc-locales package just contain the UTF-8 variants,
not utf8.
2019-09-29 10:44:53 +01:00
d236f05d0f Don't error when processing revisions of Guix without graft support 2019-09-29 10:44:25 +01:00
c81d1e04ea Handle loading revisions without the (guix lint) module
This is a recent addition, so to support loading revisions without it, better
handle the error when loading the module.
2019-09-29 00:21:25 +01:00
15b94238c5 Unset the GUILE_LOAD_* environment variables when using inferiors
Otherwise modules from outside of the inferior can leak in.
2019-09-28 23:56:41 +01:00
16ed3e376e Provide the job id for jobs on the revision page
Using the title element, as the identifier is internal, but it's useful for
development to be able to find it out, if you want to run the job for testing.
2019-09-28 23:55:50 +01:00
ea253c4515 Add a new script to process emails in an mbox file
This can be used with the mbox files for the guix-commits mailing list to add
older emails in to the database.
2019-09-28 23:55:11 +01:00
4df889fc3c Add JSON output for the branch package versions page 2019-09-27 17:53:45 +01:00
00ac080297 Add some bars to the table on the branch package versions page
To provide a more visual view of when the package versions were available.
2019-09-27 17:29:33 +01:00
59c342ffde Add a new page to show package versions available on a branch
This is useful when looking back through history at what package versions were
previously available.
2019-09-27 17:28:46 +01:00
43bc7cab91 Add a new table to store package versions by revision ranges
This isn't new information, but derived from information already in the
database. It's collected here to make querying faster.

The table is updated when each new revision is entered.
2019-09-27 17:28:46 +01:00
465f262ded Tweak the textual search to rank exact name matches higher
Previously, if you searched for packages like Ruby or Guile, the actual Ruby
and Guile packages would be low in the rankings, as the terms Ruby or Guile
don't appear much in the descriptions.

Therefore, change the ordering to make these exact matches appear higher up.
2019-09-26 18:29:17 +01:00
759b75257e Switch to processing emails as bytevectors
This is better, as different parts of the email might be encoded differently,
and guile-email will take care of this if handed a bytevector.
2019-09-26 18:08:12 +01:00
bb94f6dd05 Add a Roadmap section to the README 2019-09-23 16:49:20 +01:00
b96bc58422 Handle the README.html file being missing 2019-09-23 16:44:16 +01:00
970bcb31cf Tweak screen.css to display paragraphs and lists better 2019-09-21 12:41:52 +01:00
1181d999a9 Serve the README.html file on the site 2019-09-21 12:41:39 +01:00
f5ff0f8638 Hack building a HTML version of the README in to Makefile.am
This is to be able to serve a readable version of the README on the site,
allowing those without Emacs to more easily read it.
2019-09-21 12:40:46 +01:00
ec1b2001cc Add a README
With local development instructions.
2019-09-21 12:40:21 +01:00
34ed73cdc1 Fix the godir in Makefile.am
I think the .go files should be in lib, rather than share.
2019-09-21 11:30:25 +01:00
ddf3eb6589 Add guix as a dependency
This is used as a Guile module.
2019-09-21 11:29:10 +01:00