994318782a
Pass #:store to checkers that support it
...
The derivation checker currently opens a store connection on its own, but by
passing the already open connection in, it won't have to do that, and
hopefully this will make checking all the packages faster.
2020-03-24 21:36:13 +00:00
ca0d3ee754
Stop using package_versions_by_guix_revision_range
...
It's been replaced by the package_derivations_by_guix_revision_range table.
2020-03-24 20:44:57 +00:00
102f7a0536
Implement version history using the derivations table
...
Rather than having two big tables looking at the history, just use the
derivations table as it has all the information.
This will allow deleting the package_versions_by_guix_revision_range table
which should help save time when importing revisions, and reduce the size of
the database.
2020-03-24 20:17:18 +00:00
96bf658dfc
Fix the date ordering on the package output history page
2020-03-24 20:17:00 +00:00
f87583016e
Sort the lint-warning-message-ids when querying
...
This might solve errors where the Guix Data Service is trying to insert a
lint_warning_message_set that already exists.
2020-03-23 09:13:14 +00:00
e18f3861f8
Say that there are no lint warnings
...
Rather than having an empty table.
2020-03-21 11:01:16 +00:00
e108ed34e2
Change the sort order for derivations on the package version page
...
Put the non-cross built derivations first.
2020-03-21 10:54:57 +00:00
7d2309d344
Add a page for package output history on a branch
...
This complements the existing pages for the version history, and derivation
history. As well as the new page, the buttons and styling of the two existing
pages has been made to match better to enable easier navigation between the
pages.
2020-03-21 10:38:20 +00:00
f4583e5fe6
Add a new function to get the outputs for a package on a branch
...
Similar to the one above for derivations, this just looks at outputs. This
filters out equivalent derivations, which can be useful.
2020-03-21 10:37:22 +00:00
d12909d572
Fix some tab issues in the Makefile.am file
2020-03-20 20:43:02 +00:00
cf4082dbeb
Avoid failures related to renice and ionice
...
These parts of the backup scripts are optional, so don't fail if they don't
work.
2020-03-20 20:40:33 +00:00
c44297b615
Generate and store system test derivations for all supported systems
...
Rather than just the native system. I'm not quite sure of the value here, as I
guess system tests should behave the same regardless of the way the software
is compiled, but this seems like it could be useful, and being explicit about
the system the derivation is for is good.
2020-03-20 08:28:55 +00:00
e0f920bb14
Fix marking jobs as failed when exceptions are raised
...
The switch away from catch broke this, I obviously still don't quite get how
with-exception-handler works. Therefore, use it twice as that seems to help.
2020-03-19 20:43:37 +00:00
ded4df6632
Move and improve the "starting the server" message
...
Move it after the output relating to narinfo signing, and include the host.
2020-03-14 13:14:29 +00:00
865e856e8f
Provide more information if the server can't bind the port
...
As this could be a common problem.
2020-03-14 13:13:48 +00:00
ebb8ab8066
Improve the 404 pages
...
Render some HTML rather than the plain response.
2020-03-14 12:55:34 +00:00
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