[
https://issues.apache.org/jira/browse/BEAM-8422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16959062#comment-16959062
]
Lukasz Gajowy commented on BEAM-8422:
-------------------------------------
I looked more into possibilities of turning off emails for phrase triggered
jobs.
This would be possible for jobs that have their definitions "duplicated" for PR
triggers (with _PR suffix) and Cron jobs. We could deal with the problem on a
job definition level and that's it - "_*_PR" jobs skip mailers and others
wouldn't.
The problem is with jobs that have one definition (we still have some of them)
- we cannot dynamically set mailers based on env variables (like BUILD_CAUSE
variable) or some other conditions that we do not know upfront. Since build
cause is known only after the job is defined in Jenkins this is impossible to
do.
IMO, at least for now, we should enable emails for all aborted jobs. Once we
have all jobs duplicated as described above we can easily improve this.
> Send emails to builds@ when job ends with state "ABORTED"
> ---------------------------------------------------------
>
> Key: BEAM-8422
> URL: https://issues.apache.org/jira/browse/BEAM-8422
> Project: Beam
> Issue Type: Improvement
> Components: testing
> Reporter: Lukasz Gajowy
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
> I noticed that timeouting jobs end up in an ABORTED state (black dot on the
> Jenkins dashboard). No email is sent to the builds@ list when this happens.
> It reduces the visibility of a problem - if one relies on builds@ they won't
> see that Jenkins job takes too much time.
>
> At the time of writing, 5 jobs are affected:
> beam_PostCommit_Java11_ValidatesRunner_Dataflow_PR
> beam_PostCommit_Java11_ValidatesRunner_PortabilityApi_Dataflow
> beam_PostCommit_Java_PVR_Spark_Batch
> beam_PostCommit_Python37_PR
> beam_sonarqube_report
>
> I propose changing this behavior and send emails to builds@ when job ends
> with ABORTED state.
> The drawback of this solution is that every time someone aborts the job
> manually the email will be sent too - there's no way to distinguish those
> two situations. However, IMO we should not allow timeouts to be unnoticed and
> manual job aborting does not happen very often (even committers cannot do
> that now in Jenkins).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)