Make the outputs' outpaths available via the Build JSON API
[?]
Oct 29, 2013, 6:41 PM
ZIIXICG7TBYQAGTNXGZXLLPVRLZ5VU3RCDDUAD3D7PHZZON4U7MQCDependencies
- [2]
SHIENRALClean up root controller - [3]
NP7IOJ4QFlesh out the API a bit - [4]
LZVO64YGMerge in the first bits of the API work - [5]
2DGIP6L4Cleanup build serialization - [6]
J5UVLXOK* Start of a basic Catalyst web interface. - [7]
7ECJWNVXCleanup Project model - [8]
SYLVCTT6Start api cleanup with the User model - [9]
4VYSDP4IAdd eager fetching of relations and enable that for jobset->jobsetinputs - [10]
PHJF4FUTAdd missing files - [11]
MQYHIUEECleanup eval serialization - [12]
YI3BZG5NCleanup Jobset serialization
Change contents
- edit in src/lib/Hydra/Schema/BuildOutputs.pm at line 99
my %hint = (columns => ['path'],); - edit in src/lib/Hydra/Schema/BuildOutputs.pm at line 106
sub json_hint {return \%hint;} - edit in src/lib/Hydra/Schema/BuildOutputs.pm at line 110
# You can replace this text with custom code or comments, and it will be preserved on regeneration - replacement in src/lib/Hydra/Schema/Builds.pm at line 620
]],eager_relations => {buildoutputs => 'name'} - replacement in tests/api-test.pl at line 3
use Test::Simple tests => 15;use Test::Simple tests => 16; - edit in tests/api-test.pl at line 65[3.39798]
ok($build->{buildoutputs}->{out}->{path} =~ /^\/run\/nix\/store\/[a-zA-Z0-9]{32}-job$/, "The build's outpath is in the nix store and named 'job'");