Keep track of the time we spend copying to/from build machines
[?]
Feb 17, 2016, 9:28 AM
FITVNQ2SVM6KSOF5P3HHWJYQ3WMQYDJGAONCBIZ7OF7CPXGMA36QCDependencies
- [2]
UJOSXBZIRecord which build a failed build step was propagated from - [3]
OG3Z3QGCNamespace cleanup - [4]
DWFTK56EKeep track of how many threads are waiting - [5]
MHVIT4JYSplit hydra-queue-runner.cc more - [6]
VQISTKOPhydra-queue-runner: Use substitutes - [7]
62MQPRXCPass null values to libpqxx properly - [8]
HH3LID6LRe-implement log size limits - [9]
HJOEIMLRRefactor - [10]
UQQ4IL55Add a error type for "unsupported system type" - [11]
IK2UBDAURevive jobset scheduling - [12]
TPNHTE5VRemove obsolete Builds columns and provide accurate "Running builds" - [13]
PMNWRTGJAdd multiple output support - [14]
24BMQDZAStart of single-process hydra-queue-runner - [15]
5AIYUMTBBasic remote building - [16]
KBZHIGLGRecord the machine used for a build step - [*]
CNLNT3T4Allow only 1 thread to send a closure to a given machine at the same time - [*]
LE4VZIY5More stats - [*]
A2GL5FOZMoar stats - [*]
N4IROACVMove buildRemote() into State - [*]
CLJQCY2X* Store info about all the build actions and allow them to be - [*]
EFWN7JBV* Added a status page that shows all the currently executing build steps. - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
3E6IP3R3* Add the name of the jobset to ReleaseSetJobs, otherwise we can't - [*]
D5QIOJGP* Move everything up one directory.
Change contents
- edit in src/hydra-queue-runner/build-remote.cc at line 232
auto now1 = std::chrono::steady_clock::now(); - edit in src/hydra-queue-runner/build-remote.cc at line 236
auto now2 = std::chrono::steady_clock::now();result.overhead += std::chrono::duration_cast<std::chrono::milliseconds>(now2 - now1).count(); - edit in src/hydra-queue-runner/build-remote.cc at line 293
auto now1 = std::chrono::steady_clock::now(); - edit in src/hydra-queue-runner/build-remote.cc at line 297
auto now2 = std::chrono::steady_clock::now();result.overhead += std::chrono::duration_cast<std::chrono::milliseconds>(now2 - now1).count(); - replacement in src/hydra-queue-runner/builder.cc at line 168
finishBuildStep(txn, result.startTime, result.stopTime, build->id,finishBuildStep(txn, result.startTime, result.stopTime, result.overhead, build->id, - replacement in src/hydra-queue-runner/builder.cc at line 217
finishBuildStep(txn, result.startTime, result.stopTime, build->id, stepNr, machine->sshName, bssSuccess);finishBuildStep(txn, result.startTime, result.stopTime, result.overhead,build->id, stepNr, machine->sshName, bssSuccess); - replacement in src/hydra-queue-runner/builder.cc at line 338
finishBuildStep(txn, result.startTime, result.stopTime, build->id,stepNr, machine->sshName, buildStepStatus, result.errorMsg);finishBuildStep(txn, result.startTime, result.stopTime, result.overhead,build->id, stepNr, machine->sshName, buildStepStatus, result.errorMsg); - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 207
void State::finishBuildStep(pqxx::work & txn, time_t startTime, time_t stopTime, BuildID buildId, int stepNr,const std::string & machine, BuildStepStatus status, const std::string & errorMsg, BuildID propagatedFrom)void State::finishBuildStep(pqxx::work & txn, time_t startTime, time_t stopTime, unsigned int overhead,BuildID buildId, int stepNr, const std::string & machine, BuildStepStatus status,const std::string & errorMsg, BuildID propagatedFrom) - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 214
("update BuildSteps set busy = 0, status = $1, propagatedFrom = $4, errorMsg = $5, startTime = $6, stopTime = $7, machine = $8 where build = $2 and stepnr = $3")("update BuildSteps set busy = 0, status = $1, propagatedFrom = $4, errorMsg = $5, startTime = $6, stopTime = $7, machine = $8, overhead = $9 where build = $2 and stepnr = $3") - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 219
(machine, machine != "").exec();(machine, machine != "")(overhead, overhead != 0).exec(); - edit in src/hydra-queue-runner/state.hh at line 52
unsigned int overhead = 0; - replacement in src/hydra-queue-runner/state.hh at line 367
void finishBuildStep(pqxx::work & txn, time_t startTime, time_t stopTime, BuildID buildId, int stepNr,void finishBuildStep(pqxx::work & txn, time_t startTime, time_t stopTime,unsigned int overhead, BuildID buildId, int stepNr, - edit in src/lib/Hydra/Schema/BuildSteps.pm at line 99
is_nullable: 1=head2 overheaddata_type: 'integer' - edit in src/lib/Hydra/Schema/BuildSteps.pm at line 133
"overhead",{ data_type => "integer", is_nullable => 1 }, - replacement in src/lib/Hydra/Schema/BuildSteps.pm at line 204
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2015-02-25 16:27:20# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZbOxzCzFN7fIT9M2BFY0iQ# Created by DBIx::Class::Schema::Loader v0.07043 @ 2016-02-16 18:04:52# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TRALbEoaF/OIOyERYCyxkw - edit in src/sql/hydra.sql at line 276
-- Time in milliseconds spend copying stuff from/to build machines.overhead integer, - file addition: upgrade-45.sql[26.3004]
alter table BuildSteps add column overhead integer;