2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00
Commit graph

32 commits

Author SHA1 Message Date
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
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
33749786e4 Add verbose output to the query-build-servers script 2020-02-15 19:54:42 +00:00
Christopher Baines
1c34e07e84 Query for builds for channel instance derivations 2020-02-12 08:38:05 +00:00
Christopher Baines
00d9664714 Query builds for system test derivations 2020-02-03 09:57:35 +01:00
Christopher Baines
cf407fe830 Switch to querying builds by output, rather than derivation
This is better, as Cuirass will return a build for the derivation it built to
generate that output. This avoids having to query for multiple derivations
that generate a single output, until the one that Cuirass used is found.
2020-01-16 20:42:56 +00:00
Christopher Baines
c7e3a1bd0b Use the build_servers_build_config table when querying build servers
This allows configuing which systems a build server builds.
2020-01-05 12:48:49 +00:00
Christopher Baines
0759be52de Remove -for-successful-builds from procedure name
This used to be the case, but now it just selects all outputs, as that's
quicker overall (as querying the build server is quick).
2020-01-05 12:01:06 +00:00
Christopher Baines
b877b64eb8 Remove reverse from the copy of http-multiple-get
This makes assumptions about the return value of the provided procedure, and
fails if it doesn't return a list.
2019-12-26 23:01:34 +00:00
Christopher Baines
0cea51cc79 Add copyright and license headers to a bunch of source files
That were missing them.
2019-12-26 10:16:55 +00:00
Christopher Baines
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
Christopher Baines
31110acc91 Fix a bug with argument handling in the query-build-servers script 2019-12-22 22:35:43 +00:00
Christopher Baines
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
Christopher Baines
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
Christopher Baines
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
Christopher Baines
2e9844e599 Display the build server URL when fetching data 2019-12-12 20:07:22 +00:00
Christopher Baines
29e897ce9c Improve variable names in fetch-narinfo-files 2019-12-12 20:07:22 +00:00
Christopher Baines
eb2ba599d9 Populate the narinfo_fetch_records table 2019-12-12 20:07:22 +00:00
Christopher Baines
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
Christopher Baines
b278065d2a Fix selecting pending builds 2019-11-30 10:58:40 +00:00
Christopher Baines
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
Christopher Baines
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
Christopher Baines
6fad559b32 Improve select-build-servers to convert strings to appropriate types 2019-11-23 11:23:16 +00:00
Christopher Baines
5bc0e7d4bf
Add some catch all error handling to fetch-build-for-derivation 2019-03-08 08:22:52 +00:00
Christopher Baines
7a00bff2c3
Fetch more derivations with no known build
To try and process the backlog a bit.
2019-03-07 23:51:23 +00:00
Christopher Baines
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
Christopher Baines
ccb429c8b9
Improve logging in builds.scm 2019-03-07 21:51:19 +00:00
Christopher Baines
891cf42fc6
Improve error handling in builds.scm 2019-03-06 23:47:26 +00:00
Christopher Baines
7a90afe980
Add functionality to query build servers 2019-03-06 22:56:54 +00:00