Set notificationpendingsince for dependent builds

[?]
May 28, 2020, 8:45 AM
OEQQ6CVTBZBTSCU6IT7ZRIPRTYUJLM7BT435EL5TGBVBEA5AT7PQC

Dependencies

  • [2] 32KJOERM Turn hydra-notify into a daemon
  • [3] NTEDD7T4 Provide a plugin hook for when build steps finish
  • [*] IE2PRAQU hydra-queue-runner: Send build notifications

Change contents

  • replacement in src/script/hydra-notify at line 66
    [2.2006][2.2006:2065]()
    $build->update({ notificationpendingsince => undef });
    [2.2006]
    [3.4016]
    # We have to iterate through all dependents as well, and if they are finished
    # to mark their notificationpendingsince.
    # Otherwise, the dependent builds will remain with notificationpendingsince set
    # until hydra-notify is started, as buildFinished is never emitted for them.
    foreach my $b ($build, @dependents) {
    $b->update({ notificationpendingsince => undef }) if $b->finished;
    }