Make the outputs' outpaths available via the Build JSON API

[?]
Oct 29, 2013, 6:41 PM
ZIIXICG7TBYQAGTNXGZXLLPVRLZ5VU3RCDDUAD3D7PHZZON4U7MQC

Dependencies

  • [2] SHIENRAL Clean up root controller
  • [3] NP7IOJ4Q Flesh out the API a bit
  • [4] LZVO64YG Merge in the first bits of the API work
  • [5] 2DGIP6L4 Cleanup build serialization
  • [6] J5UVLXOK * Start of a basic Catalyst web interface.
  • [7] 7ECJWNVX Cleanup Project model
  • [8] SYLVCTT6 Start api cleanup with the User model
  • [9] 4VYSDP4I Add eager fetching of relations and enable that for jobset->jobsetinputs
  • [10] PHJF4FUT Add missing files
  • [11] MQYHIUEE Cleanup eval serialization
  • [12] YI3BZG5N Cleanup Jobset serialization

Change contents

  • edit in src/lib/Hydra/Schema/BuildOutputs.pm at line 99
    [3.27113]
    [3.1269]
    my %hint = (
    columns => [
    'path'
    ],
    );
  • edit in src/lib/Hydra/Schema/BuildOutputs.pm at line 106
    [3.1270]
    [3.1270]
    sub json_hint {
    return \%hint;
    }
  • edit in src/lib/Hydra/Schema/BuildOutputs.pm at line 110
    [3.1271][3.1271:1370]()
    # 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
    [2.667][3.90:96](),[3.90][3.90:96]()
    ]
    [2.667]
    [3.96]
    ],
    eager_relations => {
    buildoutputs => 'name'
    }
  • replacement in tests/api-test.pl at line 3
    [3.36481][3.139:169]()
    use Test::Simple tests => 15;
    [3.36481]
    [3.36511]
    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'");