Commit Graph

811 Commits

Author SHA1 Message Date
Christopher Baines c407f55c84 Update http-multiple-get
Update this by copying the code from Guix again.
2020-03-02 21:18:10 +00:00
Christopher Baines 18eb9dfdcb Improve the builds verbose output 2020-03-01 19:28:50 +00:00
Christopher Baines c59d90c26b Make the dumps page work when dumps is a symlink 2020-03-01 16:51:10 +00:00
Christopher Baines b19227c086 Order build statuses by id, not timestamp
Some builds from Cuirass change status at the same timestamp, so use the id
for ordering instead.
2020-03-01 15:57:35 +00:00
Christopher Baines 3016f0548d Redirect to the latest version of a file 2020-02-29 19:39:20 +00:00
Christopher Baines 65f2f21d3a Support customising the latest branch revision max processes
This makes it possible to set a higher or lower value depending on what you
want.
2020-02-28 20:58:21 +00:00
Christopher Baines 185ba36853 Log the time spent in a locked section 2020-02-28 20:41:44 +00:00
Christopher Baines 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
Christopher Baines 9a29845f89 Use Guile 3 for development 2020-02-27 22:17:16 +00:00
Christopher Baines cd4dda6e22 Enable using Guile 3 2020-02-27 22:16:44 +00:00
Christopher Baines 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
Christopher Baines a95c5ca5c9 Improve the error reporting within process-load-new-guix-revision-job
By including a backtrace.
2020-02-27 21:14:58 +00:00
Christopher Baines 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
Christopher Baines 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
Christopher Baines 73be24d8ac Remove unused mock-inferior import 2020-02-27 21:13:37 +00:00
Christopher Baines 71f483c816 Add a few imports in preparation for Guile 3 2020-02-27 21:12:16 +00:00
Christopher Baines 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
Christopher Baines cb353d2c82 Make the test output more verbose 2020-02-27 21:11:27 +00:00
Christopher Baines 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
Christopher Baines bb7c2a1916 Add a missing import 2020-02-27 21:09:39 +00:00
Christopher Baines 30dd62f000 Clean up some time logging code 2020-02-24 22:03:09 +00:00
Christopher Baines 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
Christopher Baines 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
Christopher Baines 49d10cfe14 Add a new utils module, containing a with-time-logging syntax rule 2020-02-24 21:31:01 +00:00
Christopher Baines ffdde6ba36 Check that the test database is being used in all the tests 2020-02-24 21:16:41 +00:00
Christopher Baines 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
Christopher Baines f57b5c4a9a Add missing ROLLBACK for transaction 2020-02-24 18:50:34 +00:00
Christopher Baines 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
Christopher Baines 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
Christopher Baines 510e13f175 Add a page listing the available database dumps 2020-02-22 23:24:24 +00:00
Christopher Baines 9178bd51a9 Add a function to delete unreferenced derivations 2020-02-16 22:29:25 +00:00
Christopher Baines 27904e8fd7 Fix some comments
Copied over from the Mumi code.
2020-02-16 22:29:11 +00:00
Christopher Baines e5a6680808 Make a constraint deferrable
To allow for deferring it in a transaction when deleting derivations.
2020-02-16 22:28:37 +00:00
Christopher Baines 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
Christopher Baines 07b97fcb73 Fix target handling on the package derivation history page 2020-02-16 13:38:07 +00:00
Christopher Baines b087cfca67 Define the code to delete data from non-master branches properly 2020-02-16 10:59:38 +00:00
Christopher Baines 9c7310f8e3 Make it possible to query builds servers for specific outputs 2020-02-16 09:54:27 +00:00
Christopher Baines 6f97cec962 Guard against build being missing from the output response 2020-02-16 09:06:12 +00:00
Christopher Baines cc370fae56 Better handle errors when fetching builds by output 2020-02-15 21:58:07 +00:00
Christopher Baines 119fd801e1 Fix some functions being called with the wrong number of arguments 2020-02-15 21:38:42 +00:00
Christopher Baines a2387c12d8 Improve error handling in the query-build-servers script 2020-02-15 21:33:47 +00:00
Christopher Baines 2c495fe8f6 Improve associating builds with derivations
Even without knowing the details of the derivation.
2020-02-15 21:29:42 +00:00
Christopher Baines 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
Christopher Baines 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
Christopher Baines 33749786e4 Add verbose output to the query-build-servers script 2020-02-15 19:54:42 +00:00
Christopher Baines 617af6c9d3 Properly sort the derivation outputs 2020-02-15 19:54:17 +00:00
Christopher Baines a6e19a4102 Avoid an error when there are no references to insert 2020-02-15 18:23:04 +00:00
Christopher Baines 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
Christopher Baines 40f6de27f6 Make deleting the existing log parts optional 2020-02-15 16:49:37 +00:00
Christopher Baines 46c8ce5b82 Define a new parameter for a port used for the inferior error output 2020-02-15 13:41:17 +00:00