hydra-api: flesh out Jobset schema
[?]
Apr 27, 2021, 10:51 PM
OOI5OFJXO6KOJTR3LM6BAORFKYV4C4GIXTKVVIQ3GBUVSB43DLOQCDependencies
- [2]
QJYMTECFAdd nixexprpath/nixexprinput to GET of jobset (API). - [3]
ZM3G3JVFRevert "Sort inputs table" (#448) - [4]
LX326CB7Add hydra OpenAPI description (#750) - [5]
GIBB5PLICouple of upstream/bootstrap items missed in rebase - [6]
QUMWPGCUAdd flake configuration to the web interface - [7]
TQVKZQUGUse the REST API in the web interface for editing jobsets - [8]
LPPZS34YMerge remote-tracking branch 'origin/master' into flake - [9]
CTGZFKAIhydra-api: implement DELETE /project/{id} - [10]
OX6NYJDVSplit viewing and editing a jobset - [11]
OK4P3AMKRemove the ability to add multiple jobset input alternatives - [12]
AMI4DGBKDon't trigger evaluation of disabled jobsets - [13]
UQA4FMUAAllow a jobset to be created from an evaluation - [14]
K3HODXGHCheck all inputs for blame but only email selected inputs - [15]
LUYDIGYMMake input value wider - [16]
7RRDNLP3Add homepage to Projects schema - [17]
VZX6HJ3IFix jobset input handling in the API - [18]
RQI3GRC6Enable setting checkresponsible in the edit jobset form - [19]
VJFLX7B6Fix rendering of jobset inputs - [20]
NP7IOJ4QFlesh out the API a bit - [21]
TMQJPABTSort inputs table - [22]
QMW24O5SAdd support for Guile & Guix. - [23]
YI3BZG5NCleanup Jobset serialization - [24]
SWXX2O4AUpdate boostrap to latest 4.3.1 - [25]
ODNCGFQ5* Improved the navigation bar: don't include all projects (since that - [26]
HPXFXHFSRemove SHA-1 hash from BuildProducts - [27]
2E23VP5JAdd endpoint to generate a shields.io badge - [*]
3HZY24CX* Make jobsets viewable under - [*]
X27GNHDV* Basic job info in the database.
Change contents
- replacement in hydra-api.yaml at line 309
type: objectproperties:'description':description: a description of the jobsettype: stringcheckinterval:description: interval (in seconds) in which to check for evaluationtype: integerenabled:description: when true the jobset gets scheduled for evaluationtype: booleanvisible:description: when true the jobset is visible in the web frontendtype: booleankeepnr:description: number or evaluations to keeptype: integernixexprinput:description: the name of the jobset input which contains the nixexprpathtype: stringnixexprpath:nullable: truedescription: the path to the file to evaluatetype: stringinputs:description: inputs for this jobsettype: objectadditionalProperties:$ref: '#/components/schemas/JobsetInput'$ref: '#/components/schemas/Jobset' - replacement in hydra-api.yaml at line 565
fetcherrormsg:name:description: the name of the jobsettype: stringproject:description: the project this jobset belongs totype: stringdescription: - replacement in hydra-api.yaml at line 573
description: contains the error message when there was a problem fetching sources for a jobsetdescription: a description of the jobset - edit in hydra-api.yaml at line 576
nullable: true - edit in hydra-api.yaml at line 579
nixexprpath:nullable: truedescription: the path to the file to evaluatetype: string - edit in hydra-api.yaml at line 584
nullable: true - edit in hydra-api.yaml at line 587
errortime:nullable: truedescription: timestamp associated with errormsgtype: integerlastcheckedtime:nullable: truedescription: the last time the evaluator looked at this jobsettype: integertriggertime:nullable: truedescription: set to the time we were triggered by a push eventtype: integerenabled:description: 0 is disabled, 1 is enabled, 2 is one-shot, and 3 is one-at-a-timetype: integerenableemail:description: when true the jobset sends emails when previously-successful builds failtype: booleanhidden:description: when false the jobset is visible in the web frontendtype: boolean - replacement in hydra-api.yaml at line 611
nixexprpath:keepnr:description: number or evaluations to keeptype: integercheckinterval:description: interval (in seconds) in which to check for evaluationtype: integerschedulingshares:description: how many shares to be allocated to the jobsettype: integerfetcherrormsg:nullable: truedescription: contains the error message when there was a problem fetching sources for a jobsettype: stringstartime:nullable: truedescription: set to the time the latest evaluation started (if one is currently running)type: integertype:description: the type of the jobsettype: stringflake: - replacement in hydra-api.yaml at line 633
description: the path to the file to evaluatedescription: the flake uri to evaluate - edit in hydra-api.yaml at line 635
enabled:description: when set to true the jobset gets scheduled for evaluationtype: boolean - replacement in src/lib/Hydra/Controller/Jobset.pm at line 234
$flake = trim($c->stash->{params}->{"flakeref"});$flake = trim($c->stash->{params}->{"flake"}); - replacement in src/lib/Hydra/Controller/Jobset.pm at line 273
foreach my $name (keys %{$c->stash->{params}->{inputs}}) {my $inputData = $c->stash->{params}->{inputs}->{$name};foreach my $name (keys %{$c->stash->{params}->{jobsetinputs}}) {my $inputData = $c->stash->{params}->{jobsetinputs}->{$name}; - edit in src/lib/Hydra/Schema/Jobsets.pm at line 415
"errortime","lastcheckedtime","triggertime", - edit in src/lib/Hydra/Schema/Jobsets.pm at line 419
"keepnr","checkinterval","schedulingshares","starttime"],string_columns => ["name","project","description","nixexprinput","nixexprpath", - edit in src/lib/Hydra/Schema/Jobsets.pm at line 431
"fetcherrormsg", - replacement in src/lib/Hydra/Schema/Jobsets.pm at line 432
"nixexprpath","nixexprinput""fetcherrormsg","type","flake"],boolean_columns => ["enableemail","hidden" - replacement in src/root/edit-jobset.tt at line 49
<tbody class="inputs">[% inputs = createFromEval ? eval.jobsetevalinputs : jobset.jobsetinputs; FOREACH input IN inputs %]<tbody class="jobsetinputs">[% jobsetinputs = createFromEval ? eval.jobsetevalinputs : jobset.jobsetinputs; FOREACH input IN jobsetinputs %] - replacement in src/root/edit-jobset.tt at line 114
<label class="col-form-label col-sm-3" for="editjobsetflakeref">Flake URI</label><label class="col-form-label col-sm-3" for="editjobsetflake">Flake URI</label> - replacement in src/root/edit-jobset.tt at line 116
<input type="text" class="form-control" id="editjobsetflakeref" name="flakeref" [% HTML.attributes(value => jobset.flake) %]/><input type="text" class="form-control" id="editjobsetflake" name="flake" [% HTML.attributes(value => jobset.flake) %]/> - replacement in src/root/edit-jobset.tt at line 223
var data = { 'inputs': {} };var inputs = {};var data = { 'jobsetinputs': {} };var jobsetinputs = {}; - replacement in src/root/edit-jobset.tt at line 236
if (!(baseName in inputs))inputs[baseName] = {};if (!(baseName in jobsetinputs))jobsetinputs[baseName] = {}; - replacement in src/root/edit-jobset.tt at line 240
data.inputs[elem.value] = inputs[baseName];data.jobsetinputs[elem.value] = jobsetinputs[baseName]; - replacement in src/root/edit-jobset.tt at line 242
inputs[baseName][param] = elem.value;jobsetinputs[baseName][param] = elem.value;