a03e1601de
Improve handling of errors
...
Adjust the previously unused error page code, and start to use it. Only show
the error if configured to do so, to avoid leaking secret information.
2020-03-14 12:46:02 +00:00
33958eac79
Increase the batch size for fetching builds/narinfo files
...
To increase the likelyhood that all the builds and narinfo files for the
latest revisions are fetched.
2020-03-14 12:35:34 +00:00
6e81acf0a5
Set an order for select-outputs-without-known-nar-entries
...
Pulling out the recent entries first.
2020-03-14 12:35:34 +00:00
baeae56de4
Don't use TRUNCATE CASCADE in the create small backup script
...
As it makes it clearer what tables will be truncated.
2020-03-13 18:38:42 +00:00
6ce96ad55b
Trip the derivation output details table in the small data dump
2020-03-13 18:38:29 +00:00
b64e6b19c2
Trim derivation source file tables in the small data dump
2020-03-13 18:37:46 +00:00
24e7df541b
Query for more recent derivation outputs by default
...
Rather than looking for the oldest unknown outputs, as the new ones are
generally more useful.
2020-03-12 20:47:43 +00:00
885053e107
Remove peek call that snuck in to the builds module
2020-03-02 21:48:14 +00:00
77caafb019
Add scripts for generating database dumps
2020-03-02 21:44:29 +00:00
c407f55c84
Update http-multiple-get
...
Update this by copying the code from Guix again.
2020-03-02 21:18:10 +00:00
18eb9dfdcb
Improve the builds verbose output
2020-03-01 19:28:50 +00:00
c59d90c26b
Make the dumps page work when dumps is a symlink
2020-03-01 16:51:10 +00:00
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
3016f0548d
Redirect to the latest version of a file
2020-02-29 19:39:20 +00:00
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
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