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 <lukegb@tvl.fyi>
Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
Vincent Ambo 2022-01-14 23:26:21 +03:00 committed by clbot
parent 86a205220f
commit a5c9b11a6b

View file

@ -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),