185ba36853
Log the time spent in a locked section
2020-02-28 20:41:44 +00:00
f23223f16d
Improve the locking around fetching channel instances
...
I think there's still the potential for a race condition when working with the
cached checkout of the repository, but this lock was far too wide. The
sensitive section is just the latest-channel-instances call, as it adds the
relevant files to the store, and that's what's returned.
2020-02-28 20:40:31 +00:00
9a29845f89
Use Guile 3 for development
2020-02-27 22:17:16 +00:00
cd4dda6e22
Enable using Guile 3
2020-02-27 22:16:44 +00: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
a95c5ca5c9
Improve the error reporting within process-load-new-guix-revision-job
...
By including a backtrace.
2020-02-27 21:14:58 +00:00
b166177dbd
Prevent inlining for a number of procedures
...
So that the load-new-guix-revision tests work with Guile 3.
2020-02-27 21:14:34 +00:00
f4922fc904
Add some syntax to prevent inlining within modules
...
This is relevant, as it prevents the mock function used in tests working with
Guile 3.
2020-02-27 21:13:53 +00:00
73be24d8ac
Remove unused mock-inferior import
2020-02-27 21:13:37 +00:00
71f483c816
Add a few imports in preparation for Guile 3
2020-02-27 21:12:16 +00:00
0a5b8e585a
Generate .go files for the tests
...
I think this might help with getting relevant stack traces.
2020-02-27 21:11:45 +00:00
cb353d2c82
Make the test output more verbose
2020-02-27 21:11:27 +00:00
94321ec274
Don't use the (tests driver) module
...
As I forget why I even added it. I'm sure it was to try and make test failures
more understandable, but I'm not sure it worked.
2020-02-27 21:10:04 +00:00
bb7c2a1916
Add a missing import
2020-02-27 21:09:39 +00:00
30dd62f000
Clean up some time logging code
2020-02-24 22:03:09 +00:00
2f41fe79be
Adapt some license related code to work without mock in the tests
...
With Guile 3, there's a potential for mock to work in even fewer
circumstances. So, adapt the code to enable writing the tests without mock.
2020-02-24 21:47:34 +00:00
ce10833459
Switch to using some shorter syntax for logging time taken
...
In the load-new-guix-revision module.
2020-02-24 21:31:04 +00:00
49d10cfe14
Add a new utils module, containing a with-time-logging syntax rule
2020-02-24 21:31:01 +00:00
ffdde6ba36
Check that the test database is being used in all the tests
2020-02-24 21:16:41 +00:00
b337c5fcb2
Add a function to check if the test database is being used
...
This helps avoid problems when running the tests, and the test database not
being used.
2020-02-24 21:15:43 +00:00
f57b5c4a9a
Add missing ROLLBACK for transaction
2020-02-24 18:50:34 +00:00
cee9acaa87
Refactor the logging setup out of process-load-new-guix-revision-job
...
To simplify both procedures.
2020-02-24 18:46:53 +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
510e13f175
Add a page listing the available database dumps
2020-02-22 23:24:24 +00:00
9178bd51a9
Add a function to delete unreferenced derivations
2020-02-16 22:29:25 +00:00
27904e8fd7
Fix some comments
...
Copied over from the Mumi code.
2020-02-16 22:29:11 +00:00
e5a6680808
Make a constraint deferrable
...
To allow for deferring it in a transaction when deleting derivations.
2020-02-16 22:28:37 +00:00
bfa468a325
Add another 0 to the job default character limit
...
This seems to work fine, and now because of the channel-instances, it's useful
to display more data by default.
2020-02-16 13:53:49 +00:00
07b97fcb73
Fix target handling on the package derivation history page
2020-02-16 13:38:07 +00:00
b087cfca67
Define the code to delete data from non-master branches properly
2020-02-16 10:59:38 +00:00
9c7310f8e3
Make it possible to query builds servers for specific outputs
2020-02-16 09:54:27 +00:00
6f97cec962
Guard against build being missing from the output response
2020-02-16 09:06:12 +00:00
cc370fae56
Better handle errors when fetching builds by output
2020-02-15 21:58:07 +00:00
119fd801e1
Fix some functions being called with the wrong number of arguments
2020-02-15 21:38:42 +00:00
a2387c12d8
Improve error handling in the query-build-servers script
2020-02-15 21:33:47 +00:00
2c495fe8f6
Improve associating builds with derivations
...
Even without knowing the details of the derivation.
2020-02-15 21:29:42 +00:00
c355c42584
Enhance ensure-build-exists
...
Support calling it with derivation-output-details-set-id, which can be used
when querying for builds.
2020-02-15 21:28:09 +00:00
5758795777
Set a default target for the revision builds page
...
This solves the build stats showing up incorrectly, as without this there was
no filtering on target.
2020-02-15 21:25:02 +00:00
33749786e4
Add verbose output to the query-build-servers script
2020-02-15 19:54:42 +00:00
617af6c9d3
Properly sort the derivation outputs
2020-02-15 19:54:17 +00:00
a6e19a4102
Avoid an error when there are no references to insert
2020-02-15 18:23:04 +00:00
36254f98e3
Improve the job logging
...
Switch to using a sequence for the ids in the log parts table, and spawn a
thread to listen for output from the inferior processes, and enter it in to
the database.
2020-02-15 17:42:07 +00:00
40f6de27f6
Make deleting the existing log parts optional
2020-02-15 16:49:37 +00:00
46c8ce5b82
Define a new parameter for a port used for the inferior error output
2020-02-15 13:41:17 +00:00
773e5a9c38
Add a module to handle deleting data
...
This, along with the way of specifying which branches are processed is a way
to manage the data stored within the Guix Data Service.
This only goes so far, it doesn't delete derivations, but it does delete some
of the information related to a revision.
2020-02-15 11:36:31 +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
374dc25440
Improve system and target query parameter handling
2020-02-13 23:11:59 +00:00
dfccbf911c
Update the build_servers_build_config values
...
Change target to '' if it matches system, as this matches the updated way of
storing derivations.
2020-02-13 23:11:36 +00:00
5410961f65
Add temporary roots for channel instance derivations
2020-02-13 23:11:36 +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