fix(gerrit-tvl): Explicitly specify patchset on check runs

Since we now group patchsets inside of Buildkite, the results are no
longer guaranteed to be for the right patchset.

There might be some metadata passed in from Gerrit that would let us
do this with the commit ID instead, but I haven't checked.

Change-Id: I5b74a17697511160fcc89d3dbef23517d974dc6f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4890
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:21:56 +03:00 committed by clbot
parent e8bf17317e
commit 86a205220f

View file

@ -113,6 +113,7 @@ const tvlChecksProvider = {
for (let job of build.jobs) {
// TODO(lukegb): add the ability to retry these
const checkRun = {
patchset: parseInt(build.env.GERRIT_PATCHSET, 10),
attempt: attempt,
externalId: job.id,
checkName: job.name,