about summary refs log tree commit diff
path: root/ops/gerrit-tvl
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-01-14T20·16+0300
committerclbot <clbot@tvl.fyi>2022-01-14T20·30+0000
commite8bf17317e4f24434e46d6512637f5bd15e1343d (patch)
tree104dd8e3213eab205191fdc0b717277d02b4880f /ops/gerrit-tvl
parente1ffaee1dd0cc954f084fcdd5fd30547956cf4c6 (diff)
fix(gerrit-tvl): Mark job as failed on all failure states r/3595
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>
Diffstat (limited to 'ops/gerrit-tvl')
-rw-r--r--ops/gerrit-tvl/static/tvl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ops/gerrit-tvl/static/tvl.js b/ops/gerrit-tvl/static/tvl.js
index f4592ef44b1e..899e01965e5a 100644
--- a/ops/gerrit-tvl/static/tvl.js
+++ b/ops/gerrit-tvl/static/tvl.js
@@ -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