Commit Graph

10 Commits

Author SHA1 Message Date
Christopher Baines cbe9859064 Support inserting build statuses without a transaction
In case this code is run as part of a bigger transaction.
2020-12-27 10:27:21 +00:00
Christopher Baines 5124f3be3e Update insert-new-latest-status-entries
To use the status first for ordering, then the timestamp. This ensures
sensible behaviour regardless of what timestamps are present.
2020-10-21 20:25:59 +01:00
Christopher Baines 83884ed2ea Add a latest_build_status table
This will avoid many queries trying to figure out what the latest build status
is, which will hopefuly simplify queries as well as improving performance.
2020-10-13 19:31:43 +01:00
Christopher Baines 5ee8207565 Avoid duplicate build status entries
This effectively makes adding build status entries idempotent to some degree.
2020-07-01 09:35:29 +01:00
Christopher Baines 1d48885e6a Make build_status.timestamp nullable
The Guix Build Coordinator doesn't record timestamps for events
currently. This is something to fix, but allow for build statuses without
timestamps as they're not necessary.
2020-06-27 14:05:51 +01:00
Christopher Baines d687928a04 Implement insert-build-status using insert-build-statues
To reduce the number of code paths.
2020-06-27 14:05:51 +01: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 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 189014f3bc
Improve the compare derivations page
Add support for filtering the results, and add the system and target
to the output.
2019-03-17 22:44:09 +00:00
Christopher Baines 4d0d6f2e82
Add new models relating to builds and build servers
These will allow tracking what's going on with build servers.
2019-03-06 22:56:10 +00:00