Schema: add errorMsg, errorTime to JobsetEvals
[?]
Jan 21, 2021, 2:36 PM
SVDYZSZCLZX77OM4W4XK5ODTVZQ6VTRTMHXOFXO65WZNFZPQAG2ACDependencies
- [2]
NZXX6PLDRemove the Jobs table - [3]
KPZNJ33U* In views, support selecting a job that doesn't depend on the - [4]
Y6AHH4THRemove the logfile and logSize columns from the database - [5]
SB2V735VKeep track of the database schema version - [6]
SW7STLQ7Cache flake-based jobset evaluations - [7]
AZCCANUBMissing part of aaacf9eda36f5cdcc77cec20d6f49fbb6f925105 - [8]
G2T4WAHIStore the inputs of each evaluation in the database - [9]
LZVO64YGMerge in the first bits of the API work - [10]
MWXDVTS3Copy the flake migration from the flake branch - [11]
IGR322YPsql: Generate models from postgresql - [12]
BQHDSG6OMerge remote-tracking branch 'origin/master' into flake - [*]
5SHCWE7X* Prevent repeated evaluation of a jobset with the same inputs. This - [*]
JM3DPYOMgenerated schema with new dbix class schema loader, grrrrrr - [*]
RFE6T5LG* Store jobset evaluations in the database explicitly. This includes - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
3PNG7NIBRemove trailing whitespace - [*]
D5QIOJGP* Move everything up one directory.
Change contents
- edit in src/lib/Hydra/Schema/JobsetEvals.pm at line 56
=head2 errormsgdata_type: 'text'is_nullable: 1=head2 errortimedata_type: 'integer'is_nullable: 1 - edit in src/lib/Hydra/Schema/JobsetEvals.pm at line 121
"errormsg",{ data_type => "text", is_nullable => 1 },"errortime",{ data_type => "integer", is_nullable => 1 }, - replacement in src/lib/Hydra/Schema/JobsetEvals.pm at line 218
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-05-27 17:40:41# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M61ikfnjORU7jDAH8P/j7w# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 11:13:38# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zDBtAFc4HiFUcL/TpkuCcg - edit in src/sql/hydra.sql at line 443
errorMsg text, -- error output from the evaluatorerrorTime integer, -- timestamp associated with errorMsg - file addition: upgrade-70.sql[19.3004]
ALTER TABLE JobsetEvalsADD COLUMN errorMsg text,ADD COLUMN errorTime integer NULL;-- Copy the current error in jobsets to the latest field in jobsetevalsUPDATE jobsetevalsSET errorMsg = j.errorMsg,errorTime = j.errorTimeFROM (SELECTjobsets.errorMsg,jobsets.errorTime,jobsets.id AS jobset_id,latesteval.id AS eval_idFROM jobsetsLEFT JOIN(SELECTMAX(id) AS id,project,jobsetFROM jobsetevalsGROUP BY project, jobsetORDER BY project, jobset)AS latestevalONjobsets.name = latesteval.jobsetAND jobsets.project = latesteval.projectWHERE latesteval.id IS NOT NULLORDER BY jobsets.id)AS jWHERE id = j.eval_id;