Put build status in front of the notification mail subject

[?]
Apr 2, 2013, 8:40 AM
R6SX4KIDZS4NBSGA4X255FVMNI5CKCRN3ZNSF6XTNFFTL4WVC3UAC

Dependencies

  • [2] AJKTRRDJ rename var
  • [3] NZYFWV6M hydra-build: Add system info to the subject and extra headers.
  • [4] 4R7OGJEY Do not send emails when build is cancelled/aborted. Also, ignore aborted/cancelled builds in comparing to previous build.
  • [5] LGNML7VJ Don't use a prepared statement for the active build steps query
  • [6] OG7BEM57
  • [7] A22P7HCO hydra: at evaluation, check if path is already built, and mark as built in stead of adding to the queue.
  • [8] LA27PR4U hydra: fix enable email notification bug
  • [9] RBHHV7P7 * Read logs using logContents function in stead of handling it everywhere separately.
  • [10] IW2LHCLL fixed email bug
  • [11] WQXF2T3D hydra-evaluator: Don't require $HYDRA_CONFIG
  • [12] VPKMUFF3 hydra-build: only send email if the status differs from the previous build
  • [13] HPEG2RHV Merge the BuildResultInfo table into the Builds table
  • [14] FCBQMIF3 hydra-build: Do not send email following an abortion.
  • [15] KA45EBF5 * Send email if a build fails.
  • [16] LOMVF2KH do not send email for builds with status 'aborted'
  • [17] FHAVPTZ6 Hydra/23: added some X-headers with meta info in email notifications, added more descriptive status
  • [18] FYO6NECE hydra
  • [*] 7YBYT2LQ

Change contents

  • replacement in src/script/hydra-build at line 83
    [5.890][5.1263:1382](),[5.79][5.1263:1382]()
    return if ! ( $build->jobset->enableemail && ($build->maintainers ne "" || $build->jobset->emailoverride ne "") );
    [5.890]
    [5.115]
    return unless $build->jobset->enableemail && ($build->maintainers ne "" || $build->jobset->emailoverride ne "");
  • replacement in src/script/hydra-build at line 99
    [5.4125][4.55:177](),[4.177][5.927:943](),[5.9835][5.927:943](),[5.943][5.94:100](),[5.94][5.94:100](),[5.100][4.178:371](),[4.371][5.944:960](),[5.9930][5.944:960](),[5.960][5.324:330](),[5.4248][5.324:330](),[5.324][5.324:330]()
    # if build is cancelled or aborted, do not send email
    if ($build->buildstatus == 4 || $build->buildstatus == 3) {
    return;
    }
    # if there is a previous (that is not cancelled or aborted) build with same buildstatus, do not send email
    if (defined $prevBuild && ($build->buildstatus == $prevBuild->buildstatus)) {
    return;
    }
    [5.4125]
    [5.330]
    # If build is cancelled or aborted, do not send email.
    return if $build->buildstatus == 4 || $build->buildstatus == 3;
    # If there is a previous (that is not cancelled or aborted) build
    # with same buildstatus, do not send email.
    return if defined $prevBuild && ($build->buildstatus == $prevBuild->buildstatus);
  • replacement in src/script/hydra-build at line 113
    [5.573][5.9931:9989]()
    my $status = statusDescription($build->buildstatus);
    [5.573]
    [5.661]
    my $status = statusDescription($build->buildstatus);
  • replacement in src/script/hydra-build at line 193
    [5.1209][3.0:106]()
    Subject => "Hydra job $jobName on " . $build->system . ", build " . $build->id . ": $status",
    [5.1209]
    [2.91]
    Subject => "$status: Hydra job $jobName on " . $build->system . ", build " . $build->id,