Commit graph

18 commits

Author SHA1 Message Date
6023aa8caf Improve select-job-for-commit
It now returns #f or a list, rather than the empty list or a nested list.
2020-10-09 19:31:51 +01:00
03ea66cf33 Use the git repository fetch with authentication value 2020-10-07 18:51:30 +01:00
1ad581b05a Do some more mocking in the jobs-load-new-guix-revision tests
To help with getting them running on Guile 3.
2020-02-27 21:20:24 +00:00
73be24d8ac Remove unused mock-inferior import 2020-02-27 21:13:37 +00:00
ffdde6ba36 Check that the test database is being used in all the tests 2020-02-24 21:16:41 +00:00
0c726b9fe7 Clear a couple of tables in the load-new-guix-revision tests
As entries from incomplete previous runs can effect the test, so clean out any
old data before the test begins.
2020-02-24 16:46:10 +00:00
f6f51bbe0d Fake the store connection in the tests
So that the tests don't require a store connection.
2020-02-14 09:18:28 +00:00
0ef3349ed8 Use a more long lived store connection for loading data
As this will enable registering temporary roots, to avoid store items being
garbage collected.
2020-02-13 23:11:36 +00:00
9be7dbac0b Start storing channel instance derivations
These are the ones that relate to Guix pull.
2020-02-11 08:56:24 +00:00
876bae182d Update the load-new-revision-job tests 2020-02-11 08:55:16 +00:00
f23ee71ea7 Insert channel news entries when loading new guix revisions
If the channel-news-for-commit function is present.
2019-11-21 19:56:19 +00:00
66d726f1fd Refactor channel handling in the load-new-guix-revision module
To allow for passing the channel to channel-news-for-commit.
2019-11-21 19:56:19 +00:00
9e80bda4f9 Avoid erroring when processing emails again
These changes allow processing emails again, and just creating job and branch
entries where data is missing.
2019-08-05 20:59:48 +01:00
712dd377a1 Remove test data after the tests have ran
The load-new-guix-revision tests aren't transactional, so truncate some tables
after running the tests.
2019-08-05 20:45:40 +01:00
83ef624b97 Switch to processing jobs in parallel
This should speed up processing new revisions, reduce latency between finding
out about new revisions and processing them, as well as help manage memory
usage, by processing each job in a process that then exits.
2019-07-12 23:00:44 +01:00
28baed2667 Fix the name for the jobs-load-new-guix-revision test module 2019-07-12 19:50:36 +01:00
743cec7cb6 Associate a name with database connections
This helps when working out which connection to the database is doing what.
2019-07-12 19:49:26 +01:00
544dc1558f Add a new test to cover some of the loading new revisions code 2019-06-02 22:02:12 +01:00