* Randomly permute the order in which builds are added. This is

[?]
Apr 23, 2009, 3:40 PM
IWHFLFVVP2W5E6P5R2ATDSZ66OYE3KZZY26KTFPZUPXI7SYPMMWAC

Dependencies

  • [2] NI5BVF2V * In job inputs of type "build", allow the project and jobset names of
  • [3] S5PV6IIM * Represent jobs explicitly in the DB.
  • [4] POPU2ATH * hydra_scheduler: use eval-jobs.
  • [5] X27GNHDV * Basic job info in the database.
  • [*] N22GPKYT * Put info about logs / build products in the DB.
  • [*] H7CNGK4O * Log evaluation errors etc. in the DB.

Change contents

  • edit in src/script/hydra_scheduler.pl at line 367
    [8.3982]
    [2.1962]
    sub permute {
    my @list = @_;
    print scalar @list, "\n";
    for (my $n = scalar @list - 1; $n > 0; $n--) {
    my $k = int(rand($n + 1)); # 0 <= $k <= $n
    @list[$n, $k] = @list[$k, $n];
    }
    return @list;
    }
  • replacement in src/script/hydra_scheduler.pl at line 406
    [3.2866][3.2866:2906]()
    foreach my $job (@{$jobs->{job}}) {
    [3.2866]
    [3.5847]
    foreach my $job (permute @{$jobs->{job}}) {