1ac9f8072e
Avoid URL conflicts in tests
2025-03-11 17:15:00 +00:00
522c7cd9a2
Remove unmaintainable tests
...
This needs rethinking, it's not feasible to maintain tests if you have to
struggle to get backtraces when they fail and they rely on fragile and broken
mocking.
2025-02-11 10:29:45 +00:00
931b7bc593
Add a slightly crude method to ignore systems and targets
...
While processing a revision. It would be good to also record what systems and
targets are in the platforms so it's clear what data is missing, but that can
be added later.
2025-02-03 22:59:34 +00:00
371d76456f
Start trying to handle GC happening while processing revisions
2024-08-12 09:14:36 +01:00
885a4758d3
Get the test suite working again
2024-08-07 17:21:49 +01:00
fbbdc41f5c
Update tests
2024-07-26 22:21:59 +01:00
31bd2156f7
Support setting environment variables in the inferior
...
When processing jobs, this is mostly to allow setting GUIX_DOWNLOAD_METHODS.
2024-06-24 23:02:14 +01:00
993887fe0c
Further change job store connection handling
...
The guix-dameon WAL is still growing excessively, so avoid doing anything with
the long running store connection except registering temporary roots.
2024-04-25 22:01:22 +01:00
b81e7ea950
Fixup tests
2024-01-18 15:34:40 +00:00
c3cb04cb80
Use fibers when processing new revisions
...
Just have one fiber at the moment, but this will enable using fibers for
parallelism in the future.
Fibers seemed to cause problems with the logging setup, which was a bit odd in
the first place. So move logging to the parent process which is better anyway.
2023-11-05 13:46:20 +00:00
bf41c6ebb1
Set current-guix-package when computing system test derivations
...
This is a bit ugly, but might speed up computing derivations for system tests.
2023-02-28 10:51:51 +00:00
3ba8418656
Allow skipping processing system tests
...
Generating system test derivations are difficult, since you generally need to
do potentially expensive builds for the system you're generating the system
tests for. You might not want to disable grafts for instance because you might
be trying to test whatever the test is testing in the context of grafts being
enabled.
I'm looking at skipping the system tests on data.guix.gnu.org, because they're
not used and quite expensive to compute.
2023-02-08 14:56:48 +00:00
3a90798567
Address a few issues in the load new guix revision tests
2022-03-02 18:23:26 +00:00
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