fix(gerrit-tvl): Mark job as failed on all failure states

Change-Id: If0fa85d8178b9e457305d0244ddf67d12a4b3051
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4889
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
Vincent Ambo 2022-01-14 23:16:20 +03:00 committed by clbot
parent e1ffaee1dd
commit e8bf17317e

View file

@ -144,7 +144,7 @@ const tvlChecksProvider = {
}
checkRun.statusDescription = statusDescription;
if (job.state === 'failed') {
if (['failed', 'broken', 'timed_out'].includes(job.state)) {
const result = {
// TODO(lukegb): get the log as the message here (the Gerrit
// implementation doesn't yet seem to support newlines in message