Commit graph

19 commits

Author SHA1 Message Date
566f20a03d Use HTTP pipelining when making requests to build servers
This removes some overhead in making a connection for each request.
2019-12-26 08:42:44 +00:00
31110acc91 Fix a bug with argument handling in the query-build-servers script 2019-12-22 22:35:43 +00:00
af948de646 Fix the select-derivations-with-no-known-build
The equivalent_derivations table was an experiment that didn't work, so switch
to using the derivations_by_output_details_set table.

Also take the build server id as input, as this allows selecting derivations
which have no known build for the relevant build server.
2019-12-12 20:07:22 +00:00
c90f411e5e Add options to the query-build-servers script
So you can select to query specific build servers.
2019-12-12 20:07:22 +00:00
9e5cde80b3 Fix query in select-derivations-with-no-known-build
Rather than eliminating any derivation that has a known build, eliminate those
derivations, but also equivalent derivations as well.

For selecting the derivations in a revision, join on the equivalent
derivations, as all the equilalent derivations need checking as well, as it's
unknown which one Cuirass would have associated the build against.

Also, filter for x86_64-linux, to avoid checking for crossbuilt things. This
should be replaced by some way of describing what derivations a build server
has.
2019-12-12 20:07:22 +00:00
2e9844e599 Display the build server URL when fetching data 2019-12-12 20:07:22 +00:00
29e897ce9c Improve variable names in fetch-narinfo-files 2019-12-12 20:07:22 +00:00
eb2ba599d9 Populate the narinfo_fetch_records table 2019-12-12 20:07:22 +00:00
7cc5c02cdd Query build servers for narinfo files
As well as making it possible to only query build servers for builds relating
to a specific revision.
2019-11-30 10:59:16 +00:00
b278065d2a Fix selecting pending builds 2019-11-30 10:58:40 +00:00
0aa78e9ef5 Don't create misleading scheduled build status entries
Cuirass provides a timestamp field in build responses, and sometimes this
means when the build was scheduled, but when the build is finished, it's the
stoptime.

So only use the timestamp when the build hasn't finished.
2019-11-30 10:55:16 +00:00
5663235048 Rework the builds and build_status tables as well as related code
Allow for build status information to be submitted by POST request. This
required some changes to the builds and build_status tables, as for example,
the Cuirass build id may not be available, and the derivation may not be know
yet, so just record the derivation file name.
2019-11-24 20:18:08 +00:00
6fad559b32 Improve select-build-servers to convert strings to appropriate types 2019-11-23 11:23:16 +00:00
5bc0e7d4bf
Add some catch all error handling to fetch-build-for-derivation 2019-03-08 08:22:52 +00:00
7a00bff2c3
Fetch more derivations with no known build
To try and process the backlog a bit.
2019-03-07 23:51:23 +00:00
0380c84a67
Decrease builds number to 1
As I don't think these endpoints can return more than 1 result.
2019-03-07 21:51:32 +00:00
ccb429c8b9
Improve logging in builds.scm 2019-03-07 21:51:19 +00:00
891cf42fc6
Improve error handling in builds.scm 2019-03-06 23:47:26 +00:00
7a90afe980
Add functionality to query build servers 2019-03-06 22:56:54 +00:00