]> git.ipfire.org Git - thirdparty/qemu.git/commit
gitlab: use --refetch in check-patch/check-dco jobs
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 25 Feb 2025 11:05:25 +0000 (11:05 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 8 May 2025 15:27:32 +0000 (18:27 +0300)
commitdc5208769a0f29ea47d38e614f2f6612f3f15f50
tree3a1af6858d0801c517cfe07b84432439e438d473
parent5dd4660f5f4d12166018e1d6dc122149264a8832
gitlab: use --refetch in check-patch/check-dco jobs

When gitlab initializes the repo checkout for a CI job, it will have
done a shallow clone with only partial history. Periodically the objects
that are omitted cause trouble with the check-patch/check-dco jobs. This
is exhibited as reporting strange errors being unable to fetch certain
objects that are known to exist.

Passing the --refetch flag to 'git fetch' causes it to not assume the
local checkout has all common objects and thus re-fetch everything that
is needed. This appears to solve the check-patch/check-dco job failures.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20250225110525.2209854-1-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit d5d028eee38d4107821c0d2cfdb0dd04b9ba5ca3)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
.gitlab-ci.d/check-dco.py
.gitlab-ci.d/check-patch.py