Fix sysbuild input type handling

[?]
Dec 5, 2011, 4:13 PM
P5XCKTFDQHOWNE5ZLPFH27FYZQ7QPCEL33FYR4LTI2JR3IA2ILOAC

Dependencies

  • [2] NFVN7JRB Handle missing "build" inputs
  • [3] FXW2UR7F initial bzr support
  • [4] KQS7DSKJ * Clean up indentation.
  • [5] 2WRTOU2Z Cleanup
  • [6] POPU2ATH * hydra_scheduler: use eval-jobs.
  • [7] 3XTHEUMP * Implemented the clone feature.
  • [8] 7ZHHVD6Q * Inputs of type "build" must now be declared explicitly.
  • [9] VOBOLKL4 missing case for hg input type
  • [10] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate
  • [11] JTRG7RDQ add support for git as jobinput
  • [12] YFPZ46YK * hydra: added variant of build input type, 'build output (same system)' to allow better continous integration in one jobset for multiple system. it makes sure that the system of the build that is passed as input for a job has the same system as the job.
  • [13] 2WUNXJGW Hydra/26: Go back to using "svn export" as default for svn, added svn-checkout type for jobset which need .svn dirs. export is much more efficient
  • [*] N22GPKYT * Put info about logs / build products in the DB.

Change contents

  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 566
    [3.2281][3.607:622]()
    my $input;
    [3.2281]
    [3.2281]
    my @inputs;
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 569
    [3.2309][3.623:695]()
    $input = fetchInputPath($db, $project, $jobset, $name, $value);
    [3.2309]
    [3.2379]
    push @inputs, fetchInputPath($db, $project, $jobset, $name, $value);
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 572
    [3.2414][3.696:770]()
    $input = fetchInputSVN($db, $project, $jobset, $name, $value, 0);
    [3.2414]
    [3.337]
    push @inputs, fetchInputSVN($db, $project, $jobset, $name, $value, 0);
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 575
    [3.381][3.771:845]()
    $input = fetchInputSVN($db, $project, $jobset, $name, $value, 1);
    [3.381]
    [3.2483]
    push @inputs, fetchInputSVN($db, $project, $jobset, $name, $value, 1);
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 578
    [3.2520][3.846:919]()
    $input = fetchInputBuild($db, $project, $jobset, $name, $value);
    [3.2520]
    [3.1515]
    push @inputs, fetchInputBuild($db, $project, $jobset, $name, $value);
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 581
    [3.1555][3.920:999]()
    $input = fetchInputSystemBuild($db, $project, $jobset, $name, $value);
    [3.1555]
    [3.2591]
    push @inputs, fetchInputSystemBuild($db, $project, $jobset, $name, $value);
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 584
    [3.2626][3.1000:1071]()
    $input = fetchInputGit($db, $project, $jobset, $name, $value);
    [3.2626]
    [3.2695]
    push @inputs, fetchInputGit($db, $project, $jobset, $name, $value);
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 587
    [3.28][3.1072:1142]()
    $input = fetchInputHg($db, $project, $jobset, $name, $value);
    [3.28]
    [3.103]
    push @inputs, fetchInputHg($db, $project, $jobset, $name, $value);
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 590
    [3.2486][3.1143:1220]()
    $input = fetchInputBazaar($db, $project, $jobset, $name, $value, 0);
    [3.2486]
    [3.2568]
    push @inputs, fetchInputBazaar($db, $project, $jobset, $name, $value, 0);
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 593
    [3.2612][3.1221:1298]()
    $input = fetchInputBazaar($db, $project, $jobset, $name, $value, 1);
    [3.2612]
    [3.2694]
    push @inputs, fetchInputBazaar($db, $project, $jobset, $name, $value, 1);
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 597
    [3.10086][3.1299:1337]()
    $input = { value => $value };
    [3.10086]
    [3.2704]
    push @inputs, { value => $value };
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 601
    [3.10257][3.1338:1376]()
    $input = { value => $value };
    [3.10257]
    [3.2715]
    push @inputs, { value => $value };
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 607
    [3.1378][2.0:46](),[2.46][3.1406:1425](),[3.1406][3.1406:1425]()
    $input->{type} = $type if defined $input;
    return $input;
    [3.1378]
    [3.1356]
    foreach my $input (@inputs) {
    $input->{type} = $type if defined $input;
    }
    return @inputs;
  • replacement in src/script/hydra-evaluator at line 28
    [3.646][3.2452:2940]()
    if($input->type eq "sysbuild") {
    my @info = fetchInput($db, $project, $jobset, $input->name, $input->type, $alt->value);
    foreach my $info_el (@info) {
    push @{$$inputInfo{$input->name}}, $info_el if defined $info_el;
    }
    } else {
    my $info = fetchInput($db, $project, $jobset, $input->name, $input->type, $alt->value);
    push @{$$inputInfo{$input->name}}, $info if defined $info;
    }
    [3.646]
    [3.722]
    my @info = fetchInput($db, $project, $jobset, $input->name, $input->type, $alt->value);
    foreach my $info_el (@info) {
    push @{$$inputInfo{$input->name}}, $info_el if defined $info_el;
    }