From a5c9b11a6bd1388dfc52b06f1b957a7f9cc654ef Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 14 Jan 2022 23:26:21 +0300 Subject: fix(gerrit-tvl): Exclude non-command jobs from check results Change-Id: I13727d30ac7a568f02614a4bbc778afed6a286ba Reviewed-on: https://cl.tvl.fyi/c/depot/+/4891 Tested-by: BuildkiteCI Reviewed-by: lukegb Autosubmit: tazjin --- ops/gerrit-tvl/static/tvl.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ops/gerrit-tvl') diff --git a/ops/gerrit-tvl/static/tvl.js b/ops/gerrit-tvl/static/tvl.js index 7019624b59..b1ce3eda3a 100644 --- a/ops/gerrit-tvl/static/tvl.js +++ b/ops/gerrit-tvl/static/tvl.js @@ -111,6 +111,11 @@ const tvlChecksProvider = { const build = respJSON[i]; for (let job of build.jobs) { + // Skip non-command jobs (e.g. waiting/grouping jobs) + if (job.type !== 'script') { + continue; + } + // TODO(lukegb): add the ability to retry these const checkRun = { patchset: parseInt(build.env.GERRIT_PATCHSET, 10), -- cgit 1.4.1